Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_CaloProduction.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_CaloProduction.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3 #include <fun4all/SubsysReco.h>
8 #include <phool/recoConsts.h>
9 
10 #include <caloreco/CaloTowerBuilder.h>
11 #include <caloreco/CaloWaveformProcessing.h>
12 
13 #include <ffamodules/FlagHandler.h>
14 #include <ffamodules/HeadReco.h>
15 #include <ffamodules/SyncReco.h>
17 
19 
20 R__LOAD_LIBRARY(libfun4all.so)
21 R__LOAD_LIBRARY(libfun4allraw.so)
22 R__LOAD_LIBRARY(libcalo_reco.so)
23 R__LOAD_LIBRARY(libffamodules.so)
24 
25 #endif
26 void Fun4All_CaloProduction(const char *fname = "/gpfs/mnt/gpfs02/sphenix/user/trinn/combined_event_prdfs/calib-00007377-0000.prdf", const char *outfile = "testfile.root", int nskip = 0, int nevents = 0)
27 {
29  se->Verbosity(0);
31 
32  //===============
33  // conditions DB flags
34  //===============
35  // ENABLE::CDB = true;
36  // global tag
37  rc->set_StringFlag("CDB_GLOBALTAG","MDC2");
38  rc->set_uint64Flag("TIMESTAMP",6);
39 
42  ca->set_nsamples(31);
44  se->registerSubsystem(ca);
45 
48  ca1->set_nsamples(31);
50  se->registerSubsystem(ca1);
51 
54  ca2->set_nsamples(31);
56  se->registerSubsystem(ca2);
57 
59  in->fileopen(fname);
60  se->registerInputManager(in);
61 
63  se->registerOutputManager(out);
64 
65 
66  se->skip(nskip);
67  se->run(nevents);
68  se->End();
69  se->PrintTimer();
70  gSystem->Exit(0);
71 }