ATLAS Offline Software
MuonSpectrometer
MuonCnv
MuonEventTPCnv
src
MuonRDO
STGC_RawDataCnv_p1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
MuonEventTPCnv/MuonRDO/STGC_RawDataCnv_p1.h
"
5
6
void
Muon::STGC_RawDataCnv_p1::persToTrans
(
const
Muon::STGC_RawData_p1
*,
Muon::STGC_RawData
*,MsgStream & )
7
{
8
// Not much point calling this!
9
}
10
11
void
Muon::STGC_RawDataCnv_p1::transToPers
(
const
Muon::STGC_RawData
*transObj,
Muon::STGC_RawData_p1
*persObj, MsgStream & )
12
{
13
persObj->
m_id
= transObj->
m_id
.
get_identifier32
().
get_compact
();
14
persObj->
m_bcTag
= transObj->
bcTag
();
15
persObj->
m_time
= transObj->
time
();
16
persObj->
m_charge
= transObj->
charge
();
17
persObj->
m_isDead
= transObj->
isDead
();
18
}
19
20
Muon::STGC_RawData
*
Muon::STGC_RawDataCnv_p1::createTransient
(
const
Muon::STGC_RawData_p1
* persObj, MsgStream& )
21
{
22
Muon::STGC_RawData
* trans =
new
STGC_RawData
(
Identifier
(persObj->
m_id
),
23
persObj->
m_bcTag
,
24
persObj->
m_time
,
25
static_cast<
unsigned
int
>
(persObj->
m_time
+
Muon::STGC_RawData::s_timeTdoShift
),
// place holder for time->tdo from calibration
26
persObj->
m_charge
,
27
persObj->
m_isDead
,
28
false
);
// all RDOs produced with this persisten version have the time and the charge in physical units, pscholer March 2022
29
30
return
trans;
31
}
32
Muon::STGC_RawDataCnv_p1::transToPers
void transToPers(const STGC_RawData *transObj, STGC_RawData_p1 *persObj, MsgStream &log) override final
Definition:
STGC_RawDataCnv_p1.cxx:11
STGC_RawDataCnv_p1.h
Muon::STGC_RawDataCnv_p1::persToTrans
void persToTrans(const STGC_RawData_p1 *persObj, STGC_RawData *transObj, MsgStream &log) override final
Definition:
STGC_RawDataCnv_p1.cxx:6
Muon::STGC_RawData_p1::m_id
unsigned int m_id
FIXME! Remove this eventually.
Definition:
STGC_RawData_p1.h:16
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
Muon::STGC_RawData_p1
Definition:
STGC_RawData_p1.h:12
Muon::STGC_RawDataCnv_p1::createTransient
virtual STGC_RawData * createTransient(const STGC_RawData_p1 *persObj, MsgStream &log) override final
Definition:
STGC_RawDataCnv_p1.cxx:20
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition:
Identifier32.h:44
Muon::STGC_RawData
Definition:
STGC_RawData.h:14
Muon::STGC_RawData_p1::m_time
float m_time
Definition:
STGC_RawData_p1.h:18
Muon::STGC_RawData::isDead
bool isDead() const
Definition:
STGC_RawData.h:60
Muon::STGC_RawData_p1::m_charge
float m_charge
Definition:
STGC_RawData_p1.h:20
Muon::STGC_RawData::time
float time() const
Definition:
STGC_RawData.h:55
Muon::STGC_RawData_p1::m_isDead
bool m_isDead
Definition:
STGC_RawData_p1.h:24
Muon::STGC_RawData::m_id
Identifier m_id
Definition:
STGC_RawData.h:22
Muon::STGC_RawData::charge
unsigned int charge() const
Definition:
STGC_RawData.h:57
Muon::STGC_RawData::bcTag
uint16_t bcTag() const
Definition:
STGC_RawData.h:58
Muon::STGC_RawData::s_timeTdoShift
static constexpr int s_timeTdoShift
Definition:
STGC_RawData.h:78
Muon::STGC_RawData_p1::m_bcTag
uint16_t m_bcTag
Definition:
STGC_RawData_p1.h:22
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Thu Nov 7 2024 21:26:30 for ATLAS Offline Software by
1.8.18