Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4FullProjSpacalCellReco.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4FullProjSpacalCellReco.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4FULLPROJSPACALCELLRECO_H
4
#define G4DETECTORS_PHG4FULLPROJSPACALCELLRECO_H
5
6
#include "
LightCollectionModel.h
"
7
8
#include <phparameter/PHParameterInterface.h>
9
10
#include <
fun4all/SubsysReco.h
>
11
12
#include <cmath>
13
#include <map>
14
#include <string>
15
16
class
LightCollectionModel
;
17
class
PHCompositeNode
;
18
class
PHG4Cell
;
19
class
TH2;
20
class
TH1;
21
22
class
PHG4FullProjSpacalCellReco
:
public
SubsysReco
,
public
PHParameterInterface
23
{
24
public
:
25
PHG4FullProjSpacalCellReco
(
const
std::string
&
name
=
"SPACALCELLRECO"
);
26
27
~PHG4FullProjSpacalCellReco
()
override
{}
28
30
int
InitRun
(
PHCompositeNode
*topNode)
override
;
31
33
int
process_event
(
PHCompositeNode
*topNode)
override
;
34
36
int
ResetEvent
(
PHCompositeNode
*topNode)
override
;
37
38
void
SetDefaultParameters
()
override
;
39
40
void
Detector
(
const
std::string
&d) {
detector
= d; }
41
42
void
checkenergy
(
const
int
i
= 1) {
chkenergyconservation
=
i
; }
43
44
void
set_timing_window
(
const
double
tmin
,
const
double
tmax
);
45
46
47
LightCollectionModel
&
get_light_collection_model
() {
return
light_collection_model
; }
48
49
protected
:
50
int
CheckEnergy
(
PHCompositeNode
*topNode);
51
52
std::string
detector
;
53
std::string
hitnodename
;
54
std::string
cellnodename
;
55
std::string
geonodename
;
56
std::string
seggeonodename
;
57
58
double
sum_energy_g4hit
= 0;
59
int
chkenergyconservation
= 0;
60
std::map<unsigned int, PHG4Cell *>
celllist
;
61
63
double
tmin
= NAN;
64
double
tmax
= NAN;
65
double
m_DeltaT
= NAN;
66
LightCollectionModel
light_collection_model
;
67
};
68
69
#endif
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4FullProjSpacalCellReco.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:12
using
1.8.2 with
sPHENIX GitHub integration