CbmRoot
CbmMvdPixelCharge.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmMvdDigi header file -----
3 // ----- Created 02/04/08 by C.Dritsa -----
4 // -------------------------------------------------------------------------
5 
6 
7 #ifndef CBMMVDPIXELCHARGE_H
8 #define CBMMVDPIXELCHARGE_H 1
9 
10 #include "TMath.h"
11 #include "TObject.h"
12 
13 
14 class CbmMvdPixelCharge : public TObject {
15 
16 public:
19 
22  CbmMvdPixelCharge(Float_t charge,
23  Int_t channelNrX,
24  Int_t channelNrY,
25  Int_t hitId,
26  Int_t trackId,
27  Float_t pointX,
28  Float_t pointY,
29  Float_t time = 0.0,
30  Int_t frame = 0);
31  virtual ~CbmMvdPixelCharge();
32 
33  Bool_t TestXY(Int_t channelNrX, Int_t channelNrY);
34 
35 
36  void
37  DigestCharge(Float_t pointX, Float_t pointY, Int_t PointId, Int_t trackId);
38  void AddCharge(Float_t charge) { fTrackCharge = fTrackCharge + charge; };
39 
40 
41  Float_t GetCharge() { return fCharge; };
42  Int_t GetX() { return fChannelNrX; };
43  Int_t GetY() { return fChannelNrY; };
45  Short_t GetNContributors() { return fContributors; };
46  Int_t GetDominatorIndex() { return fDominatorIndex; }
47  Int_t* GetTrackID() { return fTrackId; }
48  Int_t* GetPointID() { return fPointId; }
49  Float_t* GetPointX() { return fPointX; }
50  Float_t* GetPointY() { return fPointY; }
51  Float_t* GetPointWeight() { return fPointWeight; }
52  Float_t GetTime() { return fPixelTime; }
53  Int_t GetFrame() { return fFrame; }
54 
55  virtual void Clear(Option_t* = "") {};
56 
57 
58 private:
59  Int_t fFrame;
60 
61  Float_t fCharge;
65  Short_t fContributors;
66  Int_t fChannelNrX;
67  Int_t fChannelNrY;
68  Float_t fTrackCharge;
71  Int_t fTrackId[5];
72  Int_t fPointId[5];
73  Float_t fPointWeight[5];
74  Float_t fPointX[5];
75  Float_t fPointY[5];
76  Short_t fDominatorIndex;
77  Float_t fPixelTime;
78 
79 
81 };
82 
83 
84 #endif
CbmMvdPixelCharge::fDominatorPointId
Int_t fDominatorPointId
Definition: CbmMvdPixelCharge.h:70
CbmMvdPixelCharge::GetPointID
Int_t * GetPointID()
Definition: CbmMvdPixelCharge.h:48
CbmMvdPixelCharge::fChannelNrX
Int_t fChannelNrX
Definition: CbmMvdPixelCharge.h:66
CbmMvdPixelCharge::GetY
Int_t GetY()
Definition: CbmMvdPixelCharge.h:43
CbmMvdPixelCharge::fPointWeight
Float_t fPointWeight[5]
Definition: CbmMvdPixelCharge.h:73
CbmMvdPixelCharge::fDominatorIndex
Short_t fDominatorIndex
Definition: CbmMvdPixelCharge.h:76
CbmMvdPixelCharge::GetPointX
Float_t * GetPointX()
Definition: CbmMvdPixelCharge.h:49
CbmMvdPixelCharge::fContributors
Short_t fContributors
Definition: CbmMvdPixelCharge.h:65
CbmMvdPixelCharge::fPointId
Int_t fPointId[5]
Definition: CbmMvdPixelCharge.h:72
CbmMvdPixelCharge::fFrame
Int_t fFrame
Definition: CbmMvdPixelCharge.h:55
CbmMvdPixelCharge::TestXY
Bool_t TestXY(Int_t channelNrX, Int_t channelNrY)
Definition: CbmMvdPixelCharge.cxx:42
CbmMvdPixelCharge::fTrackId
Int_t fTrackId[5]
Definition: CbmMvdPixelCharge.h:71
CbmMvdPixelCharge::fMaxChargeContribution
Float_t fMaxChargeContribution
Definition: CbmMvdPixelCharge.h:62
CbmMvdPixelCharge::GetNContributors
Short_t GetNContributors()
Definition: CbmMvdPixelCharge.h:45
CbmMvdPixelCharge::GetTime
Float_t GetTime()
Definition: CbmMvdPixelCharge.h:52
CbmMvdPixelCharge::GetPointWeight
Float_t * GetPointWeight()
Definition: CbmMvdPixelCharge.h:51
CbmMvdPixelCharge
Definition: CbmMvdPixelCharge.h:14
CbmMvdPixelCharge::GetX
Int_t GetX()
Definition: CbmMvdPixelCharge.h:42
CbmMvdPixelCharge::GetTrackID
Int_t * GetTrackID()
Definition: CbmMvdPixelCharge.h:47
CbmMvdPixelCharge::GetFrame
Int_t GetFrame()
Definition: CbmMvdPixelCharge.h:53
CbmMvdPixelCharge::Clear
virtual void Clear(Option_t *="")
Definition: CbmMvdPixelCharge.h:55
CbmMvdPixelCharge::fDominatingPointY
Float_t fDominatingPointY
Definition: CbmMvdPixelCharge.h:64
CbmMvdPixelCharge::GetCharge
Float_t GetCharge()
Definition: CbmMvdPixelCharge.h:41
CbmMvdPixelCharge::fPointX
Float_t fPointX[5]
Definition: CbmMvdPixelCharge.h:74
CbmMvdPixelCharge::fPointY
Float_t fPointY[5]
Definition: CbmMvdPixelCharge.h:75
CbmMvdPixelCharge::ClassDef
ClassDef(CbmMvdPixelCharge, 1)
CbmMvdPixelCharge::fDominatingPointX
Float_t fDominatingPointX
Definition: CbmMvdPixelCharge.h:63
CbmMvdPixelCharge::fCharge
Float_t fCharge
Definition: CbmMvdPixelCharge.h:61
CbmMvdPixelCharge::fTrackCharge
Float_t fTrackCharge
Definition: CbmMvdPixelCharge.h:68
CbmMvdPixelCharge::GetPointY
Float_t * GetPointY()
Definition: CbmMvdPixelCharge.h:50
CbmMvdPixelCharge::fPixelTime
Float_t fPixelTime
Definition: CbmMvdPixelCharge.h:77
CbmMvdPixelCharge::fDominatorTrackId
Int_t fDominatorTrackId
Definition: CbmMvdPixelCharge.h:69
CbmMvdPixelCharge::fChannelNrY
Int_t fChannelNrY
Definition: CbmMvdPixelCharge.h:67
CbmMvdPixelCharge::DigestCharge
void DigestCharge(Float_t pointX, Float_t pointY, Int_t PointId, Int_t trackId)
Definition: CbmMvdPixelCharge.cxx:101
CbmMvdPixelCharge::CbmMvdPixelCharge
CbmMvdPixelCharge()
Definition: CbmMvdPixelCharge.cxx:14
CbmMvdPixelCharge::GetDominatorIndex
Int_t GetDominatorIndex()
Definition: CbmMvdPixelCharge.h:46
CbmMvdPixelCharge::AddCharge
void AddCharge(Float_t charge)
Definition: CbmMvdPixelCharge.h:38
CbmMvdPixelCharge::GetMaxChargeContribution
Float_t GetMaxChargeContribution()
Definition: CbmMvdPixelCharge.h:44
CbmMvdPixelCharge::~CbmMvdPixelCharge
virtual ~CbmMvdPixelCharge()
Definition: CbmMvdPixelCharge.cxx:151