1 #ifndef __RAT_TrackInfo__
2 #define __RAT_TrackInfo__
4 #include <G4Allocator.hh>
5 #include <G4VUserTrackInformation.hh>
6 #include <RAT/CentroidCalculator.hh>
17 inline void *
operator new(size_t);
18 inline void operator delete(
void *);
20 void SetCreatorProcess(std::string &creatorProcess) { fCreatorProcess = creatorProcess; };
21 void SetCreatorProcess(
const char *creatorProcess) { fCreatorProcess = creatorProcess; };
22 std::string GetCreatorProcess()
const {
return fCreatorProcess; };
29 bool preUserTrackingActionDone =
false;
41 int GetCreatorStep()
const {
return CreatorStep; };
43 virtual void Print()
const {};
46 std::string fCreatorProcess;
51 extern G4Allocator<TrackInfo> aTrackInfoAllocator;
53 inline void *TrackInfo::operator
new(size_t) {
55 aTrackInfo = (
void *)aTrackInfoAllocator.MallocSingle();
59 inline void TrackInfo::operator
delete(
void *aTrackInfo) { aTrackInfoAllocator.FreeSingle((TrackInfo *)aTrackInfo); }
Definition: CentroidCalculator.hh:19
Definition: TrackInfo.hh:12
void SetCreatorStep(int _CreatorStep)
Definition: TrackInfo.hh:40
std::map< std::string, double > energyLoss
Definition: TrackInfo.hh:37
CentroidCalculator energyCentroid
Definition: TrackInfo.hh:32
CentroidCalculator opticalCentroid
Definition: TrackInfo.hh:34
Definition: CCCrossSecMessenger.hh:29