ATLAS Offline Software
TrigTauClusterCnv_p5.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 
10 // pre-allocate converters
11 static const TrigCaloClusterCnv_p2 trigCaloClusterCnv;
12 
13 void TrigTauClusterCnv_p5 :: persToTrans(const TrigTauCluster_p5 *persObj, TrigTauCluster *transObj, MsgStream& log) const
14 {
15  log << MSG::DEBUG << "TrigTauClusterCnv_p5::persToTrans" << endmsg;
16 
17  transObj->setEMenergy (persObj->m_allTheFloats[0]) ;
18  transObj->setHADenergy (persObj->m_allTheFloats[1]) ;
19  transObj->setEnergyCalib (persObj->m_allTheFloats[2]) ;
20  transObj->setEMRadius2 (persObj->m_allTheFloats[3]) ;
21  transObj->setCaloRadius (persObj->m_allTheFloats[4]) ;
22  transObj->setIsoFrac (persObj->m_allTheFloats[5]) ;
23  transObj->setStripWidth (persObj->m_allTheFloats[6]) ;
24  transObj->setStripWidthOffline (persObj->m_allTheFloats[7]) ;
25  transObj->setEMRadius3S (persObj->m_allTheFloats[8]);
26  transObj->setCoreFrac (persObj->m_allTheFloats[9]);
27  transObj->setEMFrac (persObj->m_allTheFloats[10]);
28  transObj->setHadRadius (persObj->m_allTheFloats[11]);
29 
30  transObj->setNumStripCells (persObj->m_allTheInts[0]) ;
31  transObj->setNumTotCells (persObj->m_allTheInts[1]) ;
32 
34  m_ELinkTauClusterDetailsCnv.persToTrans( &persObj->m_details, &clusterDetails, log );
35  transObj->setClusterDetails (clusterDetails);
36  trigCaloClusterCnv.persToTrans(&persObj->m_trigCaloCluster, transObj, log);
37 }
38 
39 void TrigTauClusterCnv_p5 :: transToPers(const TrigTauCluster *transObj, TrigTauCluster_p5 *persObj, MsgStream& log) const
40 {
41  log << MSG::DEBUG << "TrigTauClusterCnv_p5::transToPers" << endmsg;
42 
43  persObj->m_allTheFloats[0] = transObj->EMenergy() ;
44  persObj->m_allTheFloats[1] = transObj->HADenergy() ;
45  persObj->m_allTheFloats[2] = transObj->eCalib() ;
46  persObj->m_allTheFloats[3] = transObj->EMRadius2() ;
47  persObj->m_allTheFloats[4] = transObj->CaloRadius() ;
48  persObj->m_allTheFloats[5] = transObj->IsoFrac() ;
49  persObj->m_allTheFloats[6] = transObj->stripWidth() ;
50  persObj->m_allTheFloats[7] = transObj->stripWidthOffline() ;
51  persObj->m_allTheFloats[8] = transObj->EMRadius3S();
52  persObj->m_allTheFloats[9] = transObj->CoreFrac();
53  persObj->m_allTheFloats[10] = transObj->EMFrac();
54  persObj->m_allTheFloats[11] = transObj->HadRadius();
55 
56  persObj->m_allTheInts[0] = transObj->numStripCells() ;
57  persObj->m_allTheInts[1] = transObj->numTotCells() ;
58 
59  log << MSG::DEBUG << "TrigTauClusterCnv_p5::transToPers - fill EL" << endmsg;
60 
62 
63  log << MSG::DEBUG << "TrigTauClusterCnv_p5::transToPers - fill trigcalocluster" << endmsg;
64 
65  trigCaloClusterCnv.transToPers(transObj, &persObj->m_trigCaloCluster, log);
66 
67  log << MSG::DEBUG << "TrigTauClusterCnv_p5::transToPers - filled" << endmsg;
68 }
TrigTauCluster::setEMRadius3S
void setEMRadius3S(float emradius3s)
set EM Radius 3S
Definition: TrigTauCluster.h:93
TrigTauCluster::EMenergy
float EMenergy() const
get EM Energy
Definition: TrigTauCluster.h:109
ElementLinkCnv_p3::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
TrigTauCluster_p5::m_trigCaloCluster
TrigCaloCluster_p2 m_trigCaloCluster
Definition: TrigTauCluster_p5.h:53
TrigTauCluster::EMRadius3S
float EMRadius3S() const
get EM Radius 3S
Definition: TrigTauCluster.h:145
TrigTauCluster::IsoFrac
float IsoFrac() const
get Isolation Fraction
Definition: TrigTauCluster.h:127
TrigTauCluster::setNumTotCells
void setNumTotCells(int numtotcells)
set Number of Cells in the cluster
Definition: TrigTauCluster.h:89
TrigTauCluster_p5.h
TrigTauCluster::CaloRadius
float CaloRadius() const
get Total Calo Radius
Definition: TrigTauCluster.h:123
TrigTauCluster::setNumStripCells
void setNumStripCells(int numstripcells)
set Number of fired strips
Definition: TrigTauCluster.h:87
TrigTauCluster::stripWidth
float stripWidth() const
get Width in the strip sampling
Definition: TrigTauCluster.h:137
TrigTauCluster
Class with calibrated variables for tau clustering.
Definition: TrigTauCluster.h:33
TrigTauCluster_p5
Definition: TrigTauCluster_p5.h:28
TrigTauCluster::setEMenergy
void setEMenergy(float energy)
set EM Energy
Definition: TrigTauCluster.h:69
ElementLinkCnv_p3::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
TrigTauCluster.h
TrigCaloClusterCnv_p2.h
TrigTauCluster::numTotCells
int numTotCells() const
get Number of total cells in the cluster
Definition: TrigTauCluster.h:135
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigTauCluster::setStripWidth
void setStripWidth(float stripwidth)
set Width in the strip sampling
Definition: TrigTauCluster.h:83
TrigTauClusterCnv_p5::m_ELinkTauClusterDetailsCnv
ElementLinkCnv_p3< ElementLink< TrigTauClusterDetailsContainer > > m_ELinkTauClusterDetailsCnv
Definition: TrigTauClusterCnv_p5.h:38
TrigTauCluster_p5::m_details
ElementLinkInt_p3 m_details
ElementLink to TrigTauClusterDetailsContainer.
Definition: TrigTauCluster_p5.h:50
TrigTauCluster::setClusterDetails
void setClusterDetails(const ElementLink< TrigTauClusterDetailsContainer > &clusterDetailsLink)
Definition: TrigTauCluster.cxx:174
TrigTauCluster::EMFrac
float EMFrac() const
get EM Fraction
Definition: TrigTauCluster.h:149
TrigCaloClusterCnv_p2::transToPers
virtual void transToPers(const TrigCaloCluster *transObj, TrigCaloCluster_p2 *persObj, MsgStream &log) const override
Definition: TrigCaloClusterCnv_p2.cxx:27
TrigTauCluster::HadRadius
float HadRadius() const
get Hadronic Radius
Definition: TrigTauCluster.h:151
TrigTauCluster::setEnergyCalib
void setEnergyCalib(float e)
set Calibrated Energy
Definition: TrigTauCluster.h:91
TrigTauClusterCnv_p5::transToPers
virtual void transToPers(const TrigTauCluster *transObj, TrigTauCluster_p5 *persObj, MsgStream &log) const override
Definition: TrigTauClusterCnv_p5.cxx:39
TrigTauClusterCnv_p5::persToTrans
virtual void persToTrans(const TrigTauCluster_p5 *persObj, TrigTauCluster *transObj, MsgStream &log) const override
Definition: TrigTauClusterCnv_p5.cxx:13
TrigTauCluster_p5::m_allTheInts
int m_allTheInts[2]
Definition: TrigTauCluster_p5.h:47
TrigCaloClusterCnv_p2
Definition: TrigCaloClusterCnv_p2.h:28
TrigTauCluster::setEMRadius2
void setEMRadius2(float emradius)
set EM Radius
Definition: TrigTauCluster.h:77
TrigTauCluster::eCalib
float eCalib() const
get Calibrated Energy
Definition: TrigTauCluster.h:141
TrigTauCluster::EMRadius2
float EMRadius2() const
get EM Radius
Definition: TrigTauCluster.h:121
TrigTauCluster::setCaloRadius
void setCaloRadius(float caloradius)
set Total Calo Radius
Definition: TrigTauCluster.h:79
TrigTauCluster::stripWidthOffline
float stripWidthOffline() const
get Width as in offline
Definition: TrigTauCluster.h:139
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigTauCluster::HADenergy
float HADenergy() const
get HAD Energy
Definition: TrigTauCluster.h:111
TrigTauClusterCnv_p5.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigTauCluster::numStripCells
int numStripCells() const
get Number of fired strips
Definition: TrigTauCluster.h:133
TrigTauCluster::setStripWidthOffline
void setStripWidthOffline(float stripwidthOffline)
set strip Width as in offline
Definition: TrigTauCluster.h:85
TrigTauCluster::setHadRadius
void setHadRadius(float hadRadius)
set Hadronic Radius
Definition: TrigTauCluster.h:99
TrigTauCluster::clusterDetailsLink
const ElementLink< TrigTauClusterDetailsContainer > & clusterDetailsLink() const
Definition: TrigTauCluster.cxx:169
TrigTauCluster::setIsoFrac
void setIsoFrac(float isofrac)
set Isolation Fraction
Definition: TrigTauCluster.h:81
TrigTauCluster_p5::m_allTheFloats
float m_allTheFloats[12]
Definition: TrigTauCluster_p5.h:46
TrigTauCluster::CoreFrac
float CoreFrac() const
get Core Fraction
Definition: TrigTauCluster.h:147
TrigCaloClusterCnv_p2::persToTrans
virtual void persToTrans(const TrigCaloCluster_p2 *persObj, TrigCaloCluster *transObj, MsgStream &log) const override
Definition: TrigCaloClusterCnv_p2.cxx:9
TrigTauCluster::setEMFrac
void setEMFrac(float emFrac)
set EM Fraction
Definition: TrigTauCluster.h:97
TrigTauCluster::setCoreFrac
void setCoreFrac(float coreFrac)
set Core Fraction
Definition: TrigTauCluster.h:95
TrigTauCluster::setHADenergy
void setHADenergy(float energy)
set HAD Energy
Definition: TrigTauCluster.h:71