11 #include <FairDetector.h>
14 #include <TLorentzVector.h>
27 class TMemberInspector;
29 class AtTpc :
public FairDetector {
41 TLorentzVector fPosIn, fPosOut;
42 TLorentzVector fMomIn, fMomOut;
43 Double32_t fTime_in{};
44 Double32_t fTime_out{};
46 Double32_t fLength_in{};
47 Double32_t fLength_out{};
51 TClonesArray *fTraCollection{};
60 TClonesArray *fAtTpcPointCollection;
67 AtTpc(
const char *Name, Bool_t Active);
73 virtual Bool_t
ProcessHits(FairVolume *v = 0)
override;
75 virtual TClonesArray *
GetCollection(Int_t iColl)
const override;
76 virtual void Reset()
override;
77 virtual void Print(Option_t *option =
"")
const override;
85 AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss);
87 AtMCPoint *
AddHit(Int_t trackID, Int_t detID, TString VolName, Int_t detCopyID, TVector3 pos, TVector3 mom,
88 Double_t time, Double_t length, Double_t eLoss, Double_t EIni, Double_t AIni, Int_t A, Int_t Z);
91 std::pair<Int_t, Int_t> DecodePdG(Int_t PdG_Code);
93 void trackEnteringVolume();
94 void getTrackParametersFromMC();
95 void getTrackParametersWhileExiting();
99 bool reactionOccursHere();
100 void startReactionEvent();
105 ClassDefOverride(
AtTpc, 2)
108 #endif // NEWDETECTOR_H