ATLAS Offline Software
Loading...
Searching...
No Matches
DepositInCaloCnv_p1.cxx
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5*/
6
7// DepositInCaloCnv_p1.cxx
8// Implementation file for class DepositInCaloCnv_p1
9// Author: S.Binet<binet@cern.ch>
11
12
13// STL includes
14
15// AthenaPoolCnvSvc includes
17
18// muonEvent includes
20
21// RecTPCnv includes
23
24
26 DepositInCalo* trans,
27 MsgStream& /*msg*/ ) const
28{
29// msg << MSG::DEBUG << "Loading DepositInCalo from persistent state..."
30// << endmsg;
31
32 *trans = DepositInCalo(static_cast<CaloCell_ID::CaloSample>(pers->m_subCaloId),
34 pers->m_muonEnergyLoss,
35 0.0); // energy deposited et - not available in the p1 versions
36
37// msg << MSG::DEBUG << "Loaded DepositInCalo from persistent state [OK]"
38// << endmsg;
39
40 return;
41}
42
44 DepositInCalo_p1* pers,
45 MsgStream& msg ) const
46{
47
48 msg << MSG::ERROR << "DepositInCalo at " << trans << " Persistent DepositInCalo_p1 at " << pers
49 << " Cannot write to DepositInCalo_p1" << endmsg;
50 throw std::runtime_error("Writing to DepositInCalo_p1 is not supported - DepositInCaloCnv_p1::transToPers(...)");
51
52 return;
53}
#define endmsg
CaloSampling::CaloSample CaloSample
Definition CaloCell_ID.h:53
virtual void transToPers(const DepositInCalo *transObj, DepositInCalo_p1 *persObj, MsgStream &msg) const override
Method creating the persistent representation DepositInCalo_p1 from its transient representation Depo...
virtual void persToTrans(const DepositInCalo_p1 *persObj, DepositInCalo *transObj, MsgStream &msg) const override
Method creating the transient representation of DepositInCalo from its persistent representation Depo...
unsigned short m_subCaloId
calorimeter sampling identifier
float m_energyDeposited
energy Desposited
float m_muonEnergyLoss
energy Loss of the muons computed using the extrapolator
class describing the measured energy loss associated to muons on the detector level,...
MsgStream & msg
Definition testRead.cxx:32