FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTestDetector.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 FAIRTESTDETECTOR_H_
9 #define FAIRTESTDETECTOR_H_
10 
11 #include "FairDetector.h"
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 
18 class FairVolume;
19 class TClonesArray;
20 
22 {
23  public:
28  FairTestDetector(const char* Name, Bool_t Active);
29 
32 
34  virtual ~FairTestDetector();
35 
37  virtual void Initialize();
38 
42  virtual Bool_t ProcessHits(FairVolume* v = 0);
43 
45  virtual void Register();
46 
48  virtual TClonesArray* GetCollection(Int_t iColl) const;
49 
51  virtual void Reset();
52 
54  void ConstructGeometry();
55 
59  FairTestDetectorPoint* AddHit(Int_t trackID,
60  Int_t detID,
61  TVector3 pos,
62  TVector3 mom,
63  TVector3 posOut,
64  TVector3 momOut,
65  Double_t time,
66  Double_t length,
67  Double_t eLoss);
68 
73  /*
74  virtual void CopyClones(TClonesArray* cl1, TClonesArray* cl2, Int_t offset)
75  {
76  ;
77  }
78 */
79  virtual void SetSpecialPhysicsCuts() { ; }
80  virtual void EndOfEvent();
81  virtual void FinishPrimary() { ; }
82  virtual void FinishRun() { ; }
83  virtual void BeginPrimary() { ; }
84  virtual void PostTrack() { ; }
85  virtual void PreTrack() { ; }
86  virtual void BeginEvent() { ; }
87 
88  private:
92  Int_t fTrackID;
93  Int_t fVolumeID;
94  TLorentzVector fPos;
95  TLorentzVector fMom;
96  TLorentzVector fPosOut;
97  TLorentzVector fMomOut;
98  Double32_t fTime;
99  Double32_t fLength;
100  Double32_t fELoss;
101  Int_t fEventNr;
102 
105  TClonesArray* fFairTestDetectorPointCollection;
106 
108  FairTestDetector& operator=(const FairTestDetector&);
109 
110  ClassDef(FairTestDetector, 1);
111 };
112 
113 #endif /* FAIRTESTDETECTOR_H_ */
virtual Bool_t ProcessHits(FairVolume *v=0)
virtual void Initialize()
virtual void Register()
virtual void EndOfEvent()
virtual void PreTrack()
virtual void Reset()
virtual void FinishRun()
virtual ~FairTestDetector()
virtual TClonesArray * GetCollection(Int_t iColl) const
FairTestDetectorPoint * AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, TVector3 posOut, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss)
virtual void FinishPrimary()
virtual void BeginEvent()
virtual void SetSpecialPhysicsCuts()
virtual void BeginPrimary()
virtual void PostTrack()