ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecTPCnv
src
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
16
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
17
18
// muonEvent includes
19
#include "
muonEvent/DepositInCalo.h
"
20
21
// RecTPCnv includes
22
#include "
RecTPCnv/DepositInCaloCnv_p1.h
"
23
24
25
void
DepositInCaloCnv_p1::persToTrans
(
const
DepositInCalo_p1
* 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
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
43
void
DepositInCaloCnv_p1::transToPers
(
const
DepositInCalo
* trans,
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
DepositInCaloCnv_p1.h
DepositInCalo.h
T_AthenaPoolTPConverter.h
CaloCell_ID::CaloSample
CaloSampling::CaloSample CaloSample
Definition
CaloCell_ID.h:53
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
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
DepositInCalo_p1
Definition
DepositInCalo_p1.h:17
DepositInCalo_p1::m_subCaloId
unsigned short m_subCaloId
calorimeter sampling identifier
Definition
DepositInCalo_p1.h:34
DepositInCalo_p1::m_energyDeposited
float m_energyDeposited
energy Desposited
Definition
DepositInCalo_p1.h:37
DepositInCalo_p1::m_muonEnergyLoss
float m_muonEnergyLoss
energy Loss of the muons computed using the extrapolator
Definition
DepositInCalo_p1.h:40
DepositInCalo
class describing the measured energy loss associated to muons on the detector level,...
Definition
DepositInCalo.h:23
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0