ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1EventTPCnv
src
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
5
#include "
TrigT1CaloEvent/CMMEtSums.h
"
6
7
8
// Gaudi/Athena include(s):
9
#include "GaudiKernel/MsgStream.h"
10
11
// Local include(s):
12
//#include "TrigT1EventTPCnv/CMMEtSums_p1.h"
13
#include "
TrigT1EventTPCnv/CMMEtSumsCnv_p1.h
"
14
15
using namespace
LVL1
;
16
17
/*
18
CMMEtSumsCnv_p1::CMMEtSumsCnv_p1()
19
: T_AthenaPoolTPCnvBase< CMMEtSums, CMMEtSums_p1 >() {
20
21
}
22
*/
23
24
void
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
49
void
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
CMMEtSumsCnv_p1.h
CMMEtSums.h
CMMEtSumsCnv_p1::transToPers
virtual void transToPers(const LVL1::CMMEtSums *transObj, CMMEtSums_p1 *persObj, MsgStream &log)
Definition
CMMEtSumsCnv_p1.cxx:49
CMMEtSumsCnv_p1::persToTrans
virtual void persToTrans(const CMMEtSums_p1 *persObj, LVL1::CMMEtSums *transObj, MsgStream &log)
Definition
CMMEtSumsCnv_p1.cxx:24
CMMEtSums_p1
T/P separation for TrigT1Calo::CMMEtSums class.
Definition
CMMEtSums_p1.h:19
CMMEtSums_p1::m_peak
int m_peak
Definition
CMMEtSums_p1.h:35
CMMEtSums_p1::m_Ey
std::vector< unsigned int > m_Ey
Definition
CMMEtSums_p1.h:38
CMMEtSums_p1::m_ExError
std::vector< int > m_ExError
Definition
CMMEtSums_p1.h:40
CMMEtSums_p1::m_Ex
std::vector< unsigned int > m_Ex
Definition
CMMEtSums_p1.h:37
CMMEtSums_p1::m_EyError
std::vector< int > m_EyError
Definition
CMMEtSums_p1.h:41
CMMEtSums_p1::m_dataID
int m_dataID
Definition
CMMEtSums_p1.h:34
CMMEtSums_p1::m_EtError
std::vector< int > m_EtError
Definition
CMMEtSums_p1.h:39
CMMEtSums_p1::m_crate
int m_crate
Destructor.
Definition
CMMEtSums_p1.h:33
CMMEtSums_p1::m_Et
std::vector< unsigned int > m_Et
Definition
CMMEtSums_p1.h:36
LVL1::CMMEtSums
CMMEtSums object stores Et sums from the Energy CMMs.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:32
LVL1::CMMEtSums::peak
int peak() const
returns peak slice number
Definition
CMMEtSums.cxx:150
LVL1::CMMEtSums::EtErrorVec
const std::vector< int > & EtErrorVec() const
returns module ET errors
Definition
CMMEtSums.cxx:109
LVL1::CMMEtSums::ExErrorVec
const std::vector< int > & ExErrorVec() const
returns module Ex errors
Definition
CMMEtSums.cxx:114
LVL1::CMMEtSums::dataID
int dataID() const
returns data ID
Definition
CMMEtSums.cxx:59
LVL1::CMMEtSums::crate
int crate() const
Data accessors.
Definition
CMMEtSums.cxx:54
LVL1::CMMEtSums::EtVec
const std::vector< unsigned int > & EtVec() const
Access multi-slice data.
Definition
CMMEtSums.cxx:94
LVL1::CMMEtSums::ExVec
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition
CMMEtSums.cxx:99
LVL1::CMMEtSums::EyErrorVec
const std::vector< int > & EyErrorVec() const
returns module Ey errors
Definition
CMMEtSums.cxx:119
LVL1::CMMEtSums::EyVec
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
Definition
CMMEtSums.cxx:104
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
Generated on
for ATLAS Offline Software by
1.17.0