Public Member Functions | Private Attributes | List of all members
gar::raw::CaloRawDigit Class Reference

#include <CaloRawDigit.h>

Public Member Functions

 CaloRawDigit ()
 Default constructor: an empty raw digit with zeros put in for paraneters and an invalid channel. More...
 
 CaloRawDigit (unsigned int ADC, float time, float x, float y, float z, CellID_t cellID)
 
 CaloRawDigit (unsigned int ADC, std::pair< float, float > time, float x, float y, float z, CellID_t cellID)
 
 CaloRawDigit (std::pair< unsigned int, unsigned int > ADC, std::pair< float, float > time, float x, float y, float z, CellID_t cellID)
 
 CaloRawDigit (gar::raw::CaloRawDigit const &)=default
 
std::pair< unsigned int, unsigned int > ADC () const
 Reference to the compressed ADC count vector. More...
 
std::pair< float, float > Time () const
 Timestmap. More...
 
float X () const
 X position. More...
 
float Y () const
 Y position. More...
 
float Z () const
 Z position. More...
 
CellID_t CellID () const
 cellID More...
 

Private Attributes

std::pair< unsigned int, unsigned int > fADC
 energy of the hit in ADC for both SiPM More...
 
std::pair< float, float > fTime
 time of the hit for both SiPM More...
 
float fX
 x of the hit More...
 
float fY
 y of the hit More...
 
float fZ
 z of the hit More...
 
CellID_t fCellID
 cellID1 of the hit based on 64 bits More...
 

Detailed Description

Definition at line 26 of file CaloRawDigit.h.

Constructor & Destructor Documentation

gar::raw::CaloRawDigit::CaloRawDigit ( )

Default constructor: an empty raw digit with zeros put in for paraneters and an invalid channel.

Definition at line 20 of file CaloRawDigit.cxx.

21  : fADC(std::make_pair(0., 0.)),
22  fTime(std::make_pair(0., 0.)),
23  fX(0.),
24  fY(0.),
25  fZ(0.),
26  fCellID(0)
27  {}
float fZ
z of the hit
Definition: CaloRawDigit.h:64
std::pair< unsigned int, unsigned int > fADC
energy of the hit in ADC for both SiPM
Definition: CaloRawDigit.h:60
float fX
x of the hit
Definition: CaloRawDigit.h:62
std::pair< float, float > fTime
time of the hit for both SiPM
Definition: CaloRawDigit.h:61
float fY
y of the hit
Definition: CaloRawDigit.h:63
CellID_t fCellID
cellID1 of the hit based on 64 bits
Definition: CaloRawDigit.h:65
gar::raw::CaloRawDigit::CaloRawDigit ( unsigned int  ADC,
float  time,
float  x,
float  y,
float  z,
CellID_t  cellID 
)

Definition at line 30 of file CaloRawDigit.cxx.

31  : fX(x),
32  fY(y),
33  fZ(z),
34  fCellID(cellID)
35  {
36  fADC = std::make_pair(ADC, 0.);
37  fTime = std::make_pair(time, 0.);
38  }
float fZ
z of the hit
Definition: CaloRawDigit.h:64
std::pair< unsigned int, unsigned int > ADC() const
Reference to the compressed ADC count vector.
Definition: CaloRawDigit.h:78
std::pair< unsigned int, unsigned int > fADC
energy of the hit in ADC for both SiPM
Definition: CaloRawDigit.h:60
float fX
x of the hit
Definition: CaloRawDigit.h:62
std::pair< float, float > fTime
time of the hit for both SiPM
Definition: CaloRawDigit.h:61
float fY
y of the hit
Definition: CaloRawDigit.h:63
CellID_t fCellID
cellID1 of the hit based on 64 bits
Definition: CaloRawDigit.h:65
list x
Definition: train.py:276
gar::raw::CaloRawDigit::CaloRawDigit ( unsigned int  ADC,
std::pair< float, float >  time,
float  x,
float  y,
float  z,
CellID_t  cellID 
)

Definition at line 41 of file CaloRawDigit.cxx.

42  : fTime(time),
43  fX(x),
44  fY(y),
45  fZ(z),
46  fCellID(cellID)
47  {
48  fADC = std::make_pair(ADC, 0.);
49  }
float fZ
z of the hit
Definition: CaloRawDigit.h:64
std::pair< unsigned int, unsigned int > ADC() const
Reference to the compressed ADC count vector.
Definition: CaloRawDigit.h:78
std::pair< unsigned int, unsigned int > fADC
energy of the hit in ADC for both SiPM
Definition: CaloRawDigit.h:60
float fX
x of the hit
Definition: CaloRawDigit.h:62
std::pair< float, float > fTime
time of the hit for both SiPM
Definition: CaloRawDigit.h:61
float fY
y of the hit
Definition: CaloRawDigit.h:63
CellID_t fCellID
cellID1 of the hit based on 64 bits
Definition: CaloRawDigit.h:65
list x
Definition: train.py:276
gar::raw::CaloRawDigit::CaloRawDigit ( std::pair< unsigned int, unsigned int >  ADC,
std::pair< float, float >  time,
float  x,
float  y,
float  z,
CellID_t  cellID 
)

Definition at line 52 of file CaloRawDigit.cxx.

53  : fADC(ADC),
54  fTime(time),
55  fX(x),
56  fY(y),
57  fZ(z),
58  fCellID(cellID)
59  {}
float fZ
z of the hit
Definition: CaloRawDigit.h:64
std::pair< unsigned int, unsigned int > ADC() const
Reference to the compressed ADC count vector.
Definition: CaloRawDigit.h:78
std::pair< unsigned int, unsigned int > fADC
energy of the hit in ADC for both SiPM
Definition: CaloRawDigit.h:60
float fX
x of the hit
Definition: CaloRawDigit.h:62
std::pair< float, float > fTime
time of the hit for both SiPM
Definition: CaloRawDigit.h:61
float fY
y of the hit
Definition: CaloRawDigit.h:63
CellID_t fCellID
cellID1 of the hit based on 64 bits
Definition: CaloRawDigit.h:65
list x
Definition: train.py:276
gar::raw::CaloRawDigit::CaloRawDigit ( gar::raw::CaloRawDigit const &  )
default

Member Function Documentation

std::pair< unsigned int, unsigned int > gar::raw::CaloRawDigit::ADC ( ) const
inline

Reference to the compressed ADC count vector.

Definition at line 78 of file CaloRawDigit.h.

78 {return fADC; }
std::pair< unsigned int, unsigned int > fADC
energy of the hit in ADC for both SiPM
Definition: CaloRawDigit.h:60
gar::raw::CellID_t gar::raw::CaloRawDigit::CellID ( ) const
inline

cellID

Definition at line 83 of file CaloRawDigit.h.

83 {return fCellID;}
CellID_t fCellID
cellID1 of the hit based on 64 bits
Definition: CaloRawDigit.h:65
std::pair< float, float > gar::raw::CaloRawDigit::Time ( ) const
inline

Timestmap.

Definition at line 79 of file CaloRawDigit.h.

79 {return fTime; }
std::pair< float, float > fTime
time of the hit for both SiPM
Definition: CaloRawDigit.h:61
float gar::raw::CaloRawDigit::X ( ) const
inline

X position.

Definition at line 80 of file CaloRawDigit.h.

80 {return fX; }
float fX
x of the hit
Definition: CaloRawDigit.h:62
float gar::raw::CaloRawDigit::Y ( ) const
inline

Y position.

Definition at line 81 of file CaloRawDigit.h.

81 {return fY; }
float fY
y of the hit
Definition: CaloRawDigit.h:63
float gar::raw::CaloRawDigit::Z ( ) const
inline

Z position.

Definition at line 82 of file CaloRawDigit.h.

82 {return fZ; }
float fZ
z of the hit
Definition: CaloRawDigit.h:64

Member Data Documentation

std::pair<unsigned int, unsigned int> gar::raw::CaloRawDigit::fADC
private

energy of the hit in ADC for both SiPM

Definition at line 60 of file CaloRawDigit.h.

CellID_t gar::raw::CaloRawDigit::fCellID
private

cellID1 of the hit based on 64 bits

Definition at line 65 of file CaloRawDigit.h.

std::pair<float, float> gar::raw::CaloRawDigit::fTime
private

time of the hit for both SiPM

Definition at line 61 of file CaloRawDigit.h.

float gar::raw::CaloRawDigit::fX
private

x of the hit

Definition at line 62 of file CaloRawDigit.h.

float gar::raw::CaloRawDigit::fY
private

y of the hit

Definition at line 63 of file CaloRawDigit.h.

float gar::raw::CaloRawDigit::fZ
private

z of the hit

Definition at line 64 of file CaloRawDigit.h.


The documentation for this class was generated from the following files: