ATLAS Offline Software
TrigCaloClusterCnv_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 
8 
10  TrigCaloCluster *transObj,
11  MsgStream& log ) const
12 {
13 
14  log << MSG::DEBUG << "TrigCaloClusterCnv_p2::persToTrans" << endmsg;
15 
16  transObj->setRawEnergy (persObj->m_rawEnergy);
17  transObj->setRawEt (persObj->m_rawEt);
18  transObj->setRawEta (persObj->m_rawEta);
19  transObj->setRawPhi (persObj->m_rawPhi);
20  transObj->setRoIword (persObj->m_roiWord);
21  transObj->setNCells (persObj->m_numberUsedCells);
22  transObj->setquality (persObj->m_quality);
23  transObj->setRawEnergies (std::begin (persObj->m_rawEnergyS),
24  std::end (persObj->m_rawEnergyS));
25 }
26 
28  TrigCaloCluster_p2 *persObj,
29  MsgStream& log ) const
30 {
31 
32  log << MSG::DEBUG << "TrigCaloClusterCnv_p2::transToPers" << endmsg;
33 
34  persObj->m_rawEnergy = transObj->rawEnergy() ;
35  persObj->m_rawEt = transObj->rawEt() ;
36  persObj->m_rawEta = transObj->rawEta() ;
37  persObj->m_rawPhi = transObj->rawPhi() ;
38  persObj->m_roiWord = transObj->RoIword() ;
39  persObj->m_numberUsedCells = transObj->nCells() ;
40  persObj->m_quality = transObj->quality() ;
41  transObj->rawEnergies (std::begin (persObj->m_rawEnergyS),
42  std::end (persObj->m_rawEnergyS));
43 }
TrigCaloCluster::nCells
int nCells() const
get number of cells used from RoI
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:118
TrigCaloCluster_p2::m_rawPhi
float m_rawPhi
Definition: TrigCaloCluster_p2.h:46
TrigCaloCluster::setRawEt
void setRawEt(float et)
set Raw Et (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:68
TrigCaloCluster_p2::m_roiWord
long m_roiWord
Definition: TrigCaloCluster_p2.h:48
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
TrigCaloCluster::rawPhi
float rawPhi() const
get Raw Phi (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:112
TrigCaloCluster::setquality
void setquality(unsigned int quality)
set quality of cluster built (to be defined)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:87
copy_bounded.h
Copy a range with bounds restriction.
TrigCaloCluster::setRawEnergy
void setRawEnergy(float energy)
set Raw Energy (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:57
TrigCaloCluster::RoIword
long RoIword() const
get RoI Word
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:115
TrigCaloCluster_p2::m_rawEta
float m_rawEta
Definition: TrigCaloCluster_p2.h:45
TrigCaloCluster::setRoIword
void setRoIword(long roiword)
set RoI Word
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:81
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
TrigCaloClusterCnv_p2.h
TrigCaloCluster_p2::m_rawEt
float m_rawEt
Definition: TrigCaloCluster_p2.h:43
TrigCaloCluster::setNCells
void setNCells(int ncells)
set number of cells used from RoI
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:84
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigCaloCluster::quality
unsigned int quality() const
get quality of cluster built (to be defined)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:121
TrigCaloCluster
Base Cluster Class.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:39
TrigCaloCluster::setRawEnergies
void setRawEnergies(ITERATOR beg, ITERATOR end)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:60
TrigCaloClusterCnv_p2::transToPers
virtual void transToPers(const TrigCaloCluster *transObj, TrigCaloCluster_p2 *persObj, MsgStream &log) const override
Definition: TrigCaloClusterCnv_p2.cxx:27
TrigCaloCluster::rawEta
float rawEta() const
get Raw Eta (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:109
TrigCaloCluster::setRawPhi
void setRawPhi(float phi)
set Raw Phi (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:78
TrigCaloCluster_p2::m_numberUsedCells
int m_numberUsedCells
Definition: TrigCaloCluster_p2.h:49
TrigCaloCluster::setRawEta
void setRawEta(float eta)
set Raw Eta (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:75
TrigCaloCluster_p2::m_rawEnergy
float m_rawEnergy
Definition: TrigCaloCluster_p2.h:42
TrigCaloCluster::rawEnergies
void rawEnergies(ITERATOR beg, ITERATOR end) const
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:95
TrigCaloCluster_p2
Definition: TrigCaloCluster_p2.h:22
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigCaloCluster.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigCaloClusterCnv_p2::persToTrans
virtual void persToTrans(const TrigCaloCluster_p2 *persObj, TrigCaloCluster *transObj, MsgStream &log) const override
Definition: TrigCaloClusterCnv_p2.cxx:9
TrigCaloCluster::rawEnergy
float rawEnergy() const
get Raw Energy (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:92
TrigCaloCluster::rawEt
float rawEt() const
get Raw Et (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:103
TrigCaloCluster_p2::m_rawEnergyS
float m_rawEnergyS[MAXSIZE_P]
Definition: TrigCaloCluster_p2.h:44
TrigCaloCluster_p2::m_quality
unsigned int m_quality
Definition: TrigCaloCluster_p2.h:50