File indexing completed on 2025-08-05 08:12:40
0001 #pragma once
0002 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
0003
0004 #include <Detinfo.h>
0005
0006 #include <fun4all/SubsysReco.h>
0007 #include <fun4all/Fun4AllServer.h>
0008 #include <fun4all/Fun4AllInputManager.h>
0009 #include <fun4all/Fun4AllDstInputManager.h>
0010
0011 #include <fun4all/Fun4AllDstOutputManager.h>
0012 #include <fun4all/Fun4AllOutputManager.h>
0013 #include <fun4all/Fun4AllServer.h>
0014
0015 #include <phool/PHRandomSeed.h>
0016 #include <phool/recoConsts.h>
0017
0018 R__LOAD_LIBRARY(libfun4all.so)
0019 R__LOAD_LIBRARY(libDetinfo.so)
0020
0021
0022 #endif
0023
0024 void Fun4All_calo(int nevents = 1e0)
0025 {
0026 Fun4AllServer *se = Fun4AllServer::instance();
0027 recoConsts *rc = recoConsts::instance();
0028
0029 gSystem->Load("libDetinfo.so.0.0.0");
0030 Detinfo *detana = new Detinfo();
0031 detana->set_filename("calotowerinfo.root");
0032 se->registerSubsystem(detana);
0033
0034 Fun4AllInputManager *in = new Fun4AllDstInputManager("DSTcalo");
0035
0036 in->AddFile("/sphenix/lustre01/sphnxpro/commissioning/slurp/caloy2test/run_00042200_00042300/DST_CALO_run2pp_new_2024p001-00042297-0070.root");
0037
0038 se->registerInputManager(in);
0039
0040 se->run(nevents);
0041 se->End();
0042 se->PrintTimer();
0043 gSystem->Exit(0);
0044
0045 return 0;
0046 }