ATLAS Offline Software
Loading...
Searching...
No Matches
CPMHitsCnv_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
6
7
8// Gaudi/Athena include(s):
9#include "GaudiKernel/MsgStream.h"
10
11// Local include(s):
14
15using namespace LVL1;
16
17/*
18CPMHitsCnv_p1::CPMHitsCnv_p1()
19 : T_AthenaPoolTPCnvBase< CPMHits, CPMHits_p1 >() {
20
21}
22*/
23
24void CPMHitsCnv_p1::persToTrans( const CPMHits_p1* persObj, CPMHits* transObj, MsgStream &log ) {
25
26 //log << MSG::DEBUG << "Converting CPMHits from persistent state..." << endmsg;
27
28 //transObj->clear(); // see if I actually need one of these
29
30 //
31 // Translate the CPMHits
32 //
33 *transObj = CPMHits (persObj->m_crate,
34 persObj->m_module,
35 persObj->m_Hits0,
36 persObj->m_Hits1,
37 persObj->m_peak);
38
39 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converted CPMHits from persistent state [OK]" << endmsg;
40
41 return;
42
43}
44
45void CPMHitsCnv_p1::transToPers( const CPMHits* transObj, CPMHits_p1* persObj, MsgStream &log ) {
46
47 //log << MSG::INFO << "Creating persistent state of CPMHits..." << endmsg;
48
49 persObj->m_crate = transObj->crate();
50 persObj->m_module = transObj->module();
51 persObj->m_peak = transObj->peak();
52 persObj->m_Hits0 = transObj->HitsVec0();
53 persObj->m_Hits1 = transObj->HitsVec1();
54
55 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Created persistent state of CPMHits [OK]" << endmsg;
56
57 return;
58
59}
#define endmsg
virtual void persToTrans(const CPMHits_p1 *persObj, LVL1::CPMHits *transObj, MsgStream &log)
virtual void transToPers(const LVL1::CPMHits *transObj, CPMHits_p1 *persObj, MsgStream &log)
T/P separation for TrigT1Calo::CPMHits class.
Definition CPMHits_p1.h:19
std::vector< unsigned int > m_Hits0
Definition CPMHits_p1.h:36
int m_crate
Destructor.
Definition CPMHits_p1.h:33
std::vector< unsigned int > m_Hits1
Definition CPMHits_p1.h:37
The CPMHits object contains the hit data produced by a given Cluster Processor Module,...
int crate() const
Data accessors.
Definition CPMHits.cxx:45
int module() const
returns module number
Definition CPMHits.cxx:50
int peak() const
returns peak slice number
Definition CPMHits.cxx:83
const std::vector< unsigned int > & HitsVec0() const
Multi-slice accessors.
Definition CPMHits.cxx:63
const std::vector< unsigned int > & HitsVec1() const
Definition CPMHits.cxx:66
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...