Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
civanch committed Apr 25, 2023
1 parent 873379a commit 1b6d40f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions SimG4Core/Application/src/CMSSimEventManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
8 changes: 3 additions & 5 deletions SimG4Core/Application/src/RunManagerMT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void RunManagerMT::initG4(const DDCompactView* pDD,

// G4Region dump file name
auto regionFile = m_p.getUntrackedParameter<std::string>("FileNameRegions", "");
runForPhase2();
runForPhase2();

// Geometry checks
if (m_check || !regionFile.empty()) {
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion SimG4Core/Application/src/RunManagerMTWorker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1b6d40f

Please sign in to comment.