ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecTPCnv
src
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
16
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
17
18
// muonEvent includes
19
#include "
muonEvent/DepositInCalo.h
"
20
21
// RecTPCnv includes
22
#include "
RecTPCnv/DepositInCaloCnv_p2.h
"
23
24
25
void
DepositInCaloCnv_p2::persToTrans
(
const
DepositInCalo_p2
* pers,
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
pers->
m_etDeposited
);
36
37
38
// msg << MSG::DEBUG << "Loaded DepositInCalo from persistent state [OK]"
39
// << endmsg;
40
41
return
;
42
}
43
44
void
DepositInCaloCnv_p2::transToPers
(
const
DepositInCalo
* trans,
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
}
DepositInCaloCnv_p2.h
DepositInCalo.h
T_AthenaPoolTPConverter.h
CaloCell_ID::CaloSample
CaloSampling::CaloSample CaloSample
Definition
CaloCell_ID.h:53
DepositInCaloCnv_p2::persToTrans
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...
Definition
DepositInCaloCnv_p2.cxx:25
DepositInCaloCnv_p2::transToPers
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...
Definition
DepositInCaloCnv_p2.cxx:44
DepositInCalo_p2
Definition
DepositInCalo_p2.h:22
DepositInCalo_p2::m_energyDeposited
float m_energyDeposited
energy Desposited
Definition
DepositInCalo_p2.h:60
DepositInCalo_p2::m_muonEnergyLoss
float m_muonEnergyLoss
energy Loss of the muons computed using the extrapolator
Definition
DepositInCalo_p2.h:63
DepositInCalo_p2::m_etDeposited
float m_etDeposited
energy deposited Et
Definition
DepositInCalo_p2.h:66
DepositInCalo_p2::m_subCaloId
unsigned short m_subCaloId
calorimeter sampling identifier
Definition
DepositInCalo_p2.h:57
DepositInCalo
class describing the measured energy loss associated to muons on the detector level,...
Definition
DepositInCalo.h:23
DepositInCalo::energyDeposited
double energyDeposited() const
Calorimeter detailed information - Energy Deposited.
Definition
DepositInCalo.h:56
DepositInCalo::muonEnergyLoss
double muonEnergyLoss() const
Calorimeter detailed information - Muon Energy Loss.
Definition
DepositInCalo.h:58
DepositInCalo::subCaloId
CaloCell_ID::CaloSample subCaloId() const
Calorimeter detailed information.
Definition
DepositInCalo.h:54
DepositInCalo::etDeposited
double etDeposited() const
Calorimeter detailed information - et Deposited.
Definition
DepositInCalo.h:60
Generated on
for ATLAS Offline Software by
1.17.0