ATLAS Offline Software
Loading...
Searching...
No Matches
LArSCDigit.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARSCDIGIT_H
6#define LARSCDIGIT_H
7#include "LArDigit.h"
8
18
19class LArSCDigit : public LArDigit {
20
21private:
22
24 uint16_t m_chan;
25
27 uint32_t m_sourceId;
28
30 std::vector<uint16_t> m_BCId;
31
32public:
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(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
LArDigit()=default
default constructor for persistency
uint16_t m_chan
LATOME channel.
Definition LArSCDigit.h:24
LArSCDigit()
default constructor for persistency
Definition LArSCDigit.cxx:8
unsigned int SourceId() const
Definition LArSCDigit.h:45
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
const std::vector< unsigned short > & BCId() const
Definition LArSCDigit.h:48
virtual ~LArSCDigit()=default
Destructor.
std::vector< uint16_t > m_BCId
vector of BCID
Definition LArSCDigit.h:30
short Channel() const
Definition LArSCDigit.h:42
uint32_t m_sourceId
LATOME source Id.
Definition LArSCDigit.h:27