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
Fun4All_hijbkg.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_hijbkg.C
1
#pragma once
2
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3
#include <
fun4all/SubsysReco.h
>
4
#include <
fun4all/Fun4AllServer.h
>
5
#include <
fun4all/Fun4AllInputManager.h
>
6
#include <
fun4all/Fun4AllDstInputManager.h
>
7
8
#include <
fun4all/Fun4AllDstOutputManager.h
>
9
#include <
fun4all/Fun4AllOutputManager.h
>
10
#include <
fun4all/Fun4AllServer.h
>
11
12
#include <
phool/PHRandomSeed.h
>
13
#include <
phool/recoConsts.h
>
14
15
16
#include "upc/hijbkg_upc.h"
17
18
R__LOAD_LIBRARY(libfun4all.so)
19
R__LOAD_LIBRARY(libhbcup.so)
20
21
#endif
22
23
24
void
Fun4All_hijbkg
(
int
nEvents
= 0,
const
char
*dst_fname =
"DST_TRUTH_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000006-00000.root"
,
const
string
sysName =
"HIJBKG"
)
25
{
26
27
gSystem->Load(
"libg4dst"
);
28
29
30
Fun4AllServer
*se =
Fun4AllServer::instance
();
31
int
verbosity
= 0;
32
33
se->
Verbosity
(verbosity);
34
recoConsts
*rc =
recoConsts::instance
();
35
//rc->set_IntFlag("RUNNUMBER",62);
36
37
hijbkg_upc
*hijbkg =
new
hijbkg_upc
(sysName);
38
se -> registerSubsystem(hijbkg);
39
40
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"DST_MDC2"
);
41
//in->AddListFile(filelist1,1);
42
in->
AddFile
( dst_fname );
43
44
se->
registerInputManager
( in );
45
se->
run
(
nEvents
);
46
se->
End
();
47
std::cout <<
"All done!"
<< endl;
48
gSystem->Exit( 0 );
49
50
}
analysis
blob
master
hbcup
macro
Fun4All_hijbkg.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:52
using
1.8.2 with
sPHENIX GitHub integration