ATLAS Offline Software
Loading...
Searching...
No Matches
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}
#define endmsg
virtual void transToPers(const CaloCalibrationHit *transObj, CaloCalibrationHit_p2 *persObj, MsgStream &log)
virtual void persToTrans(const CaloCalibrationHit_p2 *persObj, CaloCalibrationHit *transObj, MsgStream &log)
Persistent CaloCalibrationHit class, version p2.
Identifier m_ID
identifier of the cell in which this hit occured.
unsigned int m_particleID
identifier of Primary Particle which caused this hit
float m_energy0
energies (in MeV) deposited in this hit.
Class to store calorimeter calibration hit.
double energyNonEM() const
Identifier cellID() const
double energyEscaped() const
double energyInvisible() const
value_type get_compact() const
Get the compact id.
constexpr int INVALID_PARTICLE_ID