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
Proto4SampleFrac.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Proto4SampleFrac.h
1
#ifndef __Proto4SampleFrac_H__
2
#define __Proto4SampleFrac_H__
3
4
#include <TFile.h>
5
#include <TNtuple.h>
6
#include <
fun4all/SubsysReco.h
>
7
#include <stdint.h>
8
#include <fstream>
9
#include <string>
10
11
class
PHCompositeNode
;
12
class
PHG4HitContainer
;
13
class
PHG4TruthInfoContainer
;
14
class
Fun4AllHistoManager
;
15
class
TH1F;
16
class
TH2F;
17
class
TH3F;
18
class
TTree;
19
class
PHG4Particle
;
20
class
RawTowerGeom
;
21
class
RawTowerContainer
;
22
24
class
Proto4SampleFrac
:
public
SubsysReco
25
{
26
public
:
28
Proto4SampleFrac
(
const
std::string
&calo_name,
const
std::string
&
filename
);
29
31
virtual
~Proto4SampleFrac
();
32
34
int
Init
(
PHCompositeNode
*topNode);
35
37
int
InitRun
(
PHCompositeNode
*topNode);
38
40
int
process_event
(
PHCompositeNode
*topNode);
41
43
int
End
(
PHCompositeNode
*topNode);
44
46
void
47
is_sim
(
bool
b
)
48
{
49
_is_sim
=
b
;
50
}
51
53
std::string
get_histo_prefix
();
54
55
private
:
56
// calorimeter size
57
enum
58
{
59
n_size
= 8
60
};
61
63
bool
_is_sim
;
64
66
Fun4AllHistoManager
*
get_HistoManager
();
67
68
std::pair<int, int>
69
find_max
(
RawTowerContainer
*towers,
int
cluster_size);
70
72
std::string
_filename
;
73
std::string
_calo_name
;
74
75
PHG4HitContainer
*
_calo_hit_container
;
// G4Hit for calorimeter
76
PHG4HitContainer
*
_calo_abs_hit_container
;
// G4Hit for absorber
77
PHG4TruthInfoContainer
*
_truth_container
;
78
};
79
80
#endif // __Proto4SampleFrac_H__
analysis
blob
master
Prototype4
HCal
SampleFrac
Proto4SampleFrac.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:56
using
1.8.2 with
sPHENIX GitHub integration