ATLAS Offline Software
Loading...
Searching...
No Matches
CMMEtSumsCnv_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):
12//#include "TrigT1EventTPCnv/CMMEtSums_p1.h"
14
15using namespace LVL1;
16
17/*
18CMMEtSumsCnv_p1::CMMEtSumsCnv_p1()
19 : T_AthenaPoolTPCnvBase< CMMEtSums, CMMEtSums_p1 >() {
20
21}
22*/
23
24void CMMEtSumsCnv_p1::persToTrans( const CMMEtSums_p1* persObj, CMMEtSums* transObj, MsgStream &log ) {
25
26 //log << MSG::INFO << "Converting CMMEtSums from persistent state..." << endmsg;
27
28 //transObj->clear(); // see if I actually need one of these
29
30 //
31 // Translate the CMMEtSums
32 //
33 *transObj = CMMEtSums (persObj->m_crate,
34 persObj->m_dataID,
35 persObj->m_Et,
36 persObj->m_Ex,
37 persObj->m_Ey,
38 persObj->m_EtError,
39 persObj->m_ExError,
40 persObj->m_EyError,
41 persObj->m_peak);
42
43 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converted CMMEtSums from persistent state [OK]" << endmsg;
44
45 return;
46
47}
48
49void CMMEtSumsCnv_p1::transToPers( const CMMEtSums* transObj, CMMEtSums_p1* persObj, MsgStream &log ) {
50
51 //log << MSG::INFO << "Creating persistent state of CMMEtSums..." << endmsg;
52
53 persObj->m_crate = transObj->crate();
54 persObj->m_dataID = transObj->dataID();
55 persObj->m_Et = transObj->EtVec();
56 persObj->m_Ex = transObj->ExVec();
57 persObj->m_Ey = transObj->EyVec();
58 persObj->m_EtError = transObj->EtErrorVec();
59 persObj->m_ExError = transObj->ExErrorVec();
60 persObj->m_EyError = transObj->EyErrorVec();
61 persObj->m_peak = transObj->peak();
62
63 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Created persistent state of CMMEtSums [OK]" << endmsg;
64
65 return;
66
67}
#define endmsg
virtual void transToPers(const LVL1::CMMEtSums *transObj, CMMEtSums_p1 *persObj, MsgStream &log)
virtual void persToTrans(const CMMEtSums_p1 *persObj, LVL1::CMMEtSums *transObj, MsgStream &log)
T/P separation for TrigT1Calo::CMMEtSums class.
std::vector< unsigned int > m_Ey
std::vector< int > m_ExError
std::vector< unsigned int > m_Ex
std::vector< int > m_EyError
std::vector< int > m_EtError
int m_crate
Destructor.
std::vector< unsigned int > m_Et
CMMEtSums object stores Et sums from the Energy CMMs.
int peak() const
returns peak slice number
const std::vector< int > & EtErrorVec() const
returns module ET errors
const std::vector< int > & ExErrorVec() const
returns module Ex errors
int dataID() const
returns data ID
Definition CMMEtSums.cxx:59
int crate() const
Data accessors.
Definition CMMEtSums.cxx:54
const std::vector< unsigned int > & EtVec() const
Access multi-slice data.
Definition CMMEtSums.cxx:94
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition CMMEtSums.cxx:99
const std::vector< int > & EyErrorVec() const
returns module Ey errors
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...