CaloRawDigit.cxx
Go to the documentation of this file.
1 /** ****************************************************************************
2 * @file CaloRawDigit.cxx
3 * @brief Definition of basic calo raw digits
4 * @author eldwan.brianne@desy.de
5 * @see CaloRawDigit.h raw.h
6 * Created on the 08/27/18
7 *
8 * ****************************************************************************/
9 
10 #include <limits>
11 
13 
14 // C/C++ standard libraries
15 
16 namespace gar {
17  namespace raw{
18 
19  //----------------------------------------------------------------------
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  {}
28 
29  //----------------------------------------------------------------------
30  CaloRawDigit::CaloRawDigit(unsigned int ADC, float time, float x, float y, float z, CellID_t cellID)
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  }
39 
40  //----------------------------------------------------------------------
41  CaloRawDigit::CaloRawDigit(unsigned int ADC, std::pair<float, float> time, float x, float y, float z, CellID_t cellID)
42  : fTime(time),
43  fX(x),
44  fY(y),
45  fZ(z),
46  fCellID(cellID)
47  {
48  fADC = std::make_pair(ADC, 0.);
49  }
50 
51  //----------------------------------------------------------------------
52  CaloRawDigit::CaloRawDigit(std::pair<unsigned int, unsigned int> ADC, std::pair<float, float> time, float x, float y, float z, CellID_t cellID)
53  : fADC(ADC),
54  fTime(time),
55  fX(x),
56  fY(y),
57  fZ(z),
58  fCellID(cellID)
59  {}
60 
61  } // namespace raw
62  } // gar
63  ////////////////////////////////////////////////////////////////////////
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
STL namespace.
Raw data description.
CaloRawDigit()
Default constructor: an empty raw digit with zeros put in for paraneters and an invalid channel...
float fX
x of the hit
Definition: CaloRawDigit.h:62
Definition of basic calo raw digits.
long long int CellID_t
Definition: CaloRawDigit.h:24
General GArSoft Utilities.
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