ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4HitEval.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4HitEval.cc
1
// $Id: $
2
11
#include "
PHG4HitEval.h
"
12
13
#include "
PHG4Hit.h
"
// for PHG4Hit
14
15
#include <
phool/PHObject.h
>
// for PHObject
16
17
#include <cassert>
18
#include <cmath>
19
20
PHG4HitEval::PHG4HitEval
()
21
: eion(NAN)
22
, scint_id(-9999)
23
, light_yield(NAN)
24
, path_length(NAN)
25
26
{
27
// TODO Auto-generated constructor stub
28
}
29
30
PHG4HitEval::PHG4HitEval
(
const
PHG4Hit
*g4hit)
31
: eion(NAN)
32
, scint_id(-9999)
33
, light_yield(NAN)
34
, path_length(NAN)
35
{
36
CopyFrom
(g4hit);
37
}
38
39
void
PHG4HitEval::CopyFrom
(
const
PHObject
*phobj)
40
{
41
const
PHG4Hit
*g4hit =
dynamic_cast<
const
PHG4Hit
*
>
(phobj);
42
assert(g4hit);
43
44
PHG4Hit::CopyFrom
(phobj);
45
46
// fill the branched variables from the property arrays
47
48
eion
= g4hit->
get_eion
();
49
scint_id
= g4hit->
get_scint_id
();
50
light_yield
= g4hit->
get_light_yield
();
51
path_length
= g4hit->
get_path_length
();
52
}
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4HitEval.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:44
using
1.8.2 with
ECCE GitHub integration