ATLAS Offline Software
CaloCalibrationHitCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 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_p1::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 }
21 
22 
24 {
25  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "CaloCalibrationHitCnv_p1::transToPers called " << endmsg;
26  persObj->m_ID = transObj->cellID().get_compact();
27  persObj->m_energy0 = (float) transObj->energyEM();
28  persObj->m_energy1 = (float) transObj->energyNonEM();
29  persObj->m_energy2 = (float) transObj->energyInvisible();
30  persObj->m_energy3 = (float) transObj->energyEscaped();
31 }
CaloCalibrationHit.h
CaloCalibrationHit_p1
Persistent CaloCalibrationHit class, version p1.
Definition: CaloCalibrationHit_p1.h:17
CaloCalibrationHit::energyNonEM
double energyNonEM() const
Definition: CaloCalibrationHit.h:124
Identifier::get_compact
value_type get_compact() const
Get the compact id.
CaloCalibrationHit::energyEM
double energyEM() const
Definition: CaloCalibrationHit.h:121
CaloCalibrationHitCnv_p1::persToTrans
virtual void persToTrans(const CaloCalibrationHit_p1 *persObj, CaloCalibrationHit *transObj, MsgStream &log)
Definition: CaloCalibrationHitCnv_p1.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
CaloCalibrationHit_p1::m_energy1
float m_energy1
Definition: CaloCalibrationHit_p1.h:37
CaloCalibrationHit_p1::m_energy2
float m_energy2
Definition: CaloCalibrationHit_p1.h:38
DEBUG
#define DEBUG
Definition: page_access.h:11
CaloCalibrationHit_p1::m_energy3
float m_energy3
Definition: CaloCalibrationHit_p1.h:39
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CaloCalibrationHit_p1::m_ID
Identifier m_ID
identifier of the cell in which this hit occured.
Definition: CaloCalibrationHit_p1.h:29
CaloCalibrationHitCnv_p1::transToPers
virtual void transToPers(const CaloCalibrationHit *transObj, CaloCalibrationHit_p1 *persObj, MsgStream &log)
Definition: CaloCalibrationHitCnv_p1.cxx:23
readCCLHist.float
float
Definition: readCCLHist.py:83
CaloCalibrationHit::energyEscaped
double energyEscaped() const
Definition: CaloCalibrationHit.h:130
CaloCalibrationHitCnv_p1.h
CaloCalibrationHit_p1.h
CaloCalibrationHit_p1::m_energy0
float m_energy0
energies (in MeV) deposited in this hit.
Definition: CaloCalibrationHit_p1.h:36