ATLAS Offline Software
TrigT2JetCnv_p2.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 //-----------------------------------------------------------------------------
10 // Persistent to transient
11 //-----------------------------------------------------------------------------
13  TrigT2Jet *transObj,
14  MsgStream &log ) const
15 {
16  log << MSG::DEBUG << "TrigT2JetCnv_p2::persToTrans called " << endmsg;
17 
18  transObj->setE (persObj->m_allTheFloats[0]) ;
19  transObj->setEhad0 (persObj->m_allTheFloats[1]) ;
20  transObj->setEem0 (persObj->m_allTheFloats[2]) ;
21  transObj->setEta (persObj->m_allTheFloats[3]) ;
22  transObj->setPhi (persObj->m_allTheFloats[4]) ;
23  //transObj->m_coneRadius = persObj->m_coneRadius ;
24  transObj->set_RoIword (persObj->m_roiWord) ;
25  // Cleaning:
26  transObj->setNLeadingCells (persObj->m_nLeadingCells);
27  transObj->setHecf (persObj->m_allTheFloats[5]);
28  transObj->setJetQuality (persObj->m_allTheFloats[6]);
29  transObj->setEmf (persObj->m_allTheFloats[7]);
30  transObj->setJetTimeCells (persObj->m_allTheFloats[8]);
31 
32 }
33 
34 //-----------------------------------------------------------------------------
35 // Transient to persistent
36 //-----------------------------------------------------------------------------
38  TrigT2Jet_p2 *persObj,
39  MsgStream &log ) const
40 {
41  log << MSG::DEBUG << "TrigT2JetCnv_p2::transToPers called " << endmsg;
42 
43  persObj->m_allTheFloats[0] = transObj->e() ;
44  persObj->m_allTheFloats[1] = transObj->ehad0() ;
45  persObj->m_allTheFloats[2] = transObj->eem0() ;
46  persObj->m_allTheFloats[3] = transObj->eta() ;
47  persObj->m_allTheFloats[4] = transObj->phi() ;
48  //persObj->m_coneRadius = transObj->m_coneRadius ;
49  persObj->m_roiWord = transObj->RoIword() ;
50 
51  // Cleaning:
52  persObj->m_nLeadingCells = transObj->nLeadingCells();
53  persObj->m_allTheFloats[5] = transObj->hecf();
54  persObj->m_allTheFloats[6] = transObj->jetQuality();
55  persObj->m_allTheFloats[7] = transObj->emf();
56  persObj->m_allTheFloats[8] = transObj->jetTimeCells();
57 }
TrigT2Jet::setJetQuality
void setJetQuality(float jetQuality)
Set fraction of jet energy from bad cells.
Definition: TrigT2Jet.h:105
TrigT2JetCnv_p2::transToPers
virtual void transToPers(const TrigT2Jet *transObj, TrigT2Jet_p2 *persObj, MsgStream &log) const override
Definition: TrigT2JetCnv_p2.cxx:37
TrigT2Jet::eem0
double eem0() const
Return the electromagnetic energy of the jet, calculated before the calibration.
Definition: TrigT2Jet.h:51
TrigT2Jet::setEmf
void setEmf(float emf)
Set fraction of energy in EMC.
Definition: TrigT2Jet.h:107
TrigT2Jet
LVL2 Trigger Jet Class.
Definition: TrigT2Jet.h:30
TrigT2Jet::setHecf
void setHecf(float hecf)
Set fraction of energy in HEC.
Definition: TrigT2Jet.h:103
TrigT2Jet::jetTimeCells
float jetTimeCells() const
Return jet time calculated from cells.
Definition: TrigT2Jet.h:78
TrigT2Jet::RoIword
unsigned int RoIword() const
Return the cone Radius.
Definition: TrigT2Jet.h:61
TrigT2Jet::eta
double eta() const
Return jet eta.
Definition: TrigT2Jet.h:53
TrigT2Jet::set_RoIword
void set_RoIword(unsigned int word)
set RoI Word
Definition: TrigT2Jet.h:97
TrigT2Jet::setE
void setE(double e)
set Jet energy
Definition: TrigT2Jet.h:81
TrigT2Jet_p2
Definition: TrigT2Jet_p2.h:21
TrigT2Jet::setEem0
void setEem0(double eem)
Set Electromagnetic energy.
Definition: TrigT2Jet.h:85
TrigT2Jet::nLeadingCells
int nLeadingCells() const
Return nLeadingCells (e.g.
Definition: TrigT2Jet.h:70
TrigT2Jet_p2::m_allTheFloats
float m_allTheFloats[9]
Definition: TrigT2Jet_p2.h:43
TrigT2Jet::setJetTimeCells
void setJetTimeCells(float jetTimeCells)
Set jet time calculated from cells.
Definition: TrigT2Jet.h:109
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigT2Jet_p2.h
TrigT2Jet::setNLeadingCells
void setNLeadingCells(int nLeadingCells)
Set nLeadingCells (e.g.
Definition: TrigT2Jet.h:101
TrigT2Jet_p2::m_roiWord
long m_roiWord
Definition: TrigT2Jet_p2.h:50
TrigT2Jet::hecf
float hecf() const
Return fraction of energy in HEC.
Definition: TrigT2Jet.h:72
TrigT2JetCnv_p2.h
TrigT2Jet::setEta
void setEta(double eta)
set Jet eta
Definition: TrigT2Jet.h:87
TrigT2Jet::e
double e() const
Return jet energy.
Definition: TrigT2Jet.h:47
TrigT2Jet::setEhad0
void setEhad0(double ehad)
Set Hadronic energy.
Definition: TrigT2Jet.h:83
TrigT2Jet::jetQuality
float jetQuality() const
Return fraction of jet energy from bad cells.
Definition: TrigT2Jet.h:74
TrigT2Jet::setPhi
void setPhi(double phi)
set Jet phi
Definition: TrigT2Jet.h:89
TrigT2JetCnv_p2::persToTrans
virtual void persToTrans(const TrigT2Jet_p2 *persObj, TrigT2Jet *transObj, MsgStream &log) const override
Definition: TrigT2JetCnv_p2.cxx:12
TrigT2Jet::ehad0
double ehad0() const
Return the hadronic energy of the jet, calculated before calibration.
Definition: TrigT2Jet.h:49
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigT2Jet::emf
float emf() const
Return fraction of energy in EMC.
Definition: TrigT2Jet.h:76
TrigT2Jet_p2::m_nLeadingCells
int m_nLeadingCells
Definition: TrigT2Jet_p2.h:52
TrigT2Jet::phi
double phi() const
Return jet phi.
Definition: TrigT2Jet.h:55
TrigT2Jet.h