ATLAS Offline Software
Trigger
TrigTruthEvent
TrigTruthEventTPCnv
src
TrigIDHitStatsCnv_p1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigInDetTruthEvent/TrigIDHitStats.h
"
6
#include "
TrigTruthEventTPCnv/TrigIDHitStatsCnv_p1.h
"
7
8
9
10
void
TrigIDHitStatsCnv_p1::persToTrans
(
const
TrigIDHitStats_p1
* persObj,
11
TrigIDHitStats
* transObj,
12
MsgStream &
log
)
13
{
14
log
<<
MSG::DEBUG
<<
"TrigIDHitStatsCnv_p1::persToTrans called "
<<
endmsg
;
15
16
for
(
unsigned
i
=0;
i
<3;
i
++) {
17
(*transObj)[
static_cast<
TrigIDHitStats::IDSubDetType
>
(
i
)] = persObj->
numHits
[
i
];
18
}
19
20
}
21
22
23
void
TrigIDHitStatsCnv_p1::transToPers
(
const
TrigIDHitStats
* transObj,
24
TrigIDHitStats_p1
* persObj,
25
MsgStream &
log
)
26
{
27
log
<<
MSG::DEBUG
<<
"TrigIDHitStatsCnv_p1::transToPers called "
<<
endmsg
;
28
29
for
(
unsigned
i
=0;
i
<3;
i
++) {
30
persObj->
numHits
[
i
] = (*transObj)[
static_cast<
TrigIDHitStats::IDSubDetType
>
(
i
)];
31
}
32
33
}
TrigIDHitStats_p1::numHits
unsigned char numHits[3]
Definition:
TrigIDHitStats_p1.h:46
TrigIDHitStats.h
TrigIDHitStats
Definition:
TrigIDHitStats.h:18
lumiFormat.i
int i
Definition:
lumiFormat.py:85
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
TrigIDHitStatsCnv_p1::persToTrans
virtual void persToTrans(const TrigIDHitStats_p1 *persObj, TrigIDHitStats *transObj, MsgStream &log)
Definition:
TrigIDHitStatsCnv_p1.cxx:10
TrigIDHitStatsCnv_p1::transToPers
virtual void transToPers(const TrigIDHitStats *transObj, TrigIDHitStats_p1 *persObj, MsgStream &log)
Definition:
TrigIDHitStatsCnv_p1.cxx:23
DEBUG
#define DEBUG
Definition:
page_access.h:11
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
TrigIDHitStats_p1
Definition:
TrigIDHitStats_p1.h:24
TrigIDHitStats::IDSubDetType
IDSubDetType
Definition:
TrigIDHitStats.h:22
TrigIDHitStatsCnv_p1.h
Generated on Thu Nov 7 2024 21:29:50 for ATLAS Offline Software by
1.8.18