Skip to content

Commit 96b1b31

Browse files
committed
Format fixes
1 parent 2ab950f commit 96b1b31

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

base/sim/FairDetector.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
#include "FairDetector.h"
1414

15-
#include "FairGeoNode.h" // for FairGeoNode
16-
#include "FairLogger.h" // for FairLogger, MESSAGE_ORIGIN
17-
#include "FairModule.h" // for FairModule::svList, etc
15+
#include "FairGeoNode.h" // for FairGeoNode
16+
#include "FairLogger.h" // for FairLogger, MESSAGE_ORIGIN
17+
#include "FairModule.h" // for FairModule::svList, etc
1818
#include "FairRootManager.h"
1919
#include "FairVolume.h" // for FairVolume
2020

@@ -134,6 +134,7 @@ void FairDetector::ProcessHits()
134134
LOG(warning) << " Replace with void FairDetector::ProcessHits(). ";
135135
return true;
136136
}();
137+
(void)printOnce;
137138
ProcessHits(NULL);
138139
return;
139140
}

base/sim/FairMCApplication.cxx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,6 @@ void FairMCApplication::Stepping()
548548
TrackId = fMC->GetStack()->GetCurrentTrackNumber();
549549
}
550550

551-
Int_t copyNo;
552-
Int_t id = fMC->CurrentVolID(copyNo);
553-
554551
// If information about the tracks should be stored the information as to be
555552
// stored for any step.
556553
// Information about each single step has also to be stored for the other
@@ -567,15 +564,17 @@ void FairMCApplication::Stepping()
567564
fTrajFilter->GetCurrentTrk()->AddPoint(fTrkPos.X(), fTrkPos.Y(), fTrkPos.Z(), fTrkPos.T());
568565
}
569566
}
570-
if (fRadLenMan) {
571-
id = fMC->CurrentVolID(copyNo);
572-
auto modvoliter = fgMasterInstance->fModVolMap.find(id);
573-
fRadLenMan->AddPoint(fMC, modvoliter->second);
574-
}
575-
if (fRadMapMan) {
567+
if (fRadLenMan || fRadMapMan) {
568+
Int_t copyNo;
569+
Int_t id = fMC->CurrentVolID(copyNo);
576570
id = fMC->CurrentVolID(copyNo);
577571
auto modvoliter = fgMasterInstance->fModVolMap.find(id);
578-
fRadMapMan->AddPoint(fMC, modvoliter->second);
572+
if (fRadLenMan) {
573+
fRadLenMan->AddPoint(fMC, modvoliter->second);
574+
}
575+
if (fRadMapMan) {
576+
fRadMapMan->AddPoint(fMC, modvoliter->second);
577+
}
579578
}
580579
if (fRadGridMan) {
581580
fRadGridMan->FillMeshList();

base/sim/FairModule.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ class FairModule : public TVirtualMCSensitiveDetector
144144
FairVolume* getFairVolume(FairGeoNode* fNode);
145145
void AddSensitiveVolume(TGeoVolume* v);
146146

147-
virtual void EndOfEvent() {}
147+
void EndOfEvent() override {}
148148

149-
virtual void Initialize() {}
149+
void Initialize() override {}
150150

151-
virtual void ProcessHits() {}
151+
void ProcessHits() override {}
152152

153153
private:
154154
/** Re-implimented from ROOT: TGeoMatrix::SetDefaultName() */

0 commit comments

Comments
 (0)