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
runanajpsi.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file runanajpsi.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
runanajpsi
()
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,
"pions3.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("pions_short.txt");
41
in->
AddFile
(
"/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000004-00295.root"
);
42
43
// for(int i=0; i<10; i++) {
44
// sprintf(infilename,"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-0%d.root",kkk+i);
45
// cout << "in: " << infilename << endl;
46
// in->AddFile(infilename);
47
// }
48
49
se->
run
();
50
se->
End
();
51
}
52
analysis
blob
master
EventMix
ana
work
runanajpsi.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:51
using
1.8.2 with
sPHENIX GitHub integration