ATLAS Offline Software
TrigTauClusterCnv_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 
9 
10 // pre-allocate converters
11 static const TrigCaloClusterCnv_p2 trigCaloClusterCnv;
12 
14  TrigTauCluster *transObj,
15  MsgStream& log ) const
16 {
17 
18  log << MSG::DEBUG << "TrigTauClusterCnv_p3::persToTrans" << endmsg;
19 
20  transObj->setEMenergy (persObj->m_allTheFloats[0]) ;
21  transObj->setHADenergy (persObj->m_allTheFloats[1]) ;
22  transObj->setEnergyCalib (persObj->m_allTheFloats[2]) ;
23  transObj->setEMRadius2 (persObj->m_allTheFloats[3]) ;
24  transObj->setCaloRadius (persObj->m_allTheFloats[4]) ;
25  transObj->setIsoFrac (persObj->m_allTheFloats[5]) ;
26  transObj->setStripWidth (persObj->m_allTheFloats[6]) ;
27  transObj->setStripWidthOffline (persObj->m_allTheFloats[7]) ;
28 
29  transObj->setNumStripCells (persObj->m_allTheInts[0]) ;
30  transObj->setNumTotCells (persObj->m_allTheInts[1]) ;
31 // transObj->m_numStripCells = persObj->m_numStripCells ;
32 // transObj->m_numTotCells = persObj->m_numTotCells ;
33 
34 
36  m_ELinkTauClusterDetailsCnv.persToTrans( &persObj->m_details, &clusterDetails, log );
37  transObj->setClusterDetails (clusterDetails);
38  trigCaloClusterCnv.persToTrans(&persObj->m_trigCaloCluster,transObj,log);
39 
40 }
41 
43  TrigTauCluster_p3 *persObj,
44  MsgStream& log ) const
45 {
46 
47  log << MSG::DEBUG << "TrigTauClusterCnv_p3::transToPers" << endmsg;
48 
49  persObj->m_allTheFloats[0] = transObj->EMenergy() ;
50  persObj->m_allTheFloats[1] = transObj->HADenergy() ;
51  persObj->m_allTheFloats[2] = transObj->eCalib() ;
52  persObj->m_allTheFloats[3] = transObj->EMRadius2() ;
53  persObj->m_allTheFloats[4] = transObj->CaloRadius() ;
54  persObj->m_allTheFloats[5] = transObj->IsoFrac() ;
55  persObj->m_allTheFloats[6] = transObj->stripWidth() ;
56  persObj->m_allTheFloats[7] = transObj->stripWidthOffline() ;
57 
58  persObj->m_allTheInts[0] = transObj->numStripCells() ;
59  persObj->m_allTheInts[1] = transObj->numTotCells() ;
60 // persObj->m_numStripCells = transObj->m_numStripCells ;
61 // persObj->m_numTotCells = transObj->m_numTotCells ;
62 
63  log << MSG::DEBUG << "TrigTauClusterCnv_p3::transToPers - fill EL" << endmsg;
64 
66 
67  log << MSG::DEBUG << "TrigTauClusterCnv_p3::transToPers - fill trigcalocluster" << endmsg;
68 
69  trigCaloClusterCnv.transToPers(transObj,&persObj->m_trigCaloCluster,log);
70 
71  log << MSG::DEBUG << "TrigTauClusterCnv_p3::transToPers - filled" << endmsg;
72 
73 }
TrigTauCluster_p3::m_allTheFloats
float m_allTheFloats[8]
Definition: TrigTauCluster_p3.h:47
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_p3::m_trigCaloCluster
TrigCaloCluster_p2 m_trigCaloCluster
Definition: TrigTauCluster_p3.h:75
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
TrigTauClusterCnv_p3::persToTrans
virtual void persToTrans(const TrigTauCluster_p3 *persObj, TrigTauCluster *transObj, MsgStream &log) const override
Definition: TrigTauClusterCnv_p3.cxx:13
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_p3.h
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::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
TrigTauClusterCnv_p3::m_ELinkTauClusterDetailsCnv
ElementLinkCnv_p3< ElementLink< TrigTauClusterDetailsContainer > > m_ELinkTauClusterDetailsCnv
Definition: TrigTauClusterCnv_p3.h:38
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
TrigTauCluster::setClusterDetails
void setClusterDetails(const ElementLink< TrigTauClusterDetailsContainer > &clusterDetailsLink)
Definition: TrigTauCluster.cxx:174
TrigCaloClusterCnv_p2::transToPers
virtual void transToPers(const TrigCaloCluster *transObj, TrigCaloCluster_p2 *persObj, MsgStream &log) const override
Definition: TrigCaloClusterCnv_p2.cxx:27
TrigTauCluster::setEnergyCalib
void setEnergyCalib(float e)
set Calibrated Energy
Definition: TrigTauCluster.h:91
TrigTauCluster_p3::m_allTheInts
int m_allTheInts[2]
Definition: TrigTauCluster_p3.h:48
TrigTauCluster_p3::m_details
ElementLinkInt_p3 m_details
ElementLink to TrigTauClusterDetailsContainer.
Definition: TrigTauCluster_p3.h:74
TrigCaloClusterCnv_p2
Definition: TrigCaloClusterCnv_p2.h:28
TrigTauCluster::setEMRadius2
void setEMRadius2(float emradius)
set EM Radius
Definition: TrigTauCluster.h:77
TrigTauCluster_p3
Definition: TrigTauCluster_p3.h:27
TrigTauCluster::eCalib
float eCalib() const
get Calibrated Energy
Definition: TrigTauCluster.h:141
TrigTauClusterCnv_p3.h
TrigTauCluster::EMRadius2
float EMRadius2() const
get EM Radius
Definition: TrigTauCluster.h:121
TrigTauClusterCnv_p3::transToPers
virtual void transToPers(const TrigTauCluster *transObj, TrigTauCluster_p3 *persObj, MsgStream &log) const override
Definition: TrigTauClusterCnv_p3.cxx:42
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
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::clusterDetailsLink
const ElementLink< TrigTauClusterDetailsContainer > & clusterDetailsLink() const
Definition: TrigTauCluster.cxx:169
TrigTauCluster::setIsoFrac
void setIsoFrac(float isofrac)
set Isolation Fraction
Definition: TrigTauCluster.h:81
TrigCaloClusterCnv_p2::persToTrans
virtual void persToTrans(const TrigCaloCluster_p2 *persObj, TrigCaloCluster *transObj, MsgStream &log) const override
Definition: TrigCaloClusterCnv_p2.cxx:9
TrigTauCluster::setHADenergy
void setHADenergy(float energy)
set HAD Energy
Definition: TrigTauCluster.h:71