ATLAS Offline Software
CaloCalibrationHitCnv_p2.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "Identifier/Identifier.h"
7 
10 
11 
13 {
14  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "CaloCalibrationHitCnv_p2::persToTrans called " << endmsg;
15  *transObj = CaloCalibrationHit (persObj->m_ID,
16  persObj->m_energy0,
17  persObj->m_energy1,
18  persObj->m_energy2,
19  persObj->m_energy3,
20  static_cast<int>(persObj->m_particleID),
22 }
23 
24 
26 {
27  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "CaloCalibrationHitCnv_p2::transToPers called " << endmsg;
28  persObj->m_ID = transObj->cellID().get_compact();
29  persObj->m_energy0 = (float) transObj->energyEM();
30  persObj->m_energy1 = (float) transObj->energyNonEM();
31  persObj->m_energy2 = (float) transObj->energyInvisible();
32  persObj->m_energy3 = (float) transObj->energyEscaped();
33  persObj->m_particleID = (unsigned int) transObj->particleID();
34 }
CaloCalibrationHit_p2::m_particleID
unsigned int m_particleID
identifier of Primary Particle which caused this hit
Definition: CaloCalibrationHit_p2.h:43
CaloCalibrationHit_p2::m_ID
Identifier m_ID
identifier of the cell in which this hit occured.
Definition: CaloCalibrationHit_p2.h:30
CaloCalibrationHit.h
CaloCalibrationHit::energyNonEM
double energyNonEM() const
Definition: CaloCalibrationHit.h:124
CaloCalibrationHit_p2::m_energy3
float m_energy3
Definition: CaloCalibrationHit_p2.h:40
CaloCalibrationHit_p2::m_energy1
float m_energy1
Definition: CaloCalibrationHit_p2.h:38
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
HepMC::INVALID_PARTICLE_ID
constexpr int INVALID_PARTICLE_ID
Definition: MagicNumbers.h:57
Identifier::get_compact
value_type get_compact() const
Get the compact id.
CaloCalibrationHit::energyEM
double energyEM() const
Definition: CaloCalibrationHit.h:121
CaloCalibrationHit_p2::m_energy2
float m_energy2
Definition: CaloCalibrationHit_p2.h:39
CaloCalibrationHitCnv_p2::persToTrans
virtual void persToTrans(const CaloCalibrationHit_p2 *persObj, CaloCalibrationHit *transObj, MsgStream &log)
Definition: CaloCalibrationHitCnv_p2.cxx:12
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CaloCalibrationHit::energyInvisible
double energyInvisible() const
Definition: CaloCalibrationHit.h:127
CaloCalibrationHit::cellID
Identifier cellID() const
Definition: CaloCalibrationHit.h:118
CaloCalibrationHit
Class to store calorimeter calibration hit.
Definition: CaloCalibrationHit.h:23
CaloCalibrationHitCnv_p2::transToPers
virtual void transToPers(const CaloCalibrationHit *transObj, CaloCalibrationHit_p2 *persObj, MsgStream &log)
Definition: CaloCalibrationHitCnv_p2.cxx:25
CaloCalibrationHit_p2::m_energy0
float m_energy0
energies (in MeV) deposited in this hit.
Definition: CaloCalibrationHit_p2.h:37
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CaloCalibrationHitCnv_p2.h
CaloCalibrationHit_p2
Persistent CaloCalibrationHit class, version p2.
Definition: CaloCalibrationHit_p2.h:17
CaloCalibrationHit_p2.h
readCCLHist.float
float
Definition: readCCLHist.py:83
CaloCalibrationHit::energyEscaped
double energyEscaped() const
Definition: CaloCalibrationHit.h:130
CaloCalibrationHit::particleID
int particleID() const
Definition: CaloCalibrationHit.h:156