Analysis Software
Documentation for sPHENIX simulation software
 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>
7 
8 #include <caloreco/CaloTowerBuilder.h>
9 
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 
28  se->Verbosity(0);
29 
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();
47  calo->set_nsamples(31);
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 
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