ATLAS Offline Software
Loading...
Searching...
No Matches
TrigTauClusterCnv_p4.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_p4 :: persToTrans(const TrigTauCluster_p4 *persObj, TrigTauCluster *transObj, MsgStream& log) const
14{
15 log << MSG::DEBUG << "TrigTauClusterCnv_p4::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
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
35 m_ELinkTauClusterDetailsCnv.persToTrans( &persObj->m_details, &clusterDetails, log );
36 transObj->setClusterDetails (clusterDetails);
37 trigCaloClusterCnv.persToTrans(&persObj->m_trigCaloCluster, transObj, log);
38}
39
40void TrigTauClusterCnv_p4 :: transToPers(const TrigTauCluster *transObj, TrigTauCluster_p4 *persObj, MsgStream& log) const
41{
42 log << MSG::DEBUG << "TrigTauClusterCnv_p4::transToPers" << endmsg;
43
44 persObj->m_allTheFloats[0] = transObj->EMenergy() ;
45 persObj->m_allTheFloats[1] = transObj->HADenergy() ;
46 persObj->m_allTheFloats[2] = transObj->eCalib() ;
47 persObj->m_allTheFloats[3] = transObj->EMRadius2() ;
48 persObj->m_allTheFloats[4] = transObj->CaloRadius() ;
49 persObj->m_allTheFloats[5] = transObj->IsoFrac() ;
50 persObj->m_allTheFloats[6] = transObj->stripWidth() ;
51 persObj->m_allTheFloats[7] = transObj->stripWidthOffline() ;
52 persObj->m_allTheFloats[8] = transObj->EMRadius3S();
53 persObj->m_allTheFloats[9] = transObj->CoreFrac();
54 persObj->m_allTheFloats[10] = transObj->EMFrac();
55
56 persObj->m_allTheInts[0] = transObj->numStripCells() ;
57 persObj->m_allTheInts[1] = transObj->numTotCells() ;
58 //persObj->m_numStripCells = transObj->m_numStripCells;
59 //persObj->m_numTotCells = transObj->m_numTotCells;
60
61 log << MSG::DEBUG << "TrigTauClusterCnv_p4::transToPers - fill EL" << endmsg;
62
63 m_ELinkTauClusterDetailsCnv.transToPers(&transObj->clusterDetailsLink(), &persObj->m_details, log);
64
65 log << MSG::DEBUG << "TrigTauClusterCnv_p4::transToPers - fill trigcalocluster" << endmsg;
66
67 trigCaloClusterCnv.transToPers(transObj, &persObj->m_trigCaloCluster, log);
68
69 log << MSG::DEBUG << "TrigTauClusterCnv_p4::transToPers - filled" << endmsg;
70}
#define endmsg
static const TrigCaloClusterCnv_p2 trigCaloClusterCnv
ElementLinkCnv_p3< ElementLink< TrigTauClusterDetailsContainer > > m_ELinkTauClusterDetailsCnv
ElementLinkInt_p3 m_details
ElementLink to TrigTauClusterDetailsContainer.
TrigCaloCluster_p2 m_trigCaloCluster
Class with calibrated variables for tau clustering.
void setStripWidth(float stripwidth)
set Width in the strip sampling
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 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