ATLAS Offline Software
TrigTauClusterCnv_p1.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_p1::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_EMRadius[2]) ;
20  transObj->setCaloRadius (-99.); // Hadronic radius not available in old TauCluster
21  transObj->setIsoFrac (persObj->m_IsoFrac) ;
22  transObj->setNumStripCells (persObj->m_numStripCells) ;
23  transObj->setNumTotCells (-99) ; // Total number of cells not available in old TauCluster
24  transObj->setStripWidth (persObj->m_stripWidth) ;
25  transObj->setStripWidthOffline (persObj->m_EMenergyWidth[1]) ;
26 
27  ITPConverterFor<TrigCaloCluster>* cnv = nullptr;
28  fillTransFromPStore( &cnv, persObj->m_trigCaloCluster, transObj, log );
29 
30  transObj->setEta(persObj->m_Eta);
31  transObj->setPhi(persObj->m_Phi);
32 }
33 
35  TrigTauCluster_p1 */*persObj*/,
36  MsgStream& log ) const
37 {
38 
39  log << MSG::DEBUG << "TrigTauClusterCnv_p1::transToPers" << endmsg;
40  log << MSG::WARNING << "Trying to write TrigTauCluster to obsolete persistent class TrigTauCluster_p1!" << endmsg;
41 /*
42  persObj->m_EMenergy = transObj->m_EMenergy ;
43  persObj->m_HADenergy = transObj->m_HADenergy ;
44  persObj->m_eCalib = transObj->m_eCalib ;
45  persObj->m_IsoFrac = transObj->m_IsoFrac ;
46  persObj->m_numStripCells = transObj->m_numStripCells ;
47  persObj->m_stripWidth = transObj->m_stripWidth ;
48 
49  persObj->m_trigCaloCluster = baseToPersistent( &m_trigCaloClusterCnv, transObj, log );
50 */
51 }
TrigTauCluster_p1::m_Phi
float m_Phi
Definition: TrigTauCluster_p1.h:50
TrigTauCluster::setPhi
void setPhi(float phi)
set Phi of the cluster
Definition: TrigTauCluster.h:75
ITPConverterFor
Definition: TPConverter.h:37
TrigTauClusterCnv_p1::persToTrans
virtual void persToTrans(const TrigTauCluster_p1 *persObj, TrigTauCluster *transObj, MsgStream &log) const override
Definition: TrigTauClusterCnv_p1.cxx:9
TrigTauCluster::setNumTotCells
void setNumTotCells(int numtotcells)
set Number of Cells in the cluster
Definition: TrigTauCluster.h:89
TrigTauClusterDetails.h
TrigTauClusterCnv_p1::transToPers
virtual void transToPers(const TrigTauCluster *transObj, TrigTauCluster_p1 *persObj, MsgStream &log) const override
Definition: TrigTauClusterCnv_p1.cxx:34
TrigTauCluster::setNumStripCells
void setNumStripCells(int numstripcells)
set Number of fired strips
Definition: TrigTauCluster.h:87
TrigTauCluster
Class with calibrated variables for tau clustering.
Definition: TrigTauCluster.h:33
TrigTauCluster_p1::m_Eta
float m_Eta
Definition: TrigTauCluster_p1.h:49
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::setEMenergy
void setEMenergy(float energy)
set EM Energy
Definition: TrigTauCluster.h:69
TrigTauCluster.h
TrigTauCluster_p1::m_EMenergy
float m_EMenergy
Definition: TrigTauCluster_p1.h:44
TrigTauCluster_p1
Definition: TrigTauCluster_p1.h:25
TrigTauCluster_p1::m_numStripCells
int m_numStripCells
Definition: TrigTauCluster_p1.h:55
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_p1::m_IsoFrac
float m_IsoFrac
Definition: TrigTauCluster_p1.h:52
TrigTauCluster_p1::m_stripWidth
float m_stripWidth
Definition: TrigTauCluster_p1.h:56
TrigTauCluster::setEnergyCalib
void setEnergyCalib(float e)
set Calibrated Energy
Definition: TrigTauCluster.h:91
TrigTauCluster_p1::m_EMenergyWidth
float m_EMenergyWidth[NUMEMSAMP]
Definition: TrigTauCluster_p1.h:53
TrigTauCluster::setEta
void setEta(float eta)
set Eta of the cluster
Definition: TrigTauCluster.h:73
TrigTauCluster::setEMRadius2
void setEMRadius2(float emradius)
set EM Radius
Definition: TrigTauCluster.h:77
TrigTauCluster::setCaloRadius
void setCaloRadius(float caloradius)
set Total Calo Radius
Definition: TrigTauCluster.h:79
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigTauCluster_p1::m_eCalib
float m_eCalib
Definition: TrigTauCluster_p1.h:47
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigTauCluster_p1::m_trigCaloCluster
TPObjRef m_trigCaloCluster
Definition: TrigTauCluster_p1.h:64
TrigTauCluster::setStripWidthOffline
void setStripWidthOffline(float stripwidthOffline)
set strip Width as in offline
Definition: TrigTauCluster.h:85
TrigTauCluster::setIsoFrac
void setIsoFrac(float isofrac)
set Isolation Fraction
Definition: TrigTauCluster.h:81
TrigTauClusterCnv_p1.h
TrigTauCluster_p1::m_EMRadius
float m_EMRadius[NUMEMSAMP]
Definition: TrigTauCluster_p1.h:51
TrigTauCluster_p1::m_HADenergy
float m_HADenergy
Definition: TrigTauCluster_p1.h:45
TrigTauCluster::setHADenergy
void setHADenergy(float energy)
set HAD Energy
Definition: TrigTauCluster.h:71