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
runanaK.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file runanaK.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 </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/sphanalysis/sPHAnalysis.h>
9
#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPair.h>
10
#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPairv1.h>
11
#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPairContainer.h>
12
#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPairContainerv1.h>
13
14
R__LOAD_LIBRARY(libfun4all.so)
15
R__LOAD_LIBRARY(libeventmix.so)
16
R__LOAD_LIBRARY(libsphanalysis.so)
17
#endif
18
19
void
runanaK
()
20
{
21
gSystem->Load(
"libg4dst"
);
22
gSystem->Load(
"libeventmix"
);
23
gSystem->Load(
"libsphanalysis"
);
24
25
char
outfilename[99];
26
char
infilename[99];
27
//sprintf(outfilename,"/sphenix/user/lebedev/mdc/embedmb_withpileup_bb.root");
28
sprintf(outfilename,
"kaons_test.root"
);
29
cout <<
"output file: "
<< outfilename << endl;
30
31
Fun4AllServer
*se =
Fun4AllServer::instance
();
32
sPHAnalysis
*ana =
new
sPHAnalysis
(
"sPHAnalysis"
,outfilename);
33
ana->
set_whattodo
(1);
34
se->
registerSubsystem
(ana);
35
36
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"in"
);
37
//in->fileopen(fname);
38
se->
registerInputManager
(in);
39
//in->AddListFile("pions3.txt");
40
in->
AddListFile
(
"kaons.txt"
);
41
//in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedelectronsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000002-00009.root");
42
//in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedkaonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000004-00596.root");
43
44
// for(int i=0; i<10; i++) {
45
// sprintf(infilename,"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-0%d.root",kkk+i);
46
// cout << "in: " << infilename << endl;
47
// in->AddFile(infilename);
48
// }
49
50
se->
run
();
51
se->
End
();
52
}
53
analysis
blob
master
EventMix
ana
work
runanaK.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:51
using
1.8.2 with
sPHENIX GitHub integration