CbmRoot
CbmMuchPad.h
Go to the documentation of this file.
1 
12 #ifndef CBMMUCHPAD_H
13 #define CBMMUCHPAD_H 1
14 
15 #include <RtypesCore.h> // for Double_t, Int_t
16 
17 #include <vector> // for vector
18 
19 #include "CbmMuchAddress.h" // for CbmMuchAddress, kMuchChannel, kMuchSector
20 
21 class CbmMuchPad {
22 
23 public:
24  CbmMuchPad();
25  CbmMuchPad(Int_t address, Double_t x, Double_t y, Double_t dx, Double_t dy);
26  virtual ~CbmMuchPad() {};
27  Int_t GetAddress() const { return fAddress; }
28  Double_t GetX() const { return fX; }
29  Double_t GetY() const { return fY; }
30  Double_t GetDx() const { return fDx; }
31  Double_t GetDy() const { return fDy; }
32  Double_t GetDxy() const { return 0.; }
33  //Can be removed as we will Buffer Digi in the CbmMuchReadoutBuffer
34  Int_t GetDigiIndex() const { return fDigiIndex; }
35  //CbmMuchDigi* GetDigi() const { return fDigi; }
36  //CbmMuchDigiMatch* GetMatch() const { return fMatch; }
37 
38  std::vector<CbmMuchPad*> GetNeighbours() const { return fNeighbours; }
39  void SetNeighbours(std::vector<CbmMuchPad*> neighbours) {
40  fNeighbours = neighbours;
41  }
42  //Can be removed as we will Buffer Digi in the CbmMuchReadoutBuffer
43  void SetDigiIndex(Int_t iDigi) { fDigiIndex = iDigi; }
44  virtual void SetFired(Int_t, Int_t, Int_t = 256) {}
45 
46  Int_t GetSectorIndex() {
48  }
49  Int_t GetChannelIndex() {
51  }
52 
53 protected:
54  Int_t fAddress; // Detector ID (including module number)
55  Double_t fX; // X-coordinate of the pad center
56  Double_t fY; // Y-coordinate of the pad center
57  Double_t fDx; // X-pad width
58  Double_t fDy; // Y-pad width
59  Int_t fDigiIndex; // Index of the corresponding CbmMuchDigi (if any)
60  // CbmMuchDigi* fDigi; //! pointer to current digi
61  // CbmMuchDigiMatch* fMatch; //! pointer to current digi match
62  std::vector<CbmMuchPad*> fNeighbours;
63 
64  // CbmMuchDigi* fDigi; //! pointer to current digi
65  // CbmMuchDigiMatch* fMatch; //! pointer to current digi match
66 
67 
68  // vector<CbmMuchPad*> fNeighbours; //! Array of neighbour pads
69 
70 private:
73 };
74 #endif
CbmMuchPad::GetNeighbours
std::vector< CbmMuchPad * > GetNeighbours() const
Definition: CbmMuchPad.h:38
kMuchChannel
@ kMuchChannel
Channel.
Definition: CbmMuchAddress.h:22
CbmMuchPad::fDy
Double_t fDy
Definition: CbmMuchPad.h:58
kMuchSector
@ kMuchSector
Sector.
Definition: CbmMuchAddress.h:21
CbmMuchPad::fNeighbours
std::vector< CbmMuchPad * > fNeighbours
Definition: CbmMuchPad.h:62
CbmMuchPad::fAddress
Int_t fAddress
Definition: CbmMuchPad.h:54
CbmMuchPad::GetY
Double_t GetY() const
Definition: CbmMuchPad.h:29
CbmMuchPad::fX
Double_t fX
Definition: CbmMuchPad.h:55
CbmMuchPad::GetDy
Double_t GetDy() const
Definition: CbmMuchPad.h:31
CbmMuchPad::fY
Double_t fY
Definition: CbmMuchPad.h:56
CbmMuchAddress::GetElementId
static Int_t GetElementId(UInt_t address, Int_t level)
Definition: CbmMuchAddress.h:94
CbmMuchPad::GetDx
Double_t GetDx() const
Definition: CbmMuchPad.h:30
CbmMuchPad::operator=
CbmMuchPad operator=(const CbmMuchPad &)
CbmMuchPad::SetFired
virtual void SetFired(Int_t, Int_t, Int_t=256)
Definition: CbmMuchPad.h:44
CbmMuchPad::GetDxy
Double_t GetDxy() const
Definition: CbmMuchPad.h:32
CbmMuchPad::GetDigiIndex
Int_t GetDigiIndex() const
Definition: CbmMuchPad.h:34
CbmMuchPad::SetDigiIndex
void SetDigiIndex(Int_t iDigi)
Definition: CbmMuchPad.h:43
CbmMuchPad::GetAddress
Int_t GetAddress() const
Definition: CbmMuchPad.h:27
CbmMuchPad::CbmMuchPad
CbmMuchPad(const CbmMuchPad &)
Array of neighbour pads.
CbmMuchPad::~CbmMuchPad
virtual ~CbmMuchPad()
Definition: CbmMuchPad.h:26
CbmMuchPad
Definition: CbmMuchPad.h:21
CbmMuchPad::GetSectorIndex
Int_t GetSectorIndex()
Definition: CbmMuchPad.h:46
CbmMuchPad::GetChannelIndex
Int_t GetChannelIndex()
Definition: CbmMuchPad.h:49
CbmMuchPad::fDx
Double_t fDx
Definition: CbmMuchPad.h:57
CbmMuchAddress.h
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmMuchPad::GetX
Double_t GetX() const
Definition: CbmMuchPad.h:28
CbmMuchPad::fDigiIndex
Int_t fDigiIndex
Definition: CbmMuchPad.h:59
CbmMuchPad::SetNeighbours
void SetNeighbours(std::vector< CbmMuchPad * > neighbours)
Definition: CbmMuchPad.h:39
CbmMuchPad::CbmMuchPad
CbmMuchPad()
Definition: CbmMuchPad.cxx:4