ATLAS Offline Software
Loading...
Searching...
No Matches
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
20
27
28
29class LArCalibDigit : public LArDigit {
30
31private:
32
34 uint16_t m_DAC;
35
37 uint16_t m_delayPulsed;
38
39public:
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
69
70};
71
72#endif //LARDIGIT_H
73
uint16_t m_delayPulsed
Delay-Value and isPulsed boolean encoded in this variable.
bool isPulsed() const
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
int DAC() const
virtual ~LArCalibDigit()
Destructor.
uint16_t m_DAC
DAC-Value.
LArCalibDigit()
default constructor for persistency
int delay() const
LArDigit()=default
default constructor for persistency