Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:15:03

0001 #pragma once
0002 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
0003 #include <fun4all/SubsysReco.h>
0004 #include <fun4all/Fun4AllServer.h>
0005 #include <fun4all/Fun4AllInputManager.h>
0006 #include <fun4allraw/Fun4AllPrdfInputManager.h>
0007 #include <fun4all/Fun4AllDstInputManager.h>
0008 #include <phool/recoConsts.h>
0009 
0010 
0011 #include <caloreco/CaloTowerBuilder.h>
0012 
0013 #include <ffamodules/FlagHandler.h>
0014 #include <ffamodules/HeadReco.h>
0015 #include <ffamodules/SyncReco.h>
0016 #include <ffamodules/CDBInterface.h>
0017 
0018 #include <templatecreation/TemplateCreation.h>
0019 
0020 #include <fun4all/Fun4AllDstOutputManager.h>
0021 
0022 R__LOAD_LIBRARY(libfun4all.so)
0023 R__LOAD_LIBRARY(libfun4allraw.so)
0024 R__LOAD_LIBRARY(libcalo_reco.so)
0025 R__LOAD_LIBRARY(libffamodules.so)
0026 R__LOAD_LIBRARY(libTemplateCreation.so)
0027 
0028 #endif
0029 
0030 void Fun4All_Templates(const char *fname = "full-00005521-0000.prdf")
0031 {
0032   gSystem->Load("libg4dst");
0033   Fun4AllServer *se = Fun4AllServer::instance();
0034   se->Verbosity(0);
0035   recoConsts *rc = recoConsts::instance();
0036 
0037  //===============
0038   // conditions DB flags
0039   //===============
0040   rc->set_StringFlag("CDB_GLOBALTAG","MDC2");
0041   rc->set_uint64Flag("TIMESTAMP",6);
0042 
0043 
0044 
0045    TemplateCreation *templatecreation = new TemplateCreation();
0046    se->registerSubsystem(templatecreation);
0047 
0048   Fun4AllInputManager *in = new Fun4AllPrdfInputManager("in");
0049   in->fileopen(fname);
0050   se->registerInputManager(in);
0051 
0052 
0053 
0054 
0055   se->skip(10);
0056   se->run(0);
0057   se->End();
0058   se->PrintTimer();
0059   gSystem->Exit(0);
0060 }