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
HitCountEval.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file HitCountEval.h
1
18
#ifndef __HitCountEval_H__
19
#define __HitCountEval_H__
20
21
#include <string>
22
#include <TTree.h>
23
#include <TH1F.h>
24
#include <
phool/PHCompositeNode.h
>
25
#include <
g4main/PHG4HitContainer.h
>
26
#include <
g4main/PHG4TruthInfoContainer.h
>
27
#include <
fun4all/SubsysReco.h
>
28
29
#define NHITCONTAINERS 10
30
31
#define NELEMS(a) (sizeof(a)/sizeof(a[0]))
32
class
HitCountEval
:
public
SubsysReco
33
{
34
public
:
35
HitCountEval
(
const
std::string
&
name
=
"HitCountEval"
,
36
const
std::string
&file_name =
"g4eval.root"
);
37
int
Init
(
PHCompositeNode
*
const
);
38
int
process_event
(
PHCompositeNode
*
const
);
39
int
End
(
PHCompositeNode
*
const
);
40
void
set_filename
(
const
char
*
const
file
);
41
private
:
42
std::string
output_file_name
;
43
44
unsigned
event
;
45
static
const
char
*
const
hit_containers
[
NHITCONTAINERS
];
46
47
TTree *
hits
[
NELEMS
(
HitCountEval::hit_containers
)];
48
TTree *
normalized_hits
[
NELEMS
(
HitCountEval::hit_containers
)];
49
TH1F *
hit_count
[
NELEMS
(
HitCountEval::hit_containers
)];
50
TH1F *
eta_count
[
NELEMS
(
HitCountEval::hit_containers
)];
51
52
/* For Trees */
53
Float_t
hit_x
;
54
Float_t
hit_y
;
55
Float_t
hit_z
;
56
Float_t
hit_px
;
57
Float_t
hit_py
;
58
Float_t
hit_pz
;
59
Float_t
particle_initial_px
;
60
Float_t
particle_initial_py
;
61
Float_t
particle_initial_pz
;
62
63
Int_t
hit_id
;
64
Int_t
hit_layer
;
65
Int_t
hit_event
;
66
67
Double_t
normalized_hit_eta
;
68
Double_t
normalized_hit_count
;
69
};
70
71
#endif //* __HitCountEval_H__ *//
analysis
blob
master
Tracking
HitCountEval
HitCountEval.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:58
using
1.8.2 with
sPHENIX GitHub integration