ATLAS Offline Software
ForwardDetectors
ZDC
ZdcCnv
ZdcEventTPCnv
src
ZDC_SimFiberHitCnv_p1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ZDC_SimEvent/ZDC_SimFiberHit.h
"
6
#include "Identifier/Identifier.h"
7
#include "
ZdcEventTPCnv/ZDC_SimFiberHitCnv_p1.h
"
8
9
void
ZDC_SimFiberHitCnv_p1::persToTrans
(
const
ZDC_SimFiberHit_p1
* persObj,
ZDC_SimFiberHit
* transObj, MsgStream&
log
)
const
{
10
11
log
<<
MSG::DEBUG
<<
" In ZDC_SimFiberHitCnv_p1::persToTrans "
<<
endmsg
;
12
13
*transObj =
ZDC_SimFiberHit
(persObj->
m_ID
,
14
persObj->
m_Nphotons
,
15
persObj->
m_Edep
);
16
}
17
18
void
ZDC_SimFiberHitCnv_p1::transToPers
(
const
ZDC_SimFiberHit
* transObj,
ZDC_SimFiberHit_p1
* persObj, MsgStream&
log
)
const
{
19
20
log
<<
MSG::DEBUG
<<
" In ZDC_SimFiberHitCnv_p1::transToPers "
<<
endmsg
;
21
22
persObj->
m_ID
= transObj->
getID
();
23
persObj->
m_Nphotons
= transObj->
getNPhotons
();
24
persObj->
m_Edep
= transObj->
getEdep
();
25
}
ZDC_SimFiberHit::getNPhotons
int getNPhotons() const
Definition:
ZDC_SimFiberHit.h:46
ZDC_SimFiberHit_p1::m_Edep
float m_Edep
Definition:
ZDC_SimFiberHit_p1.h:25
ZDC_SimFiberHitCnv_p1::transToPers
virtual void transToPers(const ZDC_SimFiberHit *transObj, ZDC_SimFiberHit_p1 *persObj, MsgStream &log) const
Definition:
ZDC_SimFiberHitCnv_p1.cxx:18
ZDC_SimFiberHitCnv_p1::persToTrans
virtual void persToTrans(const ZDC_SimFiberHit_p1 *persObj, ZDC_SimFiberHit *transObj, MsgStream &log) const
Definition:
ZDC_SimFiberHitCnv_p1.cxx:9
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
ZDC_SimFiberHit_p1::m_ID
Identifier m_ID
Definition:
ZDC_SimFiberHit_p1.h:23
ZDC_SimFiberHit.h
ZDC_SimFiberHit_p1::m_Nphotons
int m_Nphotons
Definition:
ZDC_SimFiberHit_p1.h:24
ZDC_SimFiberHitCnv_p1.h
ZDC_SimFiberHit_p1
Definition:
ZDC_SimFiberHit_p1.h:10
DEBUG
#define DEBUG
Definition:
page_access.h:11
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
ZDC_SimFiberHit::getID
Identifier getID() const
Definition:
ZDC_SimFiberHit.h:44
ZDC_SimFiberHit
Definition:
ZDC_SimFiberHit.h:11
ZDC_SimFiberHit::getEdep
double getEdep() const
Definition:
ZDC_SimFiberHit.h:45
Generated on Sun Dec 22 2024 21:23:02 for ATLAS Offline Software by
1.8.18