ATLAS Offline Software
DepositInCaloCnv_p1.cxx
Go to the documentation of this file.
1 
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),
33  pers->m_energyDeposited,
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 }
DepositInCalo_p1::m_energyDeposited
float m_energyDeposited
energy Desposited
Definition: DepositInCalo_p1.h:37
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
T_AthenaPoolTPConverter.h
DepositInCaloCnv_p1::transToPers
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...
Definition: DepositInCaloCnv_p1.cxx:43
DepositInCalo.h
DepositInCalo_p1::m_muonEnergyLoss
float m_muonEnergyLoss
energy Loss of the muons computed using the extrapolator
Definition: DepositInCalo_p1.h:40
DepositInCalo_p1::m_subCaloId
unsigned short m_subCaloId
calorimeter sampling identifier
Definition: DepositInCalo_p1.h:34
DepositInCalo_p1
Definition: DepositInCalo_p1.h:17
DepositInCaloCnv_p1.h
DepositInCalo
class describing the measured energy loss associated to muons on the detector level,...
Definition: DepositInCalo.h:23
DepositInCaloCnv_p1::persToTrans
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...
Definition: DepositInCaloCnv_p1.cxx:25
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7