Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:13:10

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 <fun4all/Fun4AllDstInputManager.h>
0007 
0008 #include <fun4all/Fun4AllDstOutputManager.h>
0009 #include <fun4all/Fun4AllOutputManager.h>
0010 #include <fun4all/Fun4AllServer.h>
0011 
0012 #include <phool/PHRandomSeed.h>
0013 #include <phool/recoConsts.h>
0014 
0015 #include <calotreegen/caloTreeGen.h>
0016 
0017 R__LOAD_LIBRARY(libfun4all.so)
0018 R__LOAD_LIBRARY(libcaloTreeGen.so)
0019 #endif
0020 
0021 void Fun4All_CaloTreeGen(const int nEvents = 0, const char *listFile = "fileList_withGeo_timingCut_Template.list", const char *inName = "commissioning.root")
0022 {
0023   Fun4AllServer *se = Fun4AllServer::instance();
0024   recoConsts *rc = recoConsts::instance();
0025 
0026   caloTreeGen *calo = new caloTreeGen(inName);
0027   calo -> setClusters(1);
0028   calo -> setFineClusters(1);
0029   se->registerSubsystem(calo);
0030 
0031   Fun4AllInputManager *in = new Fun4AllDstInputManager("DSTcalo");
0032   in->AddListFile(listFile);
0033   
0034 
0035   se->registerInputManager(in);
0036 
0037   se->run(nEvents);
0038   se->End();
0039   se->PrintTimer();
0040   std::cout << "All done!" << std::endl;
0041 
0042   gSystem->Exit(0);
0043 }