ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1EventTPCnv
src
MuCTPI_RDOCnv_p1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
// Gaudi/Athena include(s):
7
#include "GaudiKernel/MsgStream.h"
8
9
// Local include(s):
10
#include "
TrigT1EventTPCnv/MuCTPI_RDOCnv_p1.h
"
11
15
MuCTPI_RDOCnv_p1::MuCTPI_RDOCnv_p1
()
16
:
T_AthenaPoolTPCnvBase
<
MuCTPI_RDO
,
MuCTPI_RDO_p1
>() {
17
18
}
19
24
void
MuCTPI_RDOCnv_p1::persToTrans
(
const
MuCTPI_RDO_p1
* persObj,
MuCTPI_RDO
* transObj,
25
MsgStream& log ) {
26
27
if
(log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Converting MuCTPI_RDO from persistent state..."
<<
endmsg
;
28
29
*transObj =
MuCTPI_RDO
(std::vector< uint32_t >(persObj->
m_candidateMultiplicity
),
30
std::vector< uint32_t >(persObj->
m_dataWord
));
//manual copy
31
32
if
(log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Converting MuCTPI_RDO from persistent state [OK]"
<<
endmsg
;
33
34
return
;
35
36
}
37
42
void
MuCTPI_RDOCnv_p1::transToPers
(
const
MuCTPI_RDO
* transObj,
MuCTPI_RDO_p1
* persObj,
43
MsgStream& log ) {
44
45
if
(log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Creating persistent state of MuCTPI_RDO..."
<<
endmsg
;
46
47
persObj->
m_candidateMultiplicity
= transObj->
getAllCandidateMultiplicities
();
48
persObj->
m_dataWord
= transObj->
dataWord
();
49
50
if
(log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Creating persistent state of MuCTPI_RDO [OK]"
<<
endmsg
;
51
52
return
;
53
54
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
MuCTPI_RDOCnv_p1.h
T_AthenaPoolTPCnvBase
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Definition
T_AthenaPoolTPConverter.h:41
MuCTPI_RDOCnv_p1::MuCTPI_RDOCnv_p1
MuCTPI_RDOCnv_p1()
Default constructor.
Definition
MuCTPI_RDOCnv_p1.cxx:15
MuCTPI_RDOCnv_p1::persToTrans
virtual void persToTrans(const MuCTPI_RDO_p1 *persObj, MuCTPI_RDO *transObj, MsgStream &log)
Function transferring the information from a persistent MuCTPI_RDO_p1 object to a transient MuCTPI_RD...
Definition
MuCTPI_RDOCnv_p1.cxx:24
MuCTPI_RDOCnv_p1::transToPers
virtual void transToPers(const MuCTPI_RDO *transObj, MuCTPI_RDO_p1 *persObj, MsgStream &log)
Function transferring the information from a transient MuCTPI_RDO object to a persistent MuCTPI_RDO_p...
Definition
MuCTPI_RDOCnv_p1.cxx:42
MuCTPI_RDO_p1
Persistent representation of MuCTPI_RDO.
Definition
MuCTPI_RDO_p1.h:26
MuCTPI_RDO_p1::m_candidateMultiplicity
std::vector< uint32_t > m_candidateMultiplicity
Definition
MuCTPI_RDO_p1.h:34
MuCTPI_RDO_p1::m_dataWord
std::vector< uint32_t > m_dataWord
Definition
MuCTPI_RDO_p1.h:35
MuCTPI_RDO
Class representing the readout data of the MuCTPI hardware and simulation.
Definition
MuCTPI_RDO.h:41
MuCTPI_RDO::getAllCandidateMultiplicities
const std::vector< uint32_t > & getAllCandidateMultiplicities() const
Function returning all candidate multiplicities.
Definition
MuCTPI_RDO.h:117
MuCTPI_RDO::dataWord
const std::vector< uint32_t > & dataWord() const
Function returning the muon candidate data words.
Definition
MuCTPI_RDO.h:141
Generated on
for ATLAS Offline Software by
1.17.0