From 1b6d40f514676de12e5aa40667d49a775745b679 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Tue, 25 Apr 2023 20:11:50 +0200 Subject: [PATCH] code format --- SimG4Core/Application/src/CMSSimEventManager.cc | 4 +--- SimG4Core/Application/src/RunManagerMT.cc | 8 +++----- SimG4Core/Application/src/RunManagerMTWorker.cc | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/SimG4Core/Application/src/CMSSimEventManager.cc b/SimG4Core/Application/src/CMSSimEventManager.cc index 90b30127b6a85..21166b0fcfef4 100644 --- a/SimG4Core/Application/src/CMSSimEventManager.cc +++ b/SimG4Core/Application/src/CMSSimEventManager.cc @@ -107,6 +107,4 @@ void CMSSimEventManager::SetUserAction(TrackingAction* ptr) { m_defTrackManager->SetUserAction((G4UserTrackingAction*)ptr); } -void CMSSimEventManager::SetUserAction(G4UserSteppingAction* ptr) { - m_defTrackManager->SetUserAction(ptr); -} +void CMSSimEventManager::SetUserAction(G4UserSteppingAction* ptr) { m_defTrackManager->SetUserAction(ptr); } diff --git a/SimG4Core/Application/src/RunManagerMT.cc b/SimG4Core/Application/src/RunManagerMT.cc index 910ab5977bc52..1322351d0cdfd 100644 --- a/SimG4Core/Application/src/RunManagerMT.cc +++ b/SimG4Core/Application/src/RunManagerMT.cc @@ -250,7 +250,7 @@ void RunManagerMT::initG4(const DDCompactView* pDD, // G4Region dump file name auto regionFile = m_p.getUntrackedParameter("FileNameRegions", ""); - runForPhase2(); + runForPhase2(); // Geometry checks if (m_check || !regionFile.empty()) { @@ -361,11 +361,9 @@ void RunManagerMT::setupVoxels() { void RunManagerMT::runForPhase2() { const G4RegionStore* regStore = G4RegionStore::GetInstance(); - for(auto & r : *regStore) { + for (auto& r : *regStore) { const G4String& name = r->GetName(); - if(name == "HGCalRegion" || - name == "FastTimerRegionETL" || - name == "FastTimerRegionBTL") { + if (name == "HGCalRegion" || name == "FastTimerRegionETL" || name == "FastTimerRegionBTL") { m_isPhase2 = true; break; } diff --git a/SimG4Core/Application/src/RunManagerMTWorker.cc b/SimG4Core/Application/src/RunManagerMTWorker.cc index d6f27cc71da54..3528a03d09918 100644 --- a/SimG4Core/Application/src/RunManagerMTWorker.cc +++ b/SimG4Core/Application/src/RunManagerMTWorker.cc @@ -420,7 +420,7 @@ void RunManagerMTWorker::initializeUserActions() { // different stepping actions for Run2,3 and Phase2 G4UserSteppingAction* userSteppingAction; - if(m_isPhase2) { + if (m_isPhase2) { auto ptr = new Phase2SteppingAction(m_sVerbose.get(), m_pSteppingAction, m_hasWatchers); Connect(ptr); userSteppingAction = (G4UserSteppingAction*)ptr;