ATLAS Offline Software
LArRawRamp.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARRAWRAMP_H
6 #define LARRAWRAMP_H
7 
8 #include <stdint.h>
9 #include <vector>
12 
13 
24 class LArRawRamp
25 {
26  public:
27 
28  typedef double RAMPDATA_t;
29 
30  class RAMPPOINT_t {
31  public:
34  float iMaxSample;
35  float TimeMax;
36  std::vector<float> Samples;
37  std::vector<float> RMS;
39  bool operator<(const RAMPPOINT_t& a) const
40  {return DAC<a.DAC;} //to allow sorting of the vector
41  RAMPPOINT_t() : ADC(0), DAC(0), iMaxSample(0),TimeMax(0),NTriggers(0) {};
42  };
43 
45 
46  void add(const RAMPPOINT_t& point);
47  void setsat(int iSat);
48 
49  inline HWIdentifier channelID() const
50  {return m_ID;}
51  inline CaloGain::CaloGain gain() const
52  {return m_gain;}
53 
54  inline const std::vector<RAMPPOINT_t>& theRamp() const
55  {return m_ramp;}
56  inline std::vector<RAMPPOINT_t>& theRamp()
57  {return m_ramp;}
58  inline int iSat() const
59  {return m_iSat;}
60 
61  private:
62  std::vector<RAMPPOINT_t> m_ramp;
65  int m_iSat;
66 };
67 
68 #endif
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LArRawRamp::m_ramp
std::vector< RAMPPOINT_t > m_ramp
Definition: LArRawRamp.h:62
LArRawRamp::m_gain
CaloGain::CaloGain m_gain
Definition: LArRawRamp.h:64
LArRawRamp::RAMPPOINT_t::NTriggers
uint16_t NTriggers
Definition: LArRawRamp.h:38
HWIdentifier
Definition: HWIdentifier.h:13
LArRawRamp::theRamp
std::vector< RAMPPOINT_t > & theRamp()
Definition: LArRawRamp.h:56
LArRawRamp::RAMPPOINT_t
Definition: LArRawRamp.h:30
LArRawRamp::theRamp
const std::vector< RAMPPOINT_t > & theRamp() const
Definition: LArRawRamp.h:54
LArRawRamp::RAMPPOINT_t::TimeMax
float TimeMax
Definition: LArRawRamp.h:35
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
LArRawRamp::LArRawRamp
LArRawRamp(HWIdentifier id, CaloGain::CaloGain gain)
Definition: LArRawRamp.cxx:7
LArRawRamp::RAMPPOINT_t::ADC
RAMPDATA_t ADC
Definition: LArRawRamp.h:32
LArRawRamp::channelID
HWIdentifier channelID() const
Definition: LArRawRamp.h:49
LArRawRamp::RAMPPOINT_t::DAC
uint32_t DAC
Definition: LArRawRamp.h:33
HWIdentifier.h
LArRawRamp::m_iSat
int m_iSat
Definition: LArRawRamp.h:65
LArRawRamp::m_ID
HWIdentifier m_ID
Definition: LArRawRamp.h:63
LArRawRamp::RAMPPOINT_t::RAMPPOINT_t
RAMPPOINT_t()
Definition: LArRawRamp.h:41
LArRawRamp
This class stores a unfittet ramp (=a vector a ADC and DAC values)
Definition: LArRawRamp.h:25
LArRawRamp::RAMPDATA_t
double RAMPDATA_t
Definition: LArRawRamp.h:28
CaloGain::CaloGain
CaloGain
Definition: CaloGain.h:11
LArRawRamp::RAMPPOINT_t::operator<
bool operator<(const RAMPPOINT_t &a) const
Definition: LArRawRamp.h:39
a
TList * a
Definition: liststreamerinfos.cxx:10
LArRawRamp::iSat
int iSat() const
Definition: LArRawRamp.h:58
LArRawRamp::RAMPPOINT_t::RMS
std::vector< float > RMS
Definition: LArRawRamp.h:37
LArRawRamp::RAMPPOINT_t::Samples
std::vector< float > Samples
Definition: LArRawRamp.h:36
LArRawRamp::setsat
void setsat(int iSat)
Definition: LArRawRamp.cxx:13
CaloGain.h
LArRawRamp::RAMPPOINT_t::iMaxSample
float iMaxSample
Definition: LArRawRamp.h:34
LArRawRamp::gain
CaloGain::CaloGain gain() const
Definition: LArRawRamp.h:51
LArRawRamp::add
void add(const RAMPPOINT_t &point)
Definition: LArRawRamp.cxx:10