FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTutorialDet1.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 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 FAIRTUTORIALDET1_H
9 #define FAIRTUTORIALDET1_H
10 
11 #include "FairDetector.h" // for FairDetector
12 
13 #include <Rtypes.h> // for Int_t, Double32_t, Double_t, etc
14 #include <TLorentzVector.h> // for TLorentzVector
15 #include <TVector3.h> // for TVector3
16 
19 class FairVolume;
20 class TClonesArray;
21 class FairModule;
22 
24 {
25 
26  public:
31  FairTutorialDet1(const char* Name, Bool_t Active);
32 
35 
37  virtual ~FairTutorialDet1();
38 
40  virtual void Initialize();
41 
45  virtual Bool_t ProcessHits(FairVolume* v = 0);
46 
48  virtual void Register();
49 
51  virtual TClonesArray* GetCollection(Int_t iColl) const;
52 
54  virtual void Reset();
55 
57  void ConstructGeometry();
58 
63  AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss);
64 
69  // virtual void CopyClones( TClonesArray* cl1, TClonesArray* cl2 ,
70  // Int_t offset) {;}
71  virtual void SetSpecialPhysicsCuts() { ; }
72  virtual void EndOfEvent();
73  virtual void FinishPrimary() { ; }
74  virtual void FinishRun() { ; }
75  virtual void BeginPrimary() { ; }
76  virtual void PostTrack() { ; }
77  virtual void PreTrack() { ; }
78  virtual void BeginEvent() { ; }
79 
80  virtual FairModule* CloneModule() const;
81 
82  virtual Bool_t IsSensitive(const std::string& name);
83 
84  private:
85  static FairTutorialDet1Geo* fgGeo;
86 
90  Int_t fTrackID;
91  Int_t fVolumeID;
92  TLorentzVector fPos;
93  TLorentzVector fMom;
94  Double32_t fTime;
95  Double32_t fLength;
96  Double32_t fELoss;
97 
100  TClonesArray* fFairTutorialDet1PointCollection;
101 
103  FairTutorialDet1& operator=(const FairTutorialDet1&);
104 
105  ClassDef(FairTutorialDet1, 1);
106 };
107 
108 #endif // FAIRTUTORIALDET_H
virtual void Initialize()
virtual void BeginPrimary()
virtual TClonesArray * GetCollection(Int_t iColl) const
virtual FairModule * CloneModule() const
virtual void FinishRun()
virtual Bool_t ProcessHits(FairVolume *v=0)
virtual void SetSpecialPhysicsCuts()
virtual void BeginEvent()
FairTutorialDet1Point * AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss)
virtual void PreTrack()
virtual void EndOfEvent()
virtual void Register()
virtual Bool_t IsSensitive(const std::string &name)
virtual void PostTrack()
virtual void FinishPrimary()
virtual void Reset()
virtual ~FairTutorialDet1()