@@ -117,8 +117,7 @@ void SteppingAction::UserSteppingAction(const G4Step* aStep) {
117117 edm::LogWarning (" SimG4CoreApplication" )
118118 << " Track #" << theTrack->GetTrackID () << " " << theTrack->GetDefinition ()->GetParticleName ()
119119 << " E(MeV)=" << ekin << " Nstep=" << theTrack->GetCurrentStepNumber ()
120- << " is killed due to limit on number of steps;/n PV:"
121- << preStep->GetPhysicalVolume ()->GetName () << " at "
120+ << " is killed due to limit on number of steps;/n PV:" << preStep->GetPhysicalVolume ()->GetName () << " at "
122121 << theTrack->GetPosition () << " StepLen(mm)=" << aStep->GetStepLength ();
123122 }
124123 }
@@ -154,8 +153,7 @@ void SteppingAction::UserSteppingAction(const G4Step* aStep) {
154153
155154 // kill low-energy in vacuum
156155 if (sAlive == tstat && killBeamPipe) {
157- if (ekin < theCriticalEnergyForVacuum &&
158- theTrack->GetDefinition ()->GetPDGCharge () != 0.0 &&
156+ if (ekin < theCriticalEnergyForVacuum && theTrack->GetDefinition ()->GetPDGCharge () != 0.0 &&
159157 lv->GetMaterial ()->GetDensity () <= theCriticalDensity) {
160158 tstat = sLowEnergyInVacuum ;
161159 }
@@ -213,20 +211,22 @@ bool SteppingAction::initPointer() {
213211 }
214212
215213 const G4LogicalVolumeStore* lvs = G4LogicalVolumeStore::GetInstance ();
216-
214+
217215 ekinVolumes.resize (numberEkins, nullptr );
218216 for (auto const & lvcite : *lvs) {
219217 const G4String& lvname = lvcite->GetName ();
220- if (lvname == " CMStoZDC" ) { m_CMStoZDC = lvcite; }
218+ if (lvname == " CMStoZDC" ) {
219+ m_CMStoZDC = lvcite;
220+ }
221221 for (unsigned int i = 0 ; i < numberEkins; ++i) {
222222 if (lvname == (G4String)(ekinNames[i])) {
223- ekinVolumes[i] = lvcite;
224- break ;
223+ ekinVolumes[i] = lvcite;
224+ break ;
225225 }
226226 }
227227 }
228228 edm::LogVerbatim (" SimG4CoreApplication" )
229- << " SteppingAction: pointer for Tracker: " << tracker << " ; Calo: " << calo << " ; to CMStoZDC: " << m_CMStoZDC;
229+ << " SteppingAction: pointer for Tracker: " << tracker << " ; Calo: " << calo << " ; to CMStoZDC: " << m_CMStoZDC;
230230 for (unsigned int i = 0 ; i < numberEkins; ++i) {
231231 edm::LogVerbatim (" SimG4CoreApplication" ) << ekinVolumes[i]->GetName () << " with pointer " << ekinVolumes[i];
232232 }
0 commit comments