ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigCaloEventTPCnv
src
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
5
#include "
TrigCaloEvent/TrigTauCluster.h
"
6
#include "
TrigCaloEventTPCnv/TrigTauCluster_p4.h
"
7
#include "
TrigCaloEventTPCnv/TrigTauClusterCnv_p4.h
"
8
#include "
TrigCaloEventTPCnv/TrigCaloClusterCnv_p2.h
"
9
10
// pre-allocate converters
11
static
const
TrigCaloClusterCnv_p2
trigCaloClusterCnv
;
12
13
void
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
34
ElementLink<TrigTauClusterDetailsContainer>
clusterDetails;
35
m_ELinkTauClusterDetailsCnv
.persToTrans( &persObj->
m_details
, &clusterDetails, log );
36
transObj->
setClusterDetails
(clusterDetails);
37
trigCaloClusterCnv
.persToTrans(&persObj->
m_trigCaloCluster
, transObj, log);
38
}
39
40
void
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:61
TrigCaloClusterCnv_p2.h
trigCaloClusterCnv
static const TrigCaloClusterCnv_p2 trigCaloClusterCnv
Definition
TrigEMClusterCnv_p3.cxx:15
TrigTauClusterCnv_p4.h
TrigTauCluster.h
TrigTauCluster_p4.h
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
TrigCaloClusterCnv_p2
Definition
TrigCaloClusterCnv_p2.h:28
TrigTauClusterCnv_p4::m_ELinkTauClusterDetailsCnv
ElementLinkCnv_p3< ElementLink< TrigTauClusterDetailsContainer > > m_ELinkTauClusterDetailsCnv
Definition
TrigTauClusterCnv_p4.h:38
TrigTauCluster_p4
Definition
TrigTauCluster_p4.h:27
TrigTauCluster_p4::m_allTheInts
int m_allTheInts[2]
Definition
TrigTauCluster_p4.h:36
TrigTauCluster_p4::m_details
ElementLinkInt_p3 m_details
ElementLink to TrigTauClusterDetailsContainer.
Definition
TrigTauCluster_p4.h:41
TrigTauCluster_p4::m_trigCaloCluster
TrigCaloCluster_p2 m_trigCaloCluster
Definition
TrigTauCluster_p4.h:42
TrigTauCluster_p4::m_allTheFloats
float m_allTheFloats[11]
Definition
TrigTauCluster_p4.h:35
TrigTauCluster
Class with calibrated variables for tau clustering.
Definition
TrigTauCluster.h:32
TrigTauCluster::setStripWidth
void setStripWidth(float stripwidth)
set Width in the strip sampling
Definition
TrigTauCluster.h:68
TrigTauCluster::numStripCells
int numStripCells() const
get Number of fired strips
Definition
TrigTauCluster.h:118
TrigTauCluster::EMRadius3S
float EMRadius3S() const
get EM Radius 3S
Definition
TrigTauCluster.h:130
TrigTauCluster::CoreFrac
float CoreFrac() const
get Core Fraction
Definition
TrigTauCluster.h:132
TrigTauCluster::EMRadius2
float EMRadius2() const
get EM Radius
Definition
TrigTauCluster.h:106
TrigTauCluster::eCalib
float eCalib() const
get Calibrated Energy
Definition
TrigTauCluster.h:126
TrigTauCluster::setEMFrac
void setEMFrac(float emFrac)
set EM Fraction
Definition
TrigTauCluster.h:82
TrigTauCluster::stripWidthOffline
float stripWidthOffline() const
get Width as in offline
Definition
TrigTauCluster.h:124
TrigTauCluster::setNumStripCells
void setNumStripCells(int numstripcells)
set Number of fired strips
Definition
TrigTauCluster.h:72
TrigTauCluster::setEMRadius2
void setEMRadius2(float emradius)
set EM Radius
Definition
TrigTauCluster.h:62
TrigTauCluster::setStripWidthOffline
void setStripWidthOffline(float stripwidthOffline)
set strip Width as in offline
Definition
TrigTauCluster.h:70
TrigTauCluster::setCaloRadius
void setCaloRadius(float caloradius)
set Total Calo Radius
Definition
TrigTauCluster.h:64
TrigTauCluster::stripWidth
float stripWidth() const
get Width in the strip sampling
Definition
TrigTauCluster.h:122
TrigTauCluster::numTotCells
int numTotCells() const
get Number of total cells in the cluster
Definition
TrigTauCluster.h:120
TrigTauCluster::clusterDetailsLink
const ElementLink< TrigTauClusterDetailsContainer > & clusterDetailsLink() const
Definition
TrigTauCluster.cxx:170
TrigTauCluster::setCoreFrac
void setCoreFrac(float coreFrac)
set Core Fraction
Definition
TrigTauCluster.h:80
TrigTauCluster::setHADenergy
void setHADenergy(float energy)
set HAD Energy
Definition
TrigTauCluster.h:56
TrigTauCluster::EMenergy
float EMenergy() const
get EM Energy
Definition
TrigTauCluster.h:94
TrigTauCluster::setEnergyCalib
void setEnergyCalib(float e)
set Calibrated Energy
Definition
TrigTauCluster.h:76
TrigTauCluster::CaloRadius
float CaloRadius() const
get Total Calo Radius
Definition
TrigTauCluster.h:108
TrigTauCluster::setEMenergy
void setEMenergy(float energy)
set EM Energy
Definition
TrigTauCluster.h:54
TrigTauCluster::setEMRadius3S
void setEMRadius3S(float emradius3s)
set EM Radius 3S
Definition
TrigTauCluster.h:78
TrigTauCluster::setClusterDetails
void setClusterDetails(const ElementLink< TrigTauClusterDetailsContainer > &clusterDetailsLink)
Definition
TrigTauCluster.cxx:175
TrigTauCluster::HADenergy
float HADenergy() const
get HAD Energy
Definition
TrigTauCluster.h:96
TrigTauCluster::setIsoFrac
void setIsoFrac(float isofrac)
set Isolation Fraction
Definition
TrigTauCluster.h:66
TrigTauCluster::setNumTotCells
void setNumTotCells(int numtotcells)
set Number of Cells in the cluster
Definition
TrigTauCluster.h:74
TrigTauCluster::IsoFrac
float IsoFrac() const
get Isolation Fraction
Definition
TrigTauCluster.h:112
TrigTauCluster::EMFrac
float EMFrac() const
get EM Fraction
Definition
TrigTauCluster.h:134
Generated on
for ATLAS Offline Software by
1.17.0