CbmRoot
Loading...
Searching...
No Matches
CbmMuchPad.h
Go to the documentation of this file.
1/* Copyright (C) 2007-2020 St. Petersburg Polytechnic University, St. Petersburg
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Evgeny Kryshen, Vikas Singhal, Mikhail Ryzhinskiy [committer], Florian Uhlig */
4
16#ifndef CBMMUCHPAD_H
17#define CBMMUCHPAD_H 1
18
19#include "CbmMuchAddress.h" // for CbmMuchAddress, kMuchChannel, kMuchSector
20
21#include <RtypesCore.h> // for Double_t, Int_t
22
23#include <vector> // for vector
24
26
27public:
28 CbmMuchPad();
29 CbmMuchPad(Int_t address, Double_t x, Double_t y, Double_t dx, Double_t dy);
30 virtual ~CbmMuchPad() {};
31 Int_t GetAddress() const { return fAddress; }
32 Double_t GetX() const { return fX; }
33 Double_t GetY() const { return fY; }
34 Double_t GetDx() const { return fDx; }
35 Double_t GetDy() const { return fDy; }
36 Double_t GetDxy() const { return 0.; }
37 //Can be removed as we will Buffer Digi in the CbmMuchReadoutBuffer
38 Int_t GetDigiIndex() const { return fDigiIndex; }
39 //CbmMuchDigi* GetDigi() const { return fDigi; }
40 //CbmMuchDigiMatch* GetMatch() const { return fMatch; }
41
42 std::vector<CbmMuchPad*> GetNeighbours() const { return fNeighbours; }
43 void SetNeighbours(std::vector<CbmMuchPad*> neighbours) { fNeighbours = neighbours; }
44 //Can be removed as we will Buffer Digi in the CbmMuchReadoutBuffer
45 void SetDigiIndex(Int_t iDigi) { fDigiIndex = iDigi; }
46 virtual void SetFired(Int_t, Int_t, Int_t = 256) {}
47
50
51protected:
52 Int_t fAddress; // Detector ID (including module number)
53 Double_t fX; // X-coordinate of the pad center
54 Double_t fY; // Y-coordinate of the pad center
55 Double_t fDx; // X-pad width
56 Double_t fDy; // Y-pad width
57 Int_t fDigiIndex; // Index of the corresponding CbmMuchDigi (if any)
58 // CbmMuchDigi* fDigi; //! pointer to current digi
59 // CbmMuchDigiMatch* fMatch; //! pointer to current digi match
60 std::vector<CbmMuchPad*> fNeighbours;
61
62 // CbmMuchDigi* fDigi; //! pointer to current digi
63 // CbmMuchDigiMatch* fMatch; //! pointer to current digi match
64
65
66 // vector<CbmMuchPad*> fNeighbours; //! Array of neighbour pads
67
68private:
71};
72#endif
@ kMuchSector
Sector.
@ kMuchChannel
Channel.
int Int_t
static int32_t GetElementId(uint32_t address, int32_t level)
void SetDigiIndex(Int_t iDigi)
Definition CbmMuchPad.h:45
Int_t fDigiIndex
Definition CbmMuchPad.h:57
Double_t fDx
Definition CbmMuchPad.h:55
Double_t fDy
Definition CbmMuchPad.h:56
Double_t fX
Definition CbmMuchPad.h:53
virtual ~CbmMuchPad()
Definition CbmMuchPad.h:30
Int_t GetSectorIndex()
Definition CbmMuchPad.h:48
Double_t GetX() const
Definition CbmMuchPad.h:32
std::vector< CbmMuchPad * > GetNeighbours() const
Definition CbmMuchPad.h:42
Double_t GetDy() const
Definition CbmMuchPad.h:35
Double_t GetDxy() const
Definition CbmMuchPad.h:36
CbmMuchPad(const CbmMuchPad &)
Array of neighbour pads.
void SetNeighbours(std::vector< CbmMuchPad * > neighbours)
Definition CbmMuchPad.h:43
std::vector< CbmMuchPad * > fNeighbours
Definition CbmMuchPad.h:60
Int_t GetAddress() const
Definition CbmMuchPad.h:31
Int_t fAddress
Definition CbmMuchPad.h:52
virtual void SetFired(Int_t, Int_t, Int_t=256)
Definition CbmMuchPad.h:46
Double_t GetDx() const
Definition CbmMuchPad.h:34
Int_t GetDigiIndex() const
Definition CbmMuchPad.h:38
Double_t fY
Definition CbmMuchPad.h:54
Double_t GetY() const
Definition CbmMuchPad.h:33
Int_t GetChannelIndex()
Definition CbmMuchPad.h:49
CbmMuchPad operator=(const CbmMuchPad &)