ATLAS Offline Software
TrigElectronCnv_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 
8 
9 
11  TrigElectron* transObj,
12  MsgStream &log)
13 {
14  log << MSG::DEBUG << "TrigElectronCnv_p1::persToTrans called " << endmsg;
15 
16 // transObj->m_trackAlgo = persObj->m_trackAlgo;
17 // transObj->m_roiID = persObj->m_roiID ;
18 // transObj->m_trackIndx = persObj->m_trackIndx;
19 // transObj->m_charge = persObj->m_charge ;
20 // transObj->m_Zvtx = persObj->m_Zvtx ;
21 // transObj->m_err_Zvtx = persObj->m_err_Zvtx ;
22 // transObj->m_err_eta = persObj->m_err_eta ;
23 // transObj->m_err_phi = persObj->m_err_phi ;
24 // transObj->m_err_Pt = persObj->m_err_Pt ;
25 // transObj->m_dEta = persObj->m_dEta ;
26 // transObj->m_dPhi = persObj->m_dPhi ;
27 // transObj->m_etoverpt = persObj->m_etoverpt ;
28 // transObj->m_valid = persObj->m_valid ;
29 
30 // fillTransFromPStore( &m_p4PtEtaPhiMCnv, persObj->m_p4PtEtaPhiM, transObj, log );
31 
32 
33  *transObj = TrigElectron (0, 0, 0,
34  persObj->m_roiID,
35  persObj->m_valid,
36  -999.99, // trkEtaAtCalo
37  -999.99, // trkPhiAtCalo
38  persObj->m_etoverpt, // EToverPT,
40  -999.99, // caloEta
41  -999.99, // caloPhi
42  -999.99, // Rcore
43  -999.99, // Eratio
44  -999.99, // EThad
45  0, // F0
46  0, // F1
47  0, // F2
48  0, // F3
50  persObj->m_trackAlgo,
51  persObj->m_Zvtx,
52  0,
53  0);
54 
55 // No way to re-create ElementLinks from TrigElectron_p1
56 // without using Navigation (which may not work for ARA)
57 // transObj->m_cluster = ElementLink(...);
58 // transObj->m_track = ElementLink(...);
59 
60  fillTransFromPStore( &m_p4PtEtaPhiMCnv, persObj->m_p4PtEtaPhiM, transObj, log );
61 
62 }
63 
64 
66  TrigElectron_p1* /*persObj*/,
67  MsgStream &log)
68 {
69  log << MSG::DEBUG << "TrigElectronCnv_p1::transToPers called " << endmsg;
70  log << MSG::WARNING << "Trying to write TrigElectron to obsolete persistent class TrigElectron_p1!" << endmsg;
71 
72 // persObj->m_trackAlgo = transObj->m_trackAlgo;
73 // persObj->m_roiID = transObj->m_roiID ;
74 // persObj->m_trackIndx = transObj->m_trackIndx;
75 // persObj->m_charge = transObj->m_charge ;
76 // persObj->m_Zvtx = transObj->m_Zvtx ;
77 // persObj->m_err_Zvtx = transObj->m_err_Zvtx ;
78 // persObj->m_err_eta = transObj->m_err_eta ;
79 // persObj->m_err_phi = transObj->m_err_phi ;
80 // persObj->m_err_Pt = transObj->m_err_Pt ;
81 // persObj->m_dEta = transObj->m_dEta ;
82 // persObj->m_dPhi = transObj->m_dPhi ;
83 // persObj->m_etoverpt = transObj->m_etoverpt ;
84 // persObj->m_valid = transObj->m_valid ;
85 
86 // persObj->m_p4PtEtaPhiM = baseToPersistent( &m_p4PtEtaPhiMCnv, transObj, log );
87 
88 }
TrigElectron_p1::m_roiID
int m_roiID
Definition: TrigElectron_p1.h:48
TrigElectronCnv_p1::m_p4PtEtaPhiMCnv
P4PtEtaPhiMCnv_p1 * m_p4PtEtaPhiMCnv
Definition: TrigElectronCnv_p1.h:44
TrigElectron.h
TrigElectron_p1::m_trackAlgo
TrigInDetTrack::AlgoId m_trackAlgo
Definition: TrigElectron_p1.h:49
TrigElectron
File: TrigElectron.h.
Definition: Trigger/TrigEvent/TrigParticle/TrigParticle/TrigElectron.h:63
TrigElectron_p1::m_Zvtx
float m_Zvtx
Definition: TrigElectron_p1.h:52
TrigElectron_p1::m_valid
bool m_valid
Definition: TrigElectron_p1.h:60
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
TrigElectronCnv_p1.h
TrigElectron_p1.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigElectron_p1
Definition: TrigElectron_p1.h:26
TrigElectronCnv_p1::transToPers
virtual void transToPers(const TrigElectron *transObj, TrigElectron_p1 *persObj, MsgStream &log)
Definition: TrigElectronCnv_p1.cxx:65
TrigElectronCnv_p1::persToTrans
virtual void persToTrans(const TrigElectron_p1 *persObj, TrigElectron *transObj, MsgStream &log)
Definition: TrigElectronCnv_p1.cxx:10
xAOD::TrigElectron
TrigElectron_v1 TrigElectron
Declare the latest version of the class.
Definition: Event/xAOD/xAODTrigEgamma/xAODTrigEgamma/TrigElectron.h:16
TrigElectron_p1::m_p4PtEtaPhiM
TPObjRef m_p4PtEtaPhiM
Definition: TrigElectron_p1.h:63
TrigElectron_p1::m_etoverpt
float m_etoverpt
Definition: TrigElectron_p1.h:59
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20