ATLAS Offline Software
MuonSpectrometer
MuonRDO
src
STGC_RawData.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonRDO/STGC_RawData.h
"
6
#include "GaudiKernel/MsgStream.h"
7
8
9
10
// P1 ------------------------
11
// Constructor for Hit
12
Muon::STGC_RawData::STGC_RawData
(
const
Identifier
id
)
13
:m_id(
id
), m_time(0.0), m_tdo(0), m_charge(0), m_bcTag(0), m_isDead(false),m_timeAndChargeInCounts(false)
14
{
15
}
16
17
Muon::STGC_RawData::STGC_RawData
(
const
Identifier
id
,
const
uint16_t
bcTag
,
const
float
time
,
18
const
unsigned
int
charge
,
const
bool
isDead,
const
bool
timeAndChargeInCounts)
19
:m_id(
id
), m_time(
time
), m_charge(
charge
), m_bcTag(
bcTag
), m_isDead(isDead),m_timeAndChargeInCounts(timeAndChargeInCounts)
20
{
21
m_tdo
=
static_cast<
unsigned
int
>
(25.0+
time
);
// place holder for time->tdo from calibration
22
}
23
24
Muon::STGC_RawData::STGC_RawData
(
const
Identifier
id
,
const
uint16_t
bcTag
,
const
float
time
,
25
const
unsigned
int
tdo,
const
unsigned
int
charge
,
const
bool
isDead,
const
bool
timeAndChargeInCounts)
26
:m_id(
id
), m_time(
time
), m_tdo(tdo), m_charge(
charge
), m_bcTag(
bcTag
), m_isDead(isDead),m_timeAndChargeInCounts(timeAndChargeInCounts)
27
{
28
}
29
30
MsgStream&
operator<<
(MsgStream& sl,
const
Muon::STGC_RawData
&
data
)
31
{
32
sl <<
"STGC_RawData ("
<< &
data
<<
") "
33
<<
", Strip ID="
<<
data
.identify();
34
return
sl;
35
}
36
37
std::ostream&
operator<<
(std::ostream& sl,
const
Muon::STGC_RawData
&
data
)
38
{
39
sl <<
"STGC_RawData ("
<< &
data
<<
") "
40
<<
", Strip ID="
<<
data
.identify();
41
return
sl;
42
}
43
data
char data[hepevt_bytes_allocation_ATLAS]
Definition:
HepEvt.cxx:11
Muon::operator<<
std::ostream & operator<<(std::ostream &stream, const NSW_PadTriggerData &rhs)
Definition:
NSW_PadTriggerData.cxx:125
Muon::STGC_RawData::m_tdo
unsigned int m_tdo
Definition:
STGC_RawData.h:27
Muon::STGC_RawData::STGC_RawData
STGC_RawData()=default
STGC_RawData.h
xAOD::uint16_t
setWord1 uint16_t
Definition:
eFexEMRoI_v1.cxx:88
Muon::STGC_RawData
Definition:
STGC_RawData.h:14
Identifier
Definition:
DetectorDescription/Identifier/Identifier/Identifier.h:32
id
SG::auxid_t id
Definition:
Control/AthContainers/Root/debug.cxx:191
Muon::STGC_RawData::time
float time() const
Definition:
STGC_RawData.h:55
charge
double charge(const T &p)
Definition:
AtlasPID.h:494
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition:
CaloSwCorrections.py:242
bcTag
unsigned bcTag(unsigned bcBitMap)
Definition:
TgcByteStreamData.h:367
Generated on Fri Jun 28 2024 21:27:49 for ATLAS Offline Software by
1.8.18