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
TemplateCreation.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TemplateCreation.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef TEMPLATECREATION_H
4
#define TEMPLATECREATION_H
5
6
#include <
fun4all/SubsysReco.h
>
7
8
#include <string>
9
10
class
PHCompositeNode
;
11
class
TProfile;
12
class
TH2D;
13
class
TemplateCreation
:
public
SubsysReco
14
{
15
public
:
16
17
TemplateCreation
(
const
std::string
&
name
=
"TemplateCreation"
);
18
19
~TemplateCreation
()
override
;
20
21
22
int
Init
(
PHCompositeNode
*topNode)
override
;
23
int
InitRun
(
PHCompositeNode
*topNode)
override
;
24
int
process_event
(
PHCompositeNode
*topNode)
override
;
25
int
ResetEvent
(
PHCompositeNode
*topNode)
override
;
26
int
EndRun
(
const
int
runnumber
)
override
;
27
int
End
(
PHCompositeNode
*topNode)
override
;
28
int
Reset
(
PHCompositeNode
*
/*topNode*/
)
override
;
29
30
void
set_outfile
(
std::string
outfilename)
31
{
32
s_outfilename
= outfilename;
33
}
34
void
set_nsamples
(
int
samples)
35
{
36
nsamples
= samples;
37
}
38
39
void
set_packetrange
(
int
lowpacket,
int
highpacket)
40
{
41
m_packet_low
= lowpacket;
42
m_packet_high
= highpacket;
43
}
44
45
46
47
private
:
48
double
rising_shape
(
double
*
x
,
double
*par);
49
std::string
s_outfilename
;
50
TProfile *
hp_all_particle_fine
;
51
TH2D *
h2_all_particle_fine
;
52
int
nsamples
;
53
int
m_packet_low
;
54
int
m_packet_high
;
55
int
m_nchannels
;
56
double
target_hm
;
57
int
binscale
= 8;
58
59
60
};
61
62
#endif // TEMPLATECREATION_H
analysis
blob
master
TemplateCreation
src
TemplateCreation.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:57
using
1.8.2 with
sPHENIX GitHub integration