ATLAS Offline Software
Trigger
TrigEvent
TrigParticleTPCnv
src
TrigPhotonCnv_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 "
TrigParticle/TrigPhoton.h
"
6
#include "
TrigParticleTPCnv/TrigPhoton_p1.h
"
7
#include "
TrigParticleTPCnv/TrigPhotonCnv_p1.h
"
8
9
//-----------------------------------------------------------------------------
10
// Persistent to transient
11
//-----------------------------------------------------------------------------
12
void
TrigPhotonCnv_p1::persToTrans
(
const
TrigPhoton_p1
*persObj,
13
TrigPhoton
*transObj,
14
MsgStream &
log
)
15
{
16
log
<<
MSG::DEBUG
<<
"TrigPhotonCnv_p1::persToTrans called "
<<
endmsg
;
17
18
*transObj =
TrigPhoton
(0, 0, 0,
19
persObj->
m_roiID
,
20
persObj->
m_valid
,
21
ElementLink< TrigEMClusterContainer >
(),
22
persObj->
m_HadEt
,
23
persObj->
m_energyRatio
,
24
persObj->
m_rCore
,
25
persObj->
m_dEta
,
26
persObj->
m_dPhi
,
27
0,
// Fside
28
0,
// Weta2
29
0,
// F0
30
0,
// F1
31
0,
// F2
32
0
// F3
33
);
34
35
log
<< MSG::WARNING <<
"TrigPhoton->m_cluster being set to NULL because you are trying to read TrigPhoton_p1"
<<
endmsg
;
36
37
fillTransFromPStore
( &
m_P4PtEtaPhiMCnv
, persObj->
m_P4PtEtaPhiM
, transObj,
log
);
38
}
39
40
//-----------------------------------------------------------------------------
41
// Transient to persistent
42
//-----------------------------------------------------------------------------
43
void
TrigPhotonCnv_p1::transToPers
(
const
TrigPhoton
*,
44
TrigPhoton_p1
*,
45
MsgStream &
log
)
46
{
47
log
<<
MSG::DEBUG
<<
"TrigPhotonCnv_p1::transToPers called "
<<
endmsg
;
48
log
<< MSG::WARNING <<
"TrigPhotonCnv_p1::transToPers should not be called anymore! "
<<
endmsg
;
49
50
}
TrigPhoton_p1
Definition:
TrigPhoton_p1.h:24
TrigPhoton_p1::m_roiID
int m_roiID
Definition:
TrigPhoton_p1.h:46
TrigPhotonCnv_p1.h
TrigPhoton.h
TrigPhoton_p1::m_energyRatio
float m_energyRatio
Definition:
TrigPhoton_p1.h:48
TrigPhotonCnv_p1::m_P4PtEtaPhiMCnv
P4PtEtaPhiMCnv_p1 * m_P4PtEtaPhiMCnv
Definition:
TrigPhotonCnv_p1.h:45
ITPConverterFor::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition:
TPConverter.h:145
TrigPhoton_p1::m_valid
bool m_valid
Definition:
TrigPhoton_p1.h:52
xAOD::TrigPhoton
TrigPhoton_v1 TrigPhoton
Declare the latest version of TrigPhoton.
Definition:
Event/xAOD/xAODTrigEgamma/xAODTrigEgamma/TrigPhoton.h:16
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
TrigPhoton_p1::m_HadEt
float m_HadEt
Definition:
TrigPhoton_p1.h:47
ElementLink< TrigEMClusterContainer >
TrigPhotonCnv_p1::persToTrans
virtual void persToTrans(const TrigPhoton_p1 *persObj, TrigPhoton *transObj, MsgStream &log)
Definition:
TrigPhotonCnv_p1.cxx:12
TrigPhoton_p1::m_P4PtEtaPhiM
TPObjRef m_P4PtEtaPhiM
Definition:
TrigPhoton_p1.h:55
TrigPhoton_p1::m_dEta
float m_dEta
Definition:
TrigPhoton_p1.h:51
TrigPhoton_p1::m_dPhi
float m_dPhi
Definition:
TrigPhoton_p1.h:50
TrigPhotonCnv_p1::transToPers
virtual void transToPers(const TrigPhoton *transObj, TrigPhoton_p1 *persObj, MsgStream &log)
Definition:
TrigPhotonCnv_p1.cxx:43
DEBUG
#define DEBUG
Definition:
page_access.h:11
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
TrigPhoton_p1::m_rCore
float m_rCore
Definition:
TrigPhoton_p1.h:49
TrigPhoton
File: TrigPhoton.h.
Definition:
Trigger/TrigEvent/TrigParticle/TrigParticle/TrigPhoton.h:44
TrigPhoton_p1.h
Generated on Fri Jan 10 2025 21:20:30 for ATLAS Offline Software by
1.8.18