ATLAS Offline Software
TrackBarcodeInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MCTRUTH_TRACKBARCODEINFO_H
6 #define MCTRUTH_TRACKBARCODEINFO_H
7 
8 #include "VTrackInformation.h"
9 
10 namespace ISF {
11  class ISFParticle;
12 }
13 
29 public:
30  TrackBarcodeInfo(int uid, int bc, ISF::ISFParticle* baseIsp=0);
31 
36  virtual const ISF::ISFParticle *GetBaseISFParticle() const override {return m_theBaseISFParticle;}
38 
45  virtual void SetBaseISFParticle(ISF::ISFParticle*) override;
46 
51  virtual bool GetReturnedToISF() const override {return m_returnedToISF;}
56  virtual void SetReturnedToISF(bool returned) override;
57 
58  virtual int GetParticleBarcode() const override {return m_barcode;} // TODO Drop this once UniqueID and Status are used instead
59  virtual int GetParticleUniqueID() const override {return m_uniqueID;}
60  virtual int GetParticleStatus() const override {return m_status;}
61 private:
63  int m_barcode; // TODO Drop this once UniqueID and Status are used instead
65  int m_status{0}; //FIXME
67 };
68 
69 
70 #endif // MCTRUTH_TRACKBARCODEINFO_H
TrackBarcodeInfo::GetParticleBarcode
virtual int GetParticleBarcode() const override
Definition: TrackBarcodeInfo.h:58
TrackBarcodeInfo::m_theBaseISFParticle
ISF::ISFParticle * m_theBaseISFParticle
Definition: TrackBarcodeInfo.h:62
TrackBarcodeInfo::GetParticleUniqueID
virtual int GetParticleUniqueID() const override
Definition: TrackBarcodeInfo.h:59
TrackBarcodeInfo::m_status
int m_status
Definition: TrackBarcodeInfo.h:65
ISF::ISFParticle
Definition: ISFParticle.h:42
TrackBarcodeInfo::GetBaseISFParticle
virtual const ISF::ISFParticle * GetBaseISFParticle() const override
return a pointer to the ISFParticle corresponding to the current G4Track.
Definition: TrackBarcodeInfo.h:36
TrackBarcodeInfo::SetReturnedToISF
virtual void SetReturnedToISF(bool returned) override
Flag whether the ISFParticle corresponding to the current G4Track scheduled to be returned to the ISF...
Definition: TrackBarcodeInfo.cxx:21
TrackBarcodeInfo
Minimal implementation of VTrackInformation. Instances of this class are attached as UserInformation ...
Definition: TrackBarcodeInfo.h:28
VTrackInformation.h
TrackBarcodeInfo::TrackBarcodeInfo
TrackBarcodeInfo(int uid, int bc, ISF::ISFParticle *baseIsp=0)
Definition: TrackBarcodeInfo.cxx:7
TrackBarcodeInfo::GetParticleStatus
virtual int GetParticleStatus() const override
Definition: TrackBarcodeInfo.h:60
TrackBarcodeInfo::SetBaseISFParticle
virtual void SetBaseISFParticle(ISF::ISFParticle *) override
set the pointer to the ISFParticle corresponding to the current G4Track.
Definition: TrackBarcodeInfo.cxx:16
ISF
ISFParticleOrderedQueue.
Definition: PrimaryParticleInformation.h:13
TrackBarcodeInfo::m_barcode
int m_barcode
Definition: TrackBarcodeInfo.h:63
TrackBarcodeInfo::m_returnedToISF
bool m_returnedToISF
Definition: TrackBarcodeInfo.h:66
TrackBarcodeInfo::GetReturnedToISF
virtual bool GetReturnedToISF() const override
Is the ISFParticle corresponding to the current G4Track scheduled to be returned to the ISF?
Definition: TrackBarcodeInfo.h:51
TrackBarcodeInfo::GetBaseISFParticle
virtual ISF::ISFParticle * GetBaseISFParticle() override
Definition: TrackBarcodeInfo.h:37
TrackBarcodeInfo::m_uniqueID
int m_uniqueID
Definition: TrackBarcodeInfo.h:64
VTrackInformation
Instances of classes derived from this class are attached as UserInformation to G4Tracks....
Definition: VTrackInformation.h:30