CbmRoot
CbmMvdHit.h
Go to the documentation of this file.
1 #// -------------------------------------------------------------------------
2 // ----- CbmMvdHit header file -----
3 // ----- Created 07/11/06 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
6 
18 #ifndef CBMMVDHIT_H
19 #define CBMMVDHIT_H 1
20 
21 #include <Rtypes.h> // for ClassDef
22 #include <RtypesCore.h> // for Int_t, Option_t
23 
24 #include "CbmMvdDetectorId.h" // for CbmMvdDetectorId
25 #include "CbmPixelHit.h" // for CbmPixelHit
26 
27 class TVector3;
28 
29 class CbmMvdHit : public CbmPixelHit, public CbmMvdDetectorId {
30 
31 public:
33  CbmMvdHit();
34 
35 
42  CbmMvdHit(Int_t statNr,
43  TVector3& pos,
44  TVector3& dpos,
45  Int_t indexCentralX,
46  Int_t indexCentralY = 0,
47  Int_t fClusterIndex = 0,
48  Int_t flag = 0);
49 
50 
52  virtual ~CbmMvdHit();
53 
54 
56  virtual void Print(const Option_t* opt = 0) const;
57 
58 
60  Int_t GetSystemId() const { return SystemId(fDetectorID); };
61  virtual Int_t GetStationNr() const { return StationNr(fDetectorID); };
62  Int_t GetFlag() const { return fFlag; };
63  Int_t GetClusterIndex() const { return fClusterIndex; };
64  Int_t GetIndexCentralX() const {
65  return fIndexCentralX;
66  }; // returns index of center of gravity
67  Int_t GetIndexCentralY() const {
68  return fIndexCentralY;
69  }; // returns index of center of gravity
70  // void GetDigiIndexVector(TClonesArray* cbmMvdClusterArray, std::vector<Int_t>* digiIndexVector);
71  Int_t GetRefIndex() { return fFlag; }
72 
73 
74 protected:
75  Int_t fFlag; // Hit flag; to be used later
79 
80  Int_t fDetectorID;
81 
82 
84 };
85 
86 
87 #endif
CbmMvdDetectorId
Definition: CbmMvdDetectorId.h:32
CbmMvdHit::fDetectorID
Int_t fDetectorID
Definition: CbmMvdHit.h:80
CbmMvdHit::GetStationNr
virtual Int_t GetStationNr() const
Definition: CbmMvdHit.h:61
CbmMvdDetectorId.h
CbmMvdHit::GetIndexCentralX
Int_t GetIndexCentralX() const
Definition: CbmMvdHit.h:64
CbmMvdHit
Definition: CbmMvdHit.h:29
CbmMvdHit::fIndexCentralX
Int_t fIndexCentralX
Definition: CbmMvdHit.h:77
CbmMvdHit::Print
virtual void Print(const Option_t *opt=0) const
Definition: CbmMvdHit.cxx:91
dpos
TVector3 dpos
Definition: CbmMvdSensorDigiToHitTask.cxx:61
CbmMvdDetectorId::SystemId
Int_t SystemId(Int_t detectorId) const
Definition: CbmMvdDetectorId.h:50
CbmMvdHit::GetFlag
Int_t GetFlag() const
Definition: CbmMvdHit.h:62
CbmMvdHit::GetIndexCentralY
Int_t GetIndexCentralY() const
Definition: CbmMvdHit.h:67
CbmPixelHit.h
CbmMvdHit::fIndexCentralY
Int_t fIndexCentralY
Definition: CbmMvdHit.h:78
CbmMvdHit::ClassDef
ClassDef(CbmMvdHit, 3)
CbmMvdHit::fFlag
Int_t fFlag
Definition: CbmMvdHit.h:75
CbmMvdHit::GetRefIndex
Int_t GetRefIndex()
Definition: CbmMvdHit.h:71
CbmMvdHit::~CbmMvdHit
virtual ~CbmMvdHit()
Definition: CbmMvdHit.cxx:86
CbmMvdHit::CbmMvdHit
CbmMvdHit()
Definition: CbmMvdHit.cxx:12
pos
TVector3 pos
Definition: CbmMvdSensorDigiToHitTask.cxx:60
CbmMvdHit::GetClusterIndex
Int_t GetClusterIndex() const
Definition: CbmMvdHit.h:63
CbmPixelHit
Definition: CbmPixelHit.h:21
CbmMvdHit::GetSystemId
Int_t GetSystemId() const
Definition: CbmMvdHit.h:60
CbmMvdDetectorId::StationNr
Int_t StationNr(Int_t detectorId) const
Definition: CbmMvdDetectorId.h:61
CbmMvdHit::fClusterIndex
Int_t fClusterIndex
Definition: CbmMvdHit.h:76