forked from sPHENIX-Collaboration/coresoftware
/
PHG4HitEval.h
95 lines (74 loc) · 1.4 KB
/
PHG4HitEval.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// Tell emacs that this is a C++ source
// -*- C++ -*-.
// $Id: $
/*!
* \file PHG4HitEval.h
* \brief
* \author Jin Huang <jhuang@bnl.gov>
* \version $Revision: $
* \date $Date: $
*/
#ifndef G4MAIN_PHG4HITEVAL_H
#define G4MAIN_PHG4HITEVAL_H
#include "PHG4Hitv1.h"
class PHG4Hit;
class PHObject;
/*!
* \brief PHG4HitEval for evaluating PHG4Hitv1 in CINT readable evaluation trees
*/
class PHG4HitEval : public PHG4Hitv1
{
public:
PHG4HitEval();
PHG4HitEval(const PHG4Hit *g4hit);
~PHG4HitEval() override {}
void CopyFrom(const PHObject *phobj) override;
float
get_eion() const override
{
return eion;
}
void
set_eion(const float f) override
{
eion = f;
}
int get_scint_id() const override
{
return scint_id;
}
void
set_scint_id(const int i) override
{
scint_id = i;
}
float
get_light_yield() const override
{
return light_yield;
}
void
set_light_yield(float lightYield) override
{
light_yield = lightYield;
}
float
get_path_length() const override
{
return path_length;
}
void
set_path_length(float pathLength) override
{
path_length = pathLength;
}
protected:
float eion;
int scint_id;
//! a number proportional to the scintillation light yield.
float light_yield;
//! path length of the track to the hit
float path_length;
ClassDefOverride(PHG4HitEval, 1)
};
#endif /* PHG4HITEVAL_H_ */