ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCnv
LArSimEventTPCnv
src
LArHitFloatCnv_p1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArSimEvent/LArHitFloat.h
"
6
#include "Identifier/Identifier.h"
7
#include "
LArSimEventTPCnv/LArHit_p1.h
"
8
#include "
LArSimEventTPCnv/LArHitFloatCnv_p1.h
"
9
10
11
void
12
LArHitFloatCnv_p1::persToTrans
(
const
LArHit_p1
* persObj,
LArHitFloat
* transObj, MsgStream &log)
13
{
14
log << MSG::DEBUG <<
"LArHitFloatCnv_p1::persToTrans called "
<<
endmsg
;
15
16
*transObj =
LArHitFloat
(
Identifier
(persObj->
m_channelID
),
17
persObj->
m_energy
,
18
persObj->
m_time
);
19
}
20
21
22
void
23
LArHitFloatCnv_p1::transToPers
(
const
LArHitFloat
* transObj,
LArHit_p1
* persObj, MsgStream &log)
24
{
25
log << MSG::DEBUG <<
"LArHitFloatCnv_p1::transToPers called "
<<
endmsg
;
26
persObj->
m_channelID
= transObj->
cellID
().
get_identifier32
().
get_compact
();
27
persObj->
m_energy
= transObj->
energy
();
28
persObj->
m_time
= transObj->
time
();
29
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
LArHitFloatCnv_p1.h
LArHitFloat.h
LArHit_p1.h
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition
Identifier32.h:47
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
LArHitFloatCnv_p1::persToTrans
virtual void persToTrans(const LArHit_p1 *persObj, LArHitFloat *transObj, MsgStream &log)
Definition
LArHitFloatCnv_p1.cxx:12
LArHitFloatCnv_p1::transToPers
virtual void transToPers(const LArHitFloat *transObj, LArHit_p1 *persObj, MsgStream &log)
Definition
LArHitFloatCnv_p1.cxx:23
LArHitFloat
Class to store hit energy and time in LAr cell from G4 simulation.
Definition
LArHitFloat.h:18
LArHitFloat::energy
float energy() const
Definition
LArHitFloat.h:91
LArHitFloat::cellID
Identifier cellID() const
Definition
LArHitFloat.h:86
LArHitFloat::time
float time() const
Definition
LArHitFloat.h:96
LArHit_p1
Persistent LArHit class, version p1.
Definition
LArHit_p1.h:13
LArHit_p1::m_time
float m_time
Definition
LArHit_p1.h:31
LArHit_p1::m_channelID
unsigned int m_channelID
identifier of the cell in which this hit occured.
Definition
LArHit_p1.h:25
LArHit_p1::m_energy
float m_energy
energy (in MeV) deposited in this hit
Definition
LArHit_p1.h:28
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0