CbmRoot
CbmMvdDigi.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmMvdDigi header file -----
3 // ----- Created 02/04/08 by C.Dritsa -----
4 // -------------------------------------------------------------------------
5 
6 // TODO: Include GetAddress, GetLinks, GetTime
7 
8 #ifndef CBMMVDDIGI_H
9 #define CBMMVDDIGI_H 1
10 
11 #include <Rtypes.h> // for ClassDef
12 #include <RtypesCore.h> // for Int_t, Float_t, Double_t
13 #include <TObject.h> // for TObject
14 
15 #include <string> // for string
16 
17 #include "CbmDefs.h" // for ECbmModuleId::kMvd
18 #include "CbmMvdDetectorId.h" // for CbmMvdDetectorId
19 
20 
21 class CbmMvdDigi : public TObject, public CbmMvdDetectorId {
22 
23 public:
25  CbmMvdDigi();
26 
29  CbmMvdDigi(Int_t iStation,
30  Int_t iChannelNrX,
31  Int_t iChannelNrY,
32  Float_t charge,
33  Float_t pixelSizeX,
34  Float_t pixelSizeY,
35  Float_t time = 0.0,
36  Int_t frame = 0);
43  ~CbmMvdDigi();
44 
45  static const char* GetClassName() { return "CbmMvdDigi"; }
47 
49  Double_t GetCharge() const { return fCharge; };
50  Int_t GetPixelX();
51  Int_t GetPixelY();
52  Double_t GetPixelSizeX() { return fPixelSizeX; };
53  Double_t GetPixelSizeY() { return fPixelSizeY; };
54  Int_t GetAdcCharge(Int_t adcDynamic, Int_t adcOffset, Int_t adcBits);
55  Int_t GetFlag() { return fDigiFlag; };
56  Int_t GetStationNr() { return StationNr(fDetectorId); };
57  Int_t GetDetectorId() { return fDetectorId; };
58  Int_t GetAddress() const;
59  Double_t GetTime() const;
60  Int_t GetFrameNumber() { return fFrameNumber; };
61 
62 
63  Int_t GetRefId() const { return fRefId; };
64 
65  std::string ToString() const { return ""; }
66 
67  //these functions are only for littrack
68  Int_t GetDominatorX() { return 0; };
69  Int_t GetDominatorY() { return 0; };
70  Int_t GetTrackID() { return 0; };
71  Int_t GetContributors() { return 0; };
72  Int_t GetPointID() { return 0; };
73  //
74 
75 
77  void SetCharge(Float_t charge) { fCharge = charge; };
78  void SetPixelX(Int_t xIndex) { fChannelNrX = xIndex; };
79  void SetPixelY(Int_t yIndex) { fChannelNrY = yIndex; };
80  void SetPixelIndex(Int_t pixelIndex) { fChannelNr = pixelIndex; };
81  void SetDetectorId(Int_t detId) { fDetectorId = detId; };
82  void SetFlag(Int_t flag) { fDigiFlag = flag; }
83  void SetFrameNr(Int_t frame) { fFrameNumber = frame; };
84  void SetRefId(Int_t refId) { fRefId = refId; }
85 
86 private:
87  Float_t fCharge;
88  Int_t fChannelNrX;
89  Int_t fChannelNrY;
90  Int_t fTrackID;
91  Int_t fPointID;
92  Float_t fPixelSizeX;
93  Float_t fPixelSizeY;
94  Int_t fDetectorId;
95  Int_t fChannelNr;
96  Double_t fDigiTime;
97  Int_t fFrameNumber;
98  Int_t fRefId;
99 
100 
101  Int_t fDigiFlag; // Debugging and analysis information
102 
104 };
105 
106 
107 #endif
CbmMvdDetectorId
Definition: CbmMvdDetectorId.h:32
CbmMvdDigi::GetPixelY
Int_t GetPixelY()
Definition: CbmMvdDigi.cxx:143
CbmMvdDigi::SetPixelY
void SetPixelY(Int_t yIndex)
Definition: CbmMvdDigi.h:79
CbmMvdDigi::GetCharge
Double_t GetCharge() const
Definition: CbmMvdDigi.h:49
CbmMvdDigi::GetAdcCharge
Int_t GetAdcCharge(Int_t adcDynamic, Int_t adcOffset, Int_t adcBits)
Definition: CbmMvdDigi.cxx:103
CbmMvdDigi::GetTime
Double_t GetTime() const
Definition: CbmMvdDigi.cxx:152
CbmMvdDigi::fDetectorId
Int_t fDetectorId
Definition: CbmMvdDigi.h:94
CbmMvdDigi::GetFlag
Int_t GetFlag()
Definition: CbmMvdDigi.h:55
CbmMvdDigi::SetPixelIndex
void SetPixelIndex(Int_t pixelIndex)
Definition: CbmMvdDigi.h:80
CbmMvdDigi::SetRefId
void SetRefId(Int_t refId)
Definition: CbmMvdDigi.h:84
CbmMvdDigi::GetDominatorY
Int_t GetDominatorY()
Definition: CbmMvdDigi.h:69
CbmMvdDigi::SetDetectorId
void SetDetectorId(Int_t detId)
Definition: CbmMvdDigi.h:81
CbmMvdDigi::GetAddress
Int_t GetAddress() const
Definition: CbmMvdDigi.cxx:147
CbmMvdDigi::GetDominatorX
Int_t GetDominatorX()
Definition: CbmMvdDigi.h:68
CbmMvdDigi::GetTrackID
Int_t GetTrackID()
Definition: CbmMvdDigi.h:70
ECbmModuleId::kMvd
@ kMvd
Micro-Vertex Detector.
CbmMvdDigi::GetPointID
Int_t GetPointID()
Definition: CbmMvdDigi.h:72
CbmMvdDigi::GetClassName
static const char * GetClassName()
Definition: CbmMvdDigi.h:45
ECbmModuleId
ECbmModuleId
Definition: CbmDefs.h:33
CbmMvdDetectorId.h
CbmMvdDigi::fDigiTime
Double_t fDigiTime
Definition: CbmMvdDigi.h:96
CbmMvdDigi::SetFlag
void SetFlag(Int_t flag)
Definition: CbmMvdDigi.h:82
CbmMvdDigi::GetFrameNumber
Int_t GetFrameNumber()
Definition: CbmMvdDigi.h:60
CbmMvdDigi::ToString
std::string ToString() const
Definition: CbmMvdDigi.h:65
CbmMvdDigi::fChannelNrX
Int_t fChannelNrX
Definition: CbmMvdDigi.h:88
CbmMvdDigi::fFrameNumber
Int_t fFrameNumber
Definition: CbmMvdDigi.h:97
CbmMvdDigi::GetPixelSizeX
Double_t GetPixelSizeX()
Definition: CbmMvdDigi.h:52
yIndex
Int_t yIndex
Definition: CbmMvdSensorDigiToHitTask.cxx:67
CbmMvdDigi::fPixelSizeX
Float_t fPixelSizeX
Definition: CbmMvdDigi.h:92
CbmMvdDigi::fChannelNrY
Int_t fChannelNrY
Definition: CbmMvdDigi.h:89
CbmMvdDigi::ClassDef
ClassDef(CbmMvdDigi, 2)
CbmMvdDigi::fTrackID
Int_t fTrackID
Definition: CbmMvdDigi.h:90
CbmMvdDigi::GetRefId
Int_t GetRefId() const
Definition: CbmMvdDigi.h:63
CbmMvdDigi::GetContributors
Int_t GetContributors()
Definition: CbmMvdDigi.h:71
CbmMvdDigi::fChannelNr
Int_t fChannelNr
Definition: CbmMvdDigi.h:95
CbmMvdDigi::fDigiFlag
Int_t fDigiFlag
Definition: CbmMvdDigi.h:101
xIndex
Int_t xIndex
Definition: CbmMvdSensorDigiToHitTask.cxx:66
CbmMvdDigi::SetPixelX
void SetPixelX(Int_t xIndex)
Definition: CbmMvdDigi.h:78
CbmMvdDigi::SetCharge
void SetCharge(Float_t charge)
Definition: CbmMvdDigi.h:77
CbmMvdDigi::fRefId
Int_t fRefId
Definition: CbmMvdDigi.h:98
CbmMvdDigi::GetPixelSizeY
Double_t GetPixelSizeY()
Definition: CbmMvdDigi.h:53
CbmMvdDigi
Definition: CbmMvdDigi.h:21
CbmMvdDigi::fCharge
Float_t fCharge
Definition: CbmMvdDigi.h:87
CbmMvdDigi::GetPixelX
Int_t GetPixelX()
Definition: CbmMvdDigi.cxx:141
CbmMvdDigi::SetFrameNr
void SetFrameNr(Int_t frame)
Definition: CbmMvdDigi.h:83
CbmMvdDetectorId::StationNr
Int_t StationNr(Int_t detectorId) const
Definition: CbmMvdDetectorId.h:61
CbmMvdDigi::~CbmMvdDigi
~CbmMvdDigi()
Definition: CbmMvdDigi.cxx:159
CbmMvdDigi::fPointID
Int_t fPointID
Definition: CbmMvdDigi.h:91
CbmMvdDigi::CbmMvdDigi
CbmMvdDigi()
Definition: CbmMvdDigi.cxx:14
CbmMvdDigi::GetStationNr
Int_t GetStationNr()
Definition: CbmMvdDigi.h:56
CbmMvdDigi::GetDetectorId
Int_t GetDetectorId()
Definition: CbmMvdDigi.h:57
CbmMvdDigi::fPixelSizeY
Float_t fPixelSizeY
Definition: CbmMvdDigi.h:93
CbmMvdDigi::GetSystem
static ECbmModuleId GetSystem()
Definition: CbmMvdDigi.h:46
CbmDefs.h