ATLAS Offline Software
LArCalibDigit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARCALIBDIGIT_H
6 #define LARCALIBDIGIT_H
7 #include "LArDigit.h"
8 #include "stdint.h"
9 
29 class LArCalibDigit : public LArDigit {
30 
31 private:
32 
35 
38 
39 public:
40 
49  LArCalibDigit(HWIdentifier & channel_value, CaloGain::CaloGain gain_value, const std::vector < short > & sample_values,
50  uint16_t DAC_value, uint16_t delay_value, bool isPulsed_value) :
51  LArDigit(channel_value, gain_value, sample_values), m_DAC(DAC_value),
52  m_delayPulsed((delay_value & 0x7FFF) | ((uint16_t)isPulsed_value<<15 ))//, m_isPulsed(isPulsed_value)
53  {};
54 
56  int DAC() const {return static_cast<int>(m_DAC);}
57 
59  int delay() const {return static_cast<int>(m_delayPulsed & 0x7FFF);}
60 
62  bool isPulsed() const {return static_cast<bool>(m_delayPulsed & 0x8000);}
63 
65  virtual ~LArCalibDigit();
66 
68  LArCalibDigit();
69 
70 };
71 
72 #endif //LARDIGIT_H
73 
LArCalibDigit::m_DAC
uint16_t m_DAC
DAC-Value.
Definition: LArCalibDigit.h:34
LArCalibDigit::m_delayPulsed
uint16_t m_delayPulsed
Delay-Value and isPulsed boolean encoded in this variable.
Definition: LArCalibDigit.h:37
LArCalibDigit::LArCalibDigit
LArCalibDigit()
default constructor for persistency
Definition: LArCalibDigit.cxx:12
HWIdentifier
Definition: HWIdentifier.h:13
LArCalibDigit::~LArCalibDigit
virtual ~LArCalibDigit()
Destructor.
LArDigit.h
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
LArDigit
Liquid Argon digit base class.
Definition: LArDigit.h:25
LArCalibDigit::DAC
int DAC() const
Definition: LArCalibDigit.h:56
LArCalibDigit::delay
int delay() const
Definition: LArCalibDigit.h:59
LArCalibDigit::LArCalibDigit
LArCalibDigit(HWIdentifier &channel_value, CaloGain::CaloGain gain_value, const std::vector< short > &sample_values, uint16_t DAC_value, uint16_t delay_value, bool isPulsed_value)
constructor
Definition: LArCalibDigit.h:49
LArCalibDigit
Base class for LArDigits taken during calibration runs.
Definition: LArCalibDigit.h:29
CaloGain::CaloGain
CaloGain
Definition: CaloGain.h:11
LArCalibDigit::isPulsed
bool isPulsed() const
Definition: LArCalibDigit.h:62