ATLAS Offline Software
TrigTauClusterDetailsCnv_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 
7 
9  TrigTauClusterDetails *transObj,
10  MsgStream& log ) const
11 {
12 
13  log << MSG::DEBUG << "TrigTauClusterDetailsCnv_p2::persToTrans" << endmsg;
14 
15  for( int i=0; i<NUMEMSAMP; i++ ){
16  transObj->setEMRadius (i, persObj->m_allEMFloats[i]);
17  transObj->setEMenergyWidth (i, persObj->m_allEMFloats[i+NUMEMSAMP]);
18  transObj->setEMenergyWide (i, persObj->m_allEMFloats[i+2*NUMEMSAMP]);
19  transObj->setEMenergyMedium (i, persObj->m_allEMFloats[i+3*NUMEMSAMP]);
20  transObj->setEMenergyNarrow (i, persObj->m_allEMFloats[i+4*NUMEMSAMP]);
21  }
22 
23  for( int i=0; i<NUMHADSAMP; i++ ){
24  transObj->setHADRadius (i, persObj->m_allHADFloats[i]);
25  transObj->setHADenergyWidth (i, persObj->m_allHADFloats[i+NUMHADSAMP]);
26  transObj->setHADenergyWide (i, persObj->m_allHADFloats[i+2*NUMHADSAMP]);
27  transObj->setHADenergyMedium (i, persObj->m_allHADFloats[i+3*NUMHADSAMP]);
28  transObj->setHADenergyNarrow (i, persObj->m_allHADFloats[i+4*NUMHADSAMP]);
29  }
30 
31 }
32 
34  TrigTauClusterDetails_p2 *persObj,
35  MsgStream& log ) const
36 {
37 
38  log << MSG::DEBUG << "TrigTauClusterDetailsCnv_p1::transToPers" << endmsg;
39 
40 
41  for( int i=0; i<NUMEMSAMP; i++ ){
42  persObj->m_allEMFloats[i] = transObj->EMRadius(i);
43  persObj->m_allEMFloats[i+NUMEMSAMP] = transObj->EMenergyWidth(i);
44  persObj->m_allEMFloats[i+2*NUMEMSAMP] = transObj->EMenergyWide(i);
45  persObj->m_allEMFloats[i+3*NUMEMSAMP] = transObj->EMenergyMedium(i);
46  persObj->m_allEMFloats[i+4*NUMEMSAMP] = transObj->EMenergyNarrow(i);
47  }
48 
49  for( int i=0; i<NUMHADSAMP; i++ ){
50  persObj->m_allHADFloats[i] = transObj->HADRadius(i);
51  persObj->m_allHADFloats[i+NUMHADSAMP] = transObj->HADenergyWidth(i);
52  persObj->m_allHADFloats[i+2*NUMHADSAMP] = transObj->HADenergyWide(i);
53  persObj->m_allHADFloats[i+3*NUMHADSAMP] = transObj->HADenergyMedium(i);
54  persObj->m_allHADFloats[i+4*NUMHADSAMP] = transObj->HADenergyNarrow(i);
55  }
56 
57 }
TrigTauClusterDetails::EMRadius
float EMRadius(int samp) const
get EM Radius per sampling
Definition: TrigTauClusterDetails.h:80
TrigTauClusterDetails::setEMenergyWide
void setEMenergyWide(int samp, float e)
set EM Energy in the mormalization region (0.3x0.3)
Definition: TrigTauClusterDetails.h:60
TrigTauClusterDetails::setHADenergyNarrow
void setHADenergyNarrow(int samp, float e)
set HAD Energy in the narrow region (0.1x0.1)
Definition: TrigTauClusterDetails.h:75
TrigTauClusterDetails::HADenergyWide
float HADenergyWide(int samp) const
get HAD Energy in the normalization region (0.3x0.3)
Definition: TrigTauClusterDetails.h:98
TrigTauClusterDetails_p2::m_allEMFloats
float m_allEMFloats[20]
Definition: TrigTauClusterDetails_p2.h:37
TrigTauClusterDetailsCnv_p2::persToTrans
virtual void persToTrans(const TrigTauClusterDetails_p2 *persObj, TrigTauClusterDetails *transObj, MsgStream &log) const override
Definition: TrigTauClusterDetailsCnv_p2.cxx:8
TrigTauClusterDetails.h
TrigTauClusterDetails::EMenergyWide
float EMenergyWide(int samp) const
get EM Energy in the mormalization region (0.3x0.3)
Definition: TrigTauClusterDetails.h:91
TrigTauClusterDetails::EMenergyNarrow
float EMenergyNarrow(int samp) const
get EM Energy in the narrow region (0.1x0.1)
Definition: TrigTauClusterDetails.h:95
TrigTauClusterDetailsCnv_p2.h
TrigTauClusterDetails::setHADenergyMedium
void setHADenergyMedium(int samp, float e)
set HAD Energy in the wide region (0.2x0.2)
Definition: TrigTauClusterDetails.h:72
TrigTauClusterDetails::setHADenergyWidth
void setHADenergyWidth(int samp, float stripwidth)
set Width in HAD samplings
Definition: TrigTauClusterDetails.h:56
TrigTauClusterDetails::HADenergyMedium
float HADenergyMedium(int samp) const
get HAD Energy in the wide region (0.2x0.2)
Definition: TrigTauClusterDetails.h:100
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
NUMHADSAMP
const int NUMHADSAMP
Number of HAD Samples.
Definition: TrigTauClusterDetails.h:28
TrigTauClusterDetails::setHADRadius
void setHADRadius(int samp, float hadradius)
set HAD Radius per sampling
Definition: TrigTauClusterDetails.h:50
TrigTauClusterDetails::HADenergyWidth
float HADenergyWidth(int samp) const
get Width in HAD samplings
Definition: TrigTauClusterDetails.h:87
TrigTauClusterDetails::HADRadius
float HADRadius(int samp) const
get HAD Radius per sampling
Definition: TrigTauClusterDetails.h:82
TrigTauClusterDetails::setEMenergyWidth
void setEMenergyWidth(int samp, float stripwidth)
set Width in EM samplings
Definition: TrigTauClusterDetails.h:53
TrigTauClusterDetails_p2::m_allHADFloats
float m_allHADFloats[15]
EM Radius per sampling.
Definition: TrigTauClusterDetails_p2.h:49
TrigTauClusterDetails::setEMenergyNarrow
void setEMenergyNarrow(int samp, float e)
set EM Energy in the narrow region (0.1x0.1)
Definition: TrigTauClusterDetails.h:66
TrigTauClusterDetailsCnv_p2::transToPers
virtual void transToPers(const TrigTauClusterDetails *transObj, TrigTauClusterDetails_p2 *persObj, MsgStream &log) const override
Definition: TrigTauClusterDetailsCnv_p2.cxx:33
TrigTauClusterDetails::EMenergyWidth
float EMenergyWidth(int samp) const
get Width in EM samplings
Definition: TrigTauClusterDetails.h:84
NUMEMSAMP
const int NUMEMSAMP
Number of EM Samples.
Definition: TrigTauClusterDetails.h:26
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigTauClusterDetails
Definition: TrigTauClusterDetails.h:30
TrigTauClusterDetails::setEMRadius
void setEMRadius(int samp, float emradius)
set EM Radius per sampling
Definition: TrigTauClusterDetails.h:47
TrigTauClusterDetails_p2
Definition: TrigTauClusterDetails_p2.h:21
TrigTauClusterDetails::HADenergyNarrow
float HADenergyNarrow(int samp) const
get HAD Energy in the narrow region (0.1x0.1)
Definition: TrigTauClusterDetails.h:102
TrigTauClusterDetails::setEMenergyMedium
void setEMenergyMedium(int samp, float e)
set EM Energy in the wide region (0.2x0.2)
Definition: TrigTauClusterDetails.h:63
TrigTauClusterDetails::EMenergyMedium
float EMenergyMedium(int samp) const
get EM Energy in the wide region (0.2x0.2)
Definition: TrigTauClusterDetails.h:93
TrigTauClusterDetails::setHADenergyWide
void setHADenergyWide(int samp, float e)
set HAD Energy in the mormalization region (0.3x0.3)
Definition: TrigTauClusterDetails.h:69