ATLAS Offline Software
Loading...
Searching...
No Matches
DepositInCaloCnv_p2.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_p2.cxx
8// Implementation file for class DepositInCaloCnv_p2
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 pers->m_etDeposited);
36
37
38// msg << MSG::DEBUG << "Loaded DepositInCalo from persistent state [OK]"
39// << endmsg;
40
41 return;
42}
43
45 DepositInCalo_p2* pers,
46 MsgStream& /*msg*/ ) const
47{
48// msg << MSG::DEBUG << "Creating persistent state of DepositInCalo..."
49// << endmsg;
50
51 // calorimeter sampling identifier
52 pers->m_subCaloId = static_cast<CaloCell_ID::CaloSample>(trans->subCaloId());
53
54 // energy deposited
55 pers->m_energyDeposited = trans->energyDeposited();
56
57 // energy Loss of the muons computed using the extrapolator
58 pers->m_muonEnergyLoss = trans->muonEnergyLoss();
59
60 // Energy loss Et
61 pers->m_etDeposited = trans->etDeposited();
62
63 // msg << MSG::DEBUG << "Created persistent state of DepositInCalo [OK]"
64// << endmsg;
65 return;
66}
CaloSampling::CaloSample CaloSample
Definition CaloCell_ID.h:53
virtual void persToTrans(const DepositInCalo_p2 *persObj, DepositInCalo *transObj, MsgStream &msg) const override
Method creating the transient representation of DepositInCalo from its persistent representation Depo...
virtual void transToPers(const DepositInCalo *transObj, DepositInCalo_p2 *persObj, MsgStream &msg) const override
Method creating the persistent representation DepositInCalo_p2 from its transient representation Depo...
float m_energyDeposited
energy Desposited
float m_muonEnergyLoss
energy Loss of the muons computed using the extrapolator
float m_etDeposited
energy deposited Et
unsigned short m_subCaloId
calorimeter sampling identifier
class describing the measured energy loss associated to muons on the detector level,...
double energyDeposited() const
Calorimeter detailed information - Energy Deposited.
double muonEnergyLoss() const
Calorimeter detailed information - Muon Energy Loss.
CaloCell_ID::CaloSample subCaloId() const
Calorimeter detailed information.
double etDeposited() const
Calorimeter detailed information - et Deposited.