ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
LArCalorimeter
LArCnv
LArSimEventTPCnv
src
LArHitCnv_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/LArHit.h
"
6
#include "Identifier/Identifier.h"
7
8
#include "
LArSimEventTPCnv/LArHit_p1.h
"
9
#include "
LArSimEventTPCnv/LArHitCnv_p1.h
"
10
11
12
void
13
LArHitCnv_p1::persToTrans
(
const
LArHit_p1
* persObj,
LArHit
* transObj, MsgStream &
log
)
14
{
15
log
<<
MSG::DEBUG
<<
"LArHitCnv_p1::persToTrans called "
<<
endmsg
;
16
17
*transObj =
LArHit
(
Identifier
(persObj->
m_channelID
),
18
(
double
) persObj->
m_energy
,
19
persObj->
m_energy
!= 0 ? (
double
) persObj->
m_time
/persObj->
m_energy
: 0);
20
}
21
22
23
void
24
LArHitCnv_p1::transToPers
(
const
LArHit
* transObj,
LArHit_p1
* persObj, MsgStream &
log
)
25
{
26
log
<<
MSG::DEBUG
<<
"LArHitCnv_p1::transToPers called "
<<
endmsg
;
27
persObj->
m_channelID
= transObj->
cellID
().
get_identifier32
().
get_compact
();
28
persObj->
m_energy
= (
float
) transObj->
energy
();
29
persObj->
m_time
= (
float
) transObj->
time
();
30
}
31
32
LArHitCnv_p1::transToPers
virtual void transToPers(const LArHit *transObj, LArHit_p1 *persObj, MsgStream &log)
Definition:
LArHitCnv_p1.cxx:24
LArHit_p1::m_time
float m_time
Definition:
LArHit_p1.h:31
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
LArHit::energy
double energy() const
Definition:
LArHit.h:113
LArHit_p1
Persistent LArHit class, version p1.
Definition:
LArHit_p1.h:13
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition:
Identifier32.h:44
LArHitCnv_p1.h
LArHitCnv_p1::persToTrans
virtual void persToTrans(const LArHit_p1 *persObj, LArHit *transObj, MsgStream &log)
Definition:
LArHitCnv_p1.cxx:13
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
LArHit::time
double time() const
Definition:
LArHit.h:118
LArHit_p1::m_channelID
unsigned int m_channelID
identifier of the cell in which this hit occured.
Definition:
LArHit_p1.h:25
LArHit::cellID
Identifier cellID() const
Definition:
LArHit.h:108
LArHit
Class to store hit energy and time in LAr cell from G4 simulation.
Definition:
LArHit.h:25
LArHit_p1::m_energy
float m_energy
energy (in MeV) deposited in this hit
Definition:
LArHit_p1.h:28
LArHit.h
DEBUG
#define DEBUG
Definition:
page_access.h:11
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
LArHit_p1.h
python.LArMinBiasAlgConfig.float
float
Definition:
LArMinBiasAlgConfig.py:65
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Tue May 13 2025 21:12:58 for ATLAS Offline Software by
1.8.18