Skip to content

Commit

Permalink
Format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
karabowi committed Jul 8, 2022
1 parent 2ab950f commit 96b1b31
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
7 changes: 4 additions & 3 deletions base/sim/FairDetector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

#include "FairDetector.h"

#include "FairGeoNode.h" // for FairGeoNode
#include "FairLogger.h" // for FairLogger, MESSAGE_ORIGIN
#include "FairModule.h" // for FairModule::svList, etc
#include "FairGeoNode.h" // for FairGeoNode
#include "FairLogger.h" // for FairLogger, MESSAGE_ORIGIN
#include "FairModule.h" // for FairModule::svList, etc
#include "FairRootManager.h"
#include "FairVolume.h" // for FairVolume

Expand Down Expand Up @@ -134,6 +134,7 @@ void FairDetector::ProcessHits()
LOG(warning) << " Replace with void FairDetector::ProcessHits(). ";
return true;
}();
(void)printOnce;
ProcessHits(NULL);
return;
}
Expand Down
19 changes: 9 additions & 10 deletions base/sim/FairMCApplication.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,6 @@ void FairMCApplication::Stepping()
TrackId = fMC->GetStack()->GetCurrentTrackNumber();
}

Int_t copyNo;
Int_t id = fMC->CurrentVolID(copyNo);

// If information about the tracks should be stored the information as to be
// stored for any step.
// Information about each single step has also to be stored for the other
Expand All @@ -567,15 +564,17 @@ void FairMCApplication::Stepping()
fTrajFilter->GetCurrentTrk()->AddPoint(fTrkPos.X(), fTrkPos.Y(), fTrkPos.Z(), fTrkPos.T());
}
}
if (fRadLenMan) {
id = fMC->CurrentVolID(copyNo);
auto modvoliter = fgMasterInstance->fModVolMap.find(id);
fRadLenMan->AddPoint(fMC, modvoliter->second);
}
if (fRadMapMan) {
if (fRadLenMan || fRadMapMan) {
Int_t copyNo;
Int_t id = fMC->CurrentVolID(copyNo);
id = fMC->CurrentVolID(copyNo);
auto modvoliter = fgMasterInstance->fModVolMap.find(id);
fRadMapMan->AddPoint(fMC, modvoliter->second);
if (fRadLenMan) {
fRadLenMan->AddPoint(fMC, modvoliter->second);
}
if (fRadMapMan) {
fRadMapMan->AddPoint(fMC, modvoliter->second);
}
}
if (fRadGridMan) {
fRadGridMan->FillMeshList();
Expand Down
6 changes: 3 additions & 3 deletions base/sim/FairModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ class FairModule : public TVirtualMCSensitiveDetector
FairVolume* getFairVolume(FairGeoNode* fNode);
void AddSensitiveVolume(TGeoVolume* v);

virtual void EndOfEvent() {}
void EndOfEvent() override {}

virtual void Initialize() {}
void Initialize() override {}

virtual void ProcessHits() {}
void ProcessHits() override {}

private:
/** Re-implimented from ROOT: TGeoMatrix::SetDefaultName() */
Expand Down

0 comments on commit 96b1b31

Please sign in to comment.