FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTutPropDet.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef FAIRTUTPROPDET_H
9 #define FAIRTUTPROPDET_H
10 
11 #include "FairDetector.h" // for FairDetector
12 #include "Rtypes.h" // for Int_t, Double32_t, Double_t, etc
13 #include "TLorentzVector.h" // for TLorentzVector
14 #include "TVector3.h" // for TVector3
15 class FairTutPropPoint;
16 class FairVolume;
17 class TClonesArray;
18 
20 {
21 
22  public:
27  FairTutPropDet(const char* Name, Bool_t Active);
28 
31 
33  virtual ~FairTutPropDet();
34 
36  virtual void Initialize();
37 
41  virtual Bool_t ProcessHits(FairVolume* v = 0);
42 
44  virtual void Register();
45 
47  virtual TClonesArray* GetCollection(Int_t iColl) const;
48 
50  virtual void Reset();
51 
53  void ConstructGeometry();
54 
59  AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss);
60 
65  // virtual void CopyClones( TClonesArray* cl1, TClonesArray* cl2 ,
66  // Int_t offset) {;}
67  virtual void SetSpecialPhysicsCuts() { ; }
68  virtual void EndOfEvent();
69  virtual void FinishPrimary() { ; }
70  virtual void FinishRun() { ; }
71  virtual void BeginPrimary() { ; }
72  virtual void PostTrack() { ; }
73  virtual void PreTrack() { ; }
74  virtual void BeginEvent() { ; }
75 
76  void SetPointsArrayName(const std::string& tempName) { fPointsArrayName = tempName; };
77 
78  private:
79  std::string fPointsArrayName;
80 
84  Int_t fTrackID;
85  Int_t fVolumeID;
86  TLorentzVector fPos;
87  TLorentzVector fMom;
88  Double32_t fTime;
89  Double32_t fLength;
90  Double32_t fELoss;
91 
94  TClonesArray* fFairTutPropPointCollection;
95 
97  FairTutPropDet& operator=(const FairTutPropDet&);
98 
99  ClassDef(FairTutPropDet, 1);
100 };
101 
102 #endif // FAIRTUTPROPDET_H
virtual void Initialize()
virtual void SetSpecialPhysicsCuts()
virtual void Register()
virtual ~FairTutPropDet()
virtual void Reset()
virtual TClonesArray * GetCollection(Int_t iColl) const
void SetPointsArrayName(const std::string &tempName)
virtual void PreTrack()
virtual void BeginEvent()
virtual void EndOfEvent()
FairTutPropPoint * AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss)
virtual void FinishPrimary()
virtual void FinishRun()
virtual void BeginPrimary()
virtual Bool_t ProcessHits(FairVolume *v=0)
virtual void PostTrack()