ATLAS Offline Software
LArSCDigit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARSCDIGIT_H
6 #define LARSCDIGIT_H
7 #include "LArDigit.h"
8 
19 class LArSCDigit : public LArDigit {
20 
21 private:
22 
25 
28 
30  std::vector<uint16_t> m_BCId;
31 
32 public:
33 
34  LArSCDigit(const HWIdentifier & channel_value, short channel, unsigned int sourceId,
35  const std::vector<short> & sample_values,
36  const std::vector<unsigned short> & bcids) :
37  LArDigit(channel_value, CaloGain::LARHIGHGAIN, sample_values),
38  m_chan(channel), m_sourceId(sourceId), m_BCId(std::move(bcids))
39  {};
40 
42  short Channel() const {return static_cast<short>(m_chan);}
43 
45  unsigned int SourceId() const {return static_cast<unsigned int>(m_sourceId);}
46 
48  const std::vector<unsigned short> &BCId() const {return m_BCId;}
49 
51  virtual ~LArSCDigit() = default;
52 
54  LArSCDigit();
55 
56 };
57 
58 #endif //LARDIGIT_H
59 
LArSCDigit::m_chan
uint16_t m_chan
LATOME channel.
Definition: LArSCDigit.h:24
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LArSCDigit::LArSCDigit
LArSCDigit()
default constructor for persistency
Definition: LArSCDigit.cxx:8
HWIdentifier
Definition: HWIdentifier.h:13
LArSCDigit::SourceId
unsigned int SourceId() const
Definition: LArSCDigit.h:45
CaloGain
Definition: CaloGain.h:10
LArDigit.h
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
LArDigit
Liquid Argon digit base class.
Definition: LArDigit.h:25
LArSCDigit::m_sourceId
uint32_t m_sourceId
LATOME source Id.
Definition: LArSCDigit.h:27
LArSCDigit::~LArSCDigit
virtual ~LArSCDigit()=default
Destructor.
LArSCDigit::Channel
short Channel() const
Definition: LArSCDigit.h:42
LArSCDigit::LArSCDigit
LArSCDigit(const HWIdentifier &channel_value, short channel, unsigned int sourceId, const std::vector< short > &sample_values, const std::vector< unsigned short > &bcids)
Definition: LArSCDigit.h:34
LArSCDigit
Base class for LArDigits taken by LATOME.
Definition: LArSCDigit.h:19
LArSCDigit::m_BCId
std::vector< uint16_t > m_BCId
vector of BCID
Definition: LArSCDigit.h:30
CaloGain::LARHIGHGAIN
@ LARHIGHGAIN
Definition: CaloGain.h:18
LArSCDigit::BCId
const std::vector< unsigned short > & BCId() const
Definition: LArSCDigit.h:48