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
rundata.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file rundata.C
1
#include <
GlobalVariables.C
>
2
3
#include <
fun4all/SubsysReco.h
>
4
#include <
fun4all/Fun4AllServer.h
>
5
#include <
fun4all/Fun4AllInputManager.h
>
6
#include <
fun4allraw/Fun4AllPrdfInputManager.h
>
7
8
#include <caloreco/CaloTowerBuilder.h>
9
10
#include <
ffamodules/CDBInterface.h
>
11
#include <
ffamodules/FlagHandler.h
>
12
#include <
ffamodules/HeadReco.h
>
13
#include <
ffamodules/SyncReco.h
>
14
15
#include <
phool/recoConsts.h
>
16
17
#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/EventMix/ana_calo/install/include/sphanalysis_calo/sPHAnalysis_calo.h>
18
19
R__LOAD_LIBRARY(libfun4allraw.so)
20
R__LOAD_LIBRARY(libffamodules.so)
21
R__LOAD_LIBRARY(libcalo_reco.so)
22
R__LOAD_LIBRARY(libsphanalysis_calo.so)
23
24
void
rundata
()
25
{
26
27
Fun4AllServer
*se =
Fun4AllServer::instance
();
28
se->
Verbosity
(0);
29
30
recoConsts
*rc =
recoConsts::instance
();
31
32
SyncReco
*sync =
new
SyncReco
();
33
se->
registerSubsystem
(sync);
34
35
HeadReco
*head =
new
HeadReco
();
36
se->
registerSubsystem
(head);
37
38
FlagHandler
*flag =
new
FlagHandler
();
39
se->
registerSubsystem
(flag);
40
41
Enable::CDB
=
true
;
42
rc->
set_StringFlag
(
"CDB_GLOBALTAG"
,
CDB::global_tag
);
43
rc->
set_uint64Flag
(
"TIMESTAMP"
,
CDB::timestamp
);
44
45
CaloTowerBuilder
*calo =
new
CaloTowerBuilder
();
46
calo->
set_detector_type
(
CaloTowerBuilder::CEMC
);
47
calo->
set_nsamples
(31);
48
calo->
set_processing_type
(
CaloWaveformProcessing::TEMPLATE
);
49
se->
registerSubsystem
(calo);
50
51
sPHAnalysis_calo
*ana =
new
sPHAnalysis_calo
(
"sPHAnalysis"
,
"test.root"
);
52
ana->
set_whattodo
(1);
53
se->
registerSubsystem
(ana);
54
55
Fun4AllInputManager
*
in
=
new
Fun4AllPrdfInputManager
(
"in"
);
56
se->
registerInputManager
(in);
57
//in->AddListFile("pythiajpsi_list9.txt");
58
//in->AddFile("/sphenix/lustre01/sphnxpro/commissioning/emcal/calib/calib_seb07-00007202-0000.prdf");
59
in->
AddFile
(
"/gpfs/mnt/gpfs02/sphenix/user/trinn/comissioning_data_production/full-00009111-0000.prdf"
);
60
61
se->
run
(10);
62
se->
End
();
63
}
64
analysis
blob
master
EventMix
ana_calo
work
rundata.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:51
using
1.8.2 with
sPHENIX GitHub integration