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
Calib.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Calib.h
1
2
3
#ifndef __Calib_H__
4
#define __Calib_H__
5
6
#include <
fun4all/SubsysReco.h
>
7
#include <string>
8
#include <vector>
9
10
11
12
//Forward declerations
13
class
PHCompositeNode
;
14
class
TFile;
15
class
TTree;
16
class
RawTowerContainer
;
17
class
RawTowerGeomContainer
;
18
class
TProfile2D;
19
20
// towers
21
RawTowerContainer
*
_ohcal_towers_o
;
22
23
24
25
//tower geom
26
RawTowerGeomContainer
*
_ohcal_towergeom
;
27
28
29
30
31
//Brief: basic ntuple and histogram creation for sim evaluation
32
class
Calib
:
public
SubsysReco
33
{
34
public
:
35
//Default constructor
36
Calib
(
const
std::string
&
name
=
"Calib"
);
37
38
//Initialization, called for initialization
39
int
Init
(
PHCompositeNode
*);
40
41
int
InitRun
(
PHCompositeNode
*);
42
43
//Process Event, called for each event
44
int
process_event
(
PHCompositeNode
*);
45
46
//End, write and close files
47
int
EndRun
(
PHCompositeNode
*);
48
int
End
(
PHCompositeNode
*);
49
50
//Change output filename
51
void
set_filename
(
const
char
*
file
)
52
{
if
(file)
_outfile_name
=
file
; }
53
54
private
:
55
//output filename
56
std::string
_outfile_name
;
57
58
//Event counter
59
int
_event
;
60
61
float
_oCalib_ohcal
;
62
63
//User modules
64
void
fill_tree
(
PHCompositeNode
*);
65
66
//Get all the nodes
67
int
GetNodes
(
PHCompositeNode
*);
68
69
TProfile2D *
hprof2d
;
70
71
//TTrees
72
TTree*
_event_tree
;
73
74
75
76
};
77
78
#endif //* __Calib_H__ *//
tutorials
blob
master
sPHENIX_sims
Calib.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:49
using
1.8.2 with
sPHENIX GitHub integration