ATLAS Offline Software
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 
7 
8 
9 
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 
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:50
TrigIDHitStats.h
TrigIDHitStats
Definition: TrigIDHitStats.h:18
lumiFormat.i
int i
Definition: lumiFormat.py:92
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:26
TrigIDHitStats::IDSubDetType
IDSubDetType
Definition: TrigIDHitStats.h:22
TrigIDHitStatsCnv_p1.h