ATLAS Offline Software
TrigTauClusterCnv_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 
10  TrigTauCluster *transObj,
11  MsgStream& log ) const
12 {
13 
14  log << MSG::DEBUG << "TrigTauClusterCnv_p2::persToTrans" << endmsg;
15 
16  transObj->setEMenergy (persObj->m_EMenergy) ;
17  transObj->setHADenergy (persObj->m_HADenergy) ;
18  transObj->setEnergyCalib (persObj->m_eCalib) ;
19  transObj->setEMRadius2 (persObj->m_EMRadius2) ;
20  transObj->setCaloRadius (persObj->m_CaloRadius) ;
21  transObj->setIsoFrac (persObj->m_IsoFrac) ;
22  transObj->setNumStripCells (persObj->m_numStripCells) ;
23  transObj->setNumTotCells (persObj->m_numTotCells) ;
24  transObj->setStripWidth (persObj->m_stripWidth) ;
25  transObj->setStripWidthOffline (persObj->m_stripWidthOffline) ;
26 
28  m_ELinkTauClusterDetailsCnv.persToTrans( &persObj->m_details, &clusterDetails, log );
29  transObj->setClusterDetails (clusterDetails);
30  ITPConverterFor<TrigCaloCluster>* cnv = nullptr;
31  fillTransFromPStore( &cnv, persObj->m_trigCaloCluster, transObj, log );
32 
33 }
34 
36  TrigTauCluster_p2 *persObj,
37  MsgStream& log ) const
38 {
39 
40  log << MSG::DEBUG << "TrigTauClusterCnv_p2::transToPers" << endmsg;
41 
42  persObj->m_EMenergy = transObj->EMenergy() ;
43  persObj->m_HADenergy = transObj->HADenergy() ;
44  persObj->m_eCalib = transObj->eCalib() ;
45  persObj->m_EMRadius2 = transObj->EMRadius2() ;
46  persObj->m_CaloRadius = transObj->CaloRadius() ;
47  persObj->m_IsoFrac = transObj->IsoFrac() ;
48  persObj->m_numStripCells = transObj->numStripCells() ;
49  persObj->m_numTotCells = transObj->numTotCells() ;
50  persObj->m_stripWidth = transObj->stripWidth() ;
51  persObj->m_stripWidthOffline = transObj->stripWidthOffline() ;
52 
53 
55  ITPConverterFor<TrigCaloCluster>* cnv = nullptr;
56  persObj->m_trigCaloCluster = baseToPersistent( &cnv, transObj, log );
57 
58 }
TrigTauClusterCnv_p2::transToPers
virtual void transToPers(const TrigTauCluster *transObj, TrigTauCluster_p2 *persObj, MsgStream &log) const override
Definition: TrigTauClusterCnv_p2.cxx:35
ITPConverterFor
Definition: TPConverter.h:37
TrigTauCluster::EMenergy
float EMenergy() const
get EM Energy
Definition: TrigTauCluster.h:109
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_p2
Definition: TrigTauCluster_p2.h:27
TrigTauCluster_p2::m_details
ElementLinkInt_p1 m_details
ElementLink to TrigTauClusterDetailsContainer.
Definition: TrigTauCluster_p2.h:81
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_p2::m_stripWidthOffline
float m_stripWidthOffline
Width as in Offline.
Definition: TrigTauCluster_p2.h:76
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
TrigTauCluster_p2::m_eCalib
float m_eCalib
Calibrated Energy.
Definition: TrigTauCluster_p2.h:62
TrigTauCluster::setEMenergy
void setEMenergy(float energy)
set EM Energy
Definition: TrigTauCluster.h:69
TrigTauCluster_p2::m_trigCaloCluster
TPObjRef m_trigCaloCluster
Definition: TrigTauCluster_p2.h:84
TrigTauCluster.h
TrigTauClusterCnv_p2::persToTrans
virtual void persToTrans(const TrigTauCluster_p2 *persObj, TrigTauCluster *transObj, MsgStream &log) const override
Definition: TrigTauClusterCnv_p2.cxx:9
TrigTauCluster_p2::m_HADenergy
float m_HADenergy
HAD Energy.
Definition: TrigTauCluster_p2.h:60
TrigTauCluster_p2.h
ElementLinkCnv_p1::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
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_p2::m_EMRadius2
float m_EMRadius2
EM Radius.
Definition: TrigTauCluster_p2.h:64
TrigTauClusterCnv_p2::m_ELinkTauClusterDetailsCnv
ElementLinkCnv_p1< ElementLink< TrigTauClusterDetailsContainer > > m_ELinkTauClusterDetailsCnv
Definition: TrigTauClusterCnv_p2.h:52
TrigTauCluster::setClusterDetails
void setClusterDetails(const ElementLink< TrigTauClusterDetailsContainer > &clusterDetailsLink)
Definition: TrigTauCluster.cxx:174
TrigTauCluster::setEnergyCalib
void setEnergyCalib(float e)
set Calibrated Energy
Definition: TrigTauCluster.h:91
TrigTauCluster_p2::m_stripWidth
float m_stripWidth
Width in the strip sampling.
Definition: TrigTauCluster_p2.h:74
ITPConverterFor::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
TrigTauCluster_p2::m_numStripCells
int m_numStripCells
Number of fired strips.
Definition: TrigTauCluster_p2.h:70
ElementLinkCnv_p1::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
TrigTauCluster_p2::m_EMenergy
float m_EMenergy
EM Energy.
Definition: TrigTauCluster_p2.h:58
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
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigTauCluster_p2::m_numTotCells
int m_numTotCells
Total number of cells in the cluster.
Definition: TrigTauCluster_p2.h:72
TrigTauClusterCnv_p2.h
TrigTauCluster::numStripCells
int numStripCells() const
get Number of fired strips
Definition: TrigTauCluster.h:133
TrigTauCluster_p2::m_CaloRadius
float m_CaloRadius
Total Calo Radius.
Definition: TrigTauCluster_p2.h:66
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
TrigTauCluster_p2::m_IsoFrac
float m_IsoFrac
Isolation Fraction.
Definition: TrigTauCluster_p2.h:68
TrigTauCluster::setHADenergy
void setHADenergy(float energy)
set HAD Energy
Definition: TrigTauCluster.h:71