ATLAS Offline Software
Loading...
Searching...
No Matches
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
23
25{
26 public:
27
28 typedef double RAMPDATA_t;
29
31 public:
33 uint32_t DAC;
35 float TimeMax;
36 std::vector<float> Samples;
37 std::vector<float> RMS;
38 uint16_t NTriggers;
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
static Double_t a
std::vector< float > Samples
Definition LArRawRamp.h:36
bool operator<(const RAMPPOINT_t &a) const
Definition LArRawRamp.h:39
std::vector< float > RMS
Definition LArRawRamp.h:37
std::vector< RAMPPOINT_t > & theRamp()
Definition LArRawRamp.h:56
void add(const RAMPPOINT_t &point)
CaloGain::CaloGain gain() const
Definition LArRawRamp.h:51
LArRawRamp(HWIdentifier id, CaloGain::CaloGain gain)
Definition LArRawRamp.cxx:7
double RAMPDATA_t
Definition LArRawRamp.h:28
int iSat() const
Definition LArRawRamp.h:58
CaloGain::CaloGain m_gain
Definition LArRawRamp.h:64
std::vector< RAMPPOINT_t > m_ramp
Definition LArRawRamp.h:62
HWIdentifier m_ID
Definition LArRawRamp.h:63
const std::vector< RAMPPOINT_t > & theRamp() const
Definition LArRawRamp.h:54
HWIdentifier channelID() const
Definition LArRawRamp.h:49
void setsat(int iSat)