ATLAS Offline Software
Loading...
Searching...
No Matches
LArSCDigit.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARSCDIGIT_H
6#define LARSCDIGIT_H
7#include "LArDigit.h"
8#include <vector>
9#include <cstdint> //for uint32_t
10
20
21class LArSCDigit : public LArDigit {
22
23private:
24
26 uint16_t m_chan;
27
29 uint32_t m_sourceId;
30
32 std::vector<uint16_t> m_BCId;
33
34public:
35
36 LArSCDigit(const HWIdentifier & channel_value, short channel, unsigned int sourceId,
37 const std::vector<short> & sample_values,
38 const std::vector<unsigned short> & bcids) :
39 LArDigit(channel_value, CaloGain::LARHIGHGAIN, sample_values),
40 m_chan(channel), m_sourceId(sourceId), m_BCId(bcids)
41 {};
42
44 short Channel() const {return static_cast<short>(m_chan);}
45
47 unsigned int SourceId() const {return static_cast<unsigned int>(m_sourceId);}
48
50 const std::vector<unsigned short> &BCId() const {return m_BCId;}
51
53 virtual ~LArSCDigit() = default;
54
56 LArSCDigit();
57
58};
59
60#endif //LARDIGIT_H
61
LArDigit()=default
default constructor for persistency
uint16_t m_chan
LATOME channel.
Definition LArSCDigit.h:26
LArSCDigit()
default constructor for persistency
Definition LArSCDigit.cxx:8
unsigned int SourceId() const
Definition LArSCDigit.h:47
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:36
const std::vector< unsigned short > & BCId() const
Definition LArSCDigit.h:50
virtual ~LArSCDigit()=default
Destructor.
std::vector< uint16_t > m_BCId
vector of BCID
Definition LArSCDigit.h:32
short Channel() const
Definition LArSCDigit.h:44
uint32_t m_sourceId
LATOME source Id.
Definition LArSCDigit.h:29