ATLAS Offline Software
TrigCaloClusterCnv_p3.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_p3::persToTrans" << endmsg;
15 
16  transObj->setRawEnergy (persObj->m_allFloats[0]);
17  transObj->setRawEt (persObj->m_allFloats[1]);
18  transObj->setRawEta (persObj->m_allFloats[2]);
19  transObj->setRawPhi (persObj->m_allFloats[3]);
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_allFloats)+4,
24  std::end (persObj->m_allFloats));
25 }
26 
28  TrigCaloCluster_p3 *persObj,
29  MsgStream& log ) const
30 {
31 
32  log << MSG::DEBUG << "TrigCaloClusterCnv_p3::transToPers" << endmsg;
33 
34  persObj->m_allFloats[0] = transObj->rawEnergy() ;
35  persObj->m_allFloats[1] = transObj->rawEt() ;
36  persObj->m_allFloats[2] = transObj->rawEta() ;
37  persObj->m_allFloats[3] = 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_allFloats)+4,
42  std::end (persObj->m_allFloats));
43 }
TrigCaloCluster_p3::m_numberUsedCells
int m_numberUsedCells
Definition: TrigCaloCluster_p3.h:51
TrigCaloCluster::nCells
int nCells() const
get number of cells used from RoI
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:118
TrigCaloCluster::setRawEt
void setRawEt(float et)
set Raw Et (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:68
TrigCaloClusterCnv_p3.h
TrigCaloCluster_p3::m_quality
unsigned int m_quality
Definition: TrigCaloCluster_p3.h:52
TrigCaloClusterCnv_p3::transToPers
virtual void transToPers(const TrigCaloCluster *transObj, TrigCaloCluster_p3 *persObj, MsgStream &log) const override
Definition: TrigCaloClusterCnv_p3.cxx:27
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_p3::m_allFloats
float m_allFloats[4+MAXSIZE_P]
Definition: TrigCaloCluster_p3.h:48
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
TrigCaloCluster_p3
Definition: TrigCaloCluster_p3.h:21
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
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::setRawEta
void setRawEta(float eta)
set Raw Eta (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:75
TrigCaloCluster_p3::m_roiWord
long m_roiWord
Definition: TrigCaloCluster_p3.h:50
TrigCaloCluster::rawEnergies
void rawEnergies(ITERATOR beg, ITERATOR end) const
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:95
TrigCaloClusterCnv_p3::persToTrans
virtual void persToTrans(const TrigCaloCluster_p3 *persObj, TrigCaloCluster *transObj, MsgStream &log) const override
Definition: TrigCaloClusterCnv_p3.cxx:9
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigCaloCluster.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
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