Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_Templates.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_Templates.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 
11 #include <caloreco/CaloTowerBuilder.h>
12 
13 #include <ffamodules/FlagHandler.h>
14 #include <ffamodules/HeadReco.h>
15 #include <ffamodules/SyncReco.h>
17 
18 #include <templatecreation/TemplateCreation.h>
19 
21 
22 R__LOAD_LIBRARY(libfun4all.so)
23 R__LOAD_LIBRARY(libfun4allraw.so)
24 R__LOAD_LIBRARY(libcalo_reco.so)
25 R__LOAD_LIBRARY(libffamodules.so)
26 R__LOAD_LIBRARY(libTemplateCreation.so)
27 
28 #endif
29 
30 void Fun4All_Templates(const char *fname = "full-00005521-0000.prdf")
31 {
32  gSystem->Load("libg4dst");
34  se->Verbosity(0);
36 
37  //===============
38  // conditions DB flags
39  //===============
40  rc->set_StringFlag("CDB_GLOBALTAG","MDC2");
41  rc->set_uint64Flag("TIMESTAMP",6);
42 
43 
44 
45  TemplateCreation *templatecreation = new TemplateCreation();
46  se->registerSubsystem(templatecreation);
47 
49  in->fileopen(fname);
50  se->registerInputManager(in);
51 
52 
53 
54 
55  se->skip(10);
56  se->run(0);
57  se->End();
58  se->PrintTimer();
59  gSystem->Exit(0);
60 }