ATLAS Offline Software
Loading...
Searching...
No Matches
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
12
13void 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
39void 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
61 m_ELinkTauClusterDetailsCnv.transToPers(&transObj->clusterDetailsLink(), &persObj->m_details, log);
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}
#define endmsg
static const TrigCaloClusterCnv_p2 trigCaloClusterCnv
ElementLinkCnv_p3< ElementLink< TrigTauClusterDetailsContainer > > m_ELinkTauClusterDetailsCnv
TrigCaloCluster_p2 m_trigCaloCluster
ElementLinkInt_p3 m_details
ElementLink to TrigTauClusterDetailsContainer.
Class with calibrated variables for tau clustering.
void setStripWidth(float stripwidth)
set Width in the strip sampling
float HadRadius() const
get Hadronic Radius
int numStripCells() const
get Number of fired strips
float EMRadius3S() const
get EM Radius 3S
float CoreFrac() const
get Core Fraction
float EMRadius2() const
get EM Radius
float eCalib() const
get Calibrated Energy
void setEMFrac(float emFrac)
set EM Fraction
float stripWidthOffline() const
get Width as in offline
void setNumStripCells(int numstripcells)
set Number of fired strips
void setEMRadius2(float emradius)
set EM Radius
void setStripWidthOffline(float stripwidthOffline)
set strip Width as in offline
void setHadRadius(float hadRadius)
set Hadronic Radius
void setCaloRadius(float caloradius)
set Total Calo Radius
float stripWidth() const
get Width in the strip sampling
int numTotCells() const
get Number of total cells in the cluster
const ElementLink< TrigTauClusterDetailsContainer > & clusterDetailsLink() const
void setCoreFrac(float coreFrac)
set Core Fraction
void setHADenergy(float energy)
set HAD Energy
float EMenergy() const
get EM Energy
void setEnergyCalib(float e)
set Calibrated Energy
float CaloRadius() const
get Total Calo Radius
void setEMenergy(float energy)
set EM Energy
void setEMRadius3S(float emradius3s)
set EM Radius 3S
void setClusterDetails(const ElementLink< TrigTauClusterDetailsContainer > &clusterDetailsLink)
float HADenergy() const
get HAD Energy
void setIsoFrac(float isofrac)
set Isolation Fraction
void setNumTotCells(int numtotcells)
set Number of Cells in the cluster
float IsoFrac() const
get Isolation Fraction
float EMFrac() const
get EM Fraction