ATLAS Offline Software
TrigT2JetCnv_p3.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_p3::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 // Transient to persistent
35 //-----------------------------------------------------------------------------
37  TrigT2Jet_p3 *persObj,
38  MsgStream &log ) const
39 {
40  log << MSG::DEBUG << "TrigT2JetCnv_p3::transToPers called " << endmsg;
41 
42  persObj->m_allTheFloats[0] = transObj->e() ;
43  persObj->m_allTheFloats[1] = transObj->ehad0() ;
44  persObj->m_allTheFloats[2] = transObj->eem0() ;
45  persObj->m_allTheFloats[3] = transObj->eta() ;
46  persObj->m_allTheFloats[4] = transObj->phi() ;
47  //persObj->m_coneRadius = transObj->m_coneRadius ;
48  persObj->m_roiWord = transObj->RoIword() ;
49 
50  // Cleaning:
51  persObj->m_nLeadingCells = transObj->nLeadingCells();
52  persObj->m_allTheFloats[5] = transObj->hecf();
53  persObj->m_allTheFloats[6] = transObj->jetQuality();
54  persObj->m_allTheFloats[7] = transObj->emf();
55  persObj->m_allTheFloats[8] = transObj->jetTimeCells();
56 }
TrigT2Jet::setJetQuality
void setJetQuality(float jetQuality)
Set fraction of jet energy from bad cells.
Definition: TrigT2Jet.h:99
TrigT2Jet::eem0
double eem0() const
Return the electromagnetic energy of the jet, calculated before the calibration.
Definition: TrigT2Jet.h:45
TrigT2JetCnv_p3::persToTrans
virtual void persToTrans(const TrigT2Jet_p3 *persObj, TrigT2Jet *transObj, MsgStream &log) const override
Definition: TrigT2JetCnv_p3.cxx:12
TrigT2Jet::setEmf
void setEmf(float emf)
Set fraction of energy in EMC.
Definition: TrigT2Jet.h:101
TrigT2Jet
LVL2 Trigger Jet Class.
Definition: TrigT2Jet.h:32
TrigT2Jet::setHecf
void setHecf(float hecf)
Set fraction of energy in HEC.
Definition: TrigT2Jet.h:97
TrigT2Jet::jetTimeCells
float jetTimeCells() const
Return jet time calculated from cells.
Definition: TrigT2Jet.h:72
TrigT2Jet::RoIword
unsigned int RoIword() const
Return the cone Radius.
Definition: TrigT2Jet.h:55
TrigT2Jet::eta
double eta() const
Return jet eta.
Definition: TrigT2Jet.h:47
TrigT2Jet::set_RoIword
void set_RoIword(unsigned int word)
set RoI Word
Definition: TrigT2Jet.h:91
TrigT2Jet::setE
void setE(double e)
set Jet energy
Definition: TrigT2Jet.h:75
TrigT2Jet_p3::m_nLeadingCells
int m_nLeadingCells
Definition: TrigT2Jet_p3.h:44
TrigT2Jet::setEem0
void setEem0(double eem)
Set Electromagnetic energy.
Definition: TrigT2Jet.h:79
TrigT2Jet::nLeadingCells
int nLeadingCells() const
Return nLeadingCells (e.g.
Definition: TrigT2Jet.h:64
TrigT2Jet::setJetTimeCells
void setJetTimeCells(float jetTimeCells)
Set jet time calculated from cells.
Definition: TrigT2Jet.h:103
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigT2Jet_p3::m_allTheFloats
float m_allTheFloats[9]
Definition: TrigT2Jet_p3.h:35
TrigT2Jet::setNLeadingCells
void setNLeadingCells(int nLeadingCells)
Set nLeadingCells (e.g.
Definition: TrigT2Jet.h:95
TrigT2JetCnv_p3.h
TrigT2Jet::hecf
float hecf() const
Return fraction of energy in HEC.
Definition: TrigT2Jet.h:66
TrigT2Jet_p3.h
TrigT2Jet::setEta
void setEta(double eta)
set Jet eta
Definition: TrigT2Jet.h:81
TrigT2Jet::e
double e() const
Return jet energy.
Definition: TrigT2Jet.h:41
TrigT2Jet::setEhad0
void setEhad0(double ehad)
Set Hadronic energy.
Definition: TrigT2Jet.h:77
TrigT2Jet::jetQuality
float jetQuality() const
Return fraction of jet energy from bad cells.
Definition: TrigT2Jet.h:68
TrigT2Jet::setPhi
void setPhi(double phi)
set Jet phi
Definition: TrigT2Jet.h:83
TrigT2Jet::ehad0
double ehad0() const
Return the hadronic energy of the jet, calculated before calibration.
Definition: TrigT2Jet.h:43
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:70
TrigT2Jet_p3
Definition: TrigT2Jet_p3.h:18
TrigT2JetCnv_p3::transToPers
virtual void transToPers(const TrigT2Jet *transObj, TrigT2Jet_p3 *persObj, MsgStream &log) const override
Definition: TrigT2JetCnv_p3.cxx:36
TrigT2Jet::phi
double phi() const
Return jet phi.
Definition: TrigT2Jet.h:49
TrigT2Jet.h
TrigT2Jet_p3::m_roiWord
long m_roiWord
Definition: TrigT2Jet_p3.h:42