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
RunBDiJetModule.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RunBDiJetModule.C
1
2
void
RunBDiJetModule
(
3
const
int
nEvents
= 0,
4
// const char* input = "/phenix/plhf/dcm07e/sPHENIX/bjetsims/dst/pythia8_bjets_10_0.root",
5
// const char* input = "/gpfs/mnt/gpfs04/sphenix/user/shlim/01.Tracking/jobdir_SVReco_all_6th_ana45/DST_PYTHIA_run001874.root",
6
const
char
*
input
=
"/gpfs/mnt/gpfs02/phenix/hhj/hhj3/dcm07e/sPHENIX/macros/macros/g4simulations/G4sPHENIX.root"
,
7
const
char
*
output
=
"test/test.root"
8
)
9
{
10
11
//---------------
12
// Load libraries
13
//---------------
14
15
gSystem->Load(
"libfun4all.so"
);
16
gSystem->Load(
"libg4detectors.so"
);
17
gSystem->Load(
"libphhepmc.so"
);
18
gSystem->Load(
"libg4testbench.so"
);
19
gSystem->Load(
"libg4hough.so"
);
20
gSystem->Load(
"libg4calo.so"
);
21
gSystem->Load(
"libg4eval.so"
);
22
23
gSystem->Load(
"libBDiJetModule.so"
);
24
25
//---------------
26
// Fun4All server
27
//---------------
28
29
Fun4AllServer
*se =
Fun4AllServer::instance
();
30
se->
Verbosity
(0);
31
32
//--------
33
// Modules
34
//--------
35
36
BDiJetModule
*tm =
new
BDiJetModule
(
"BDiJetModule"
,
output
);
37
se->
registerSubsystem
( tm );
38
39
//------
40
// Input
41
//------
42
43
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"DSTin"
);
44
45
TString tstr_input(
input
);
46
if
(tstr_input.EndsWith(
".root"
))
47
in->
AddFile
(
input
);
48
else
49
in->
AddListFile
(
input
);
50
51
se->
registerInputManager
(in);
52
53
//----
54
// Run
55
//----
56
57
se->
run
(
nEvents
);
58
59
//-----
60
// Exit
61
//-----
62
63
se->
End
();
64
std::cout <<
"All done"
<< std::endl;
65
delete
se;
66
gSystem->Exit(0);
67
68
}
analysis
blob
master
HF-Jet
HFDiJetMomImbalance
macros
RunBDiJetModule.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:52
using
1.8.2 with
sPHENIX GitHub integration