ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRawEvent
LArRawEvent
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
21
class
LArSCDigit
:
public
LArDigit
{
22
23
private
:
24
26
uint16_t
m_chan
;
27
29
uint32_t
m_sourceId
;
30
32
std::vector<uint16_t>
m_BCId
;
33
34
public
:
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.h
HWIdentifier
Definition
HWIdentifier.h:13
LArDigit::LArDigit
LArDigit()=default
default constructor for persistency
LArSCDigit::m_chan
uint16_t m_chan
LATOME channel.
Definition
LArSCDigit.h:26
LArSCDigit::LArSCDigit
LArSCDigit()
default constructor for persistency
Definition
LArSCDigit.cxx:8
LArSCDigit::SourceId
unsigned int SourceId() const
Definition
LArSCDigit.h:47
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:36
LArSCDigit::BCId
const std::vector< unsigned short > & BCId() const
Definition
LArSCDigit.h:50
LArSCDigit::~LArSCDigit
virtual ~LArSCDigit()=default
Destructor.
LArSCDigit::m_BCId
std::vector< uint16_t > m_BCId
vector of BCID
Definition
LArSCDigit.h:32
LArSCDigit::Channel
short Channel() const
Definition
LArSCDigit.h:44
LArSCDigit::m_sourceId
uint32_t m_sourceId
LATOME source Id.
Definition
LArSCDigit.h:29
CaloGain
Definition
CaloGain.h:10
Generated on
for ATLAS Offline Software by
1.17.0