FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Pixel.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 PIXEL_H
9 #define PIXEL_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 
17 class PixelPoint;
18 class FairVolume;
19 class TClonesArray;
20 
21 class Pixel : public FairDetector
22 {
23  public:
28  Pixel(const char* Name, Bool_t Active);
29 
31  Pixel();
32 
34  virtual ~Pixel();
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  PixelPoint*
60  AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss);
61 
66  // virtual void CopyClones( TClonesArray* cl1, TClonesArray* cl2 ,
67  // Int_t offset) {;}
68  virtual void SetSpecialPhysicsCuts() { ; }
69  virtual void EndOfEvent();
70  virtual void FinishPrimary() { ; }
71  virtual void FinishRun() { ; }
72  virtual void BeginPrimary() { ; }
73  virtual void PostTrack() { ; }
74  virtual void PreTrack() { ; }
75  virtual void BeginEvent() { ; }
76 
77  virtual Bool_t IsSensitive(const std::string& name);
78  virtual FairModule* CloneModule() const;
79 
80  private:
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* fPixelPointCollection;
95 
96  Pixel(const Pixel&);
97  Pixel& operator=(const Pixel&);
98 
99  ClassDef(Pixel, 1);
100 };
101 
102 #endif // PIXEL_H
virtual void Reset()
Definition: Pixel.cxx:155
virtual void SetSpecialPhysicsCuts()
Definition: Pixel.h:68
virtual FairModule * CloneModule() const
Definition: Pixel.cxx:188
Pixel()
Definition: Pixel.cxx:32
virtual Bool_t ProcessHits(FairVolume *v=0)
Definition: Pixel.cxx:78
virtual void PostTrack()
Definition: Pixel.h:73
virtual void FinishRun()
Definition: Pixel.h:71
virtual void PreTrack()
Definition: Pixel.h:74
virtual void BeginPrimary()
Definition: Pixel.h:72
virtual void BeginEvent()
Definition: Pixel.h:75
virtual Bool_t IsSensitive(const std::string &name)
Definition: Pixel.cxx:167
void ConstructGeometry()
Definition: Pixel.cxx:157
virtual TClonesArray * GetCollection(Int_t iColl) const
Definition: Pixel.cxx:146
Definition: Pixel.h:21
virtual void Initialize()
Definition: Pixel.cxx:76
virtual void EndOfEvent()
Definition: Pixel.cxx:133
PixelPoint * AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss)
Definition: Pixel.cxx:175
virtual ~Pixel()
Definition: Pixel.cxx:68
virtual void FinishPrimary()
Definition: Pixel.h:70
virtual void Register()
Definition: Pixel.cxx:135