File indexing completed on 2025-08-03 08:13:39
0001 #include <GlobalVariables.C>
0002 #include <Trkr_Clustering.C>
0003 #include <Trkr_RecoInit.C> //ACT
0004
0005
0006 #include <fun4all/Fun4AllServer.h>
0007 #include <fun4all/Fun4AllDstInputManager.h>
0008 #include <GlobalVariables.C> //Enable:INTT
0009 #include <phool/recoConsts.h>
0010 #include <dst_read.h>
0011
0012 R__LOAD_LIBRARY(libfun4all.so)
0013 R__LOAD_LIBRARY(libfun4allraw.so)
0014 R__LOAD_LIBRARY(libinttread.so)
0015 R__LOAD_LIBRARY(libdst_read.so)
0016
0017 void DST_READ(const string &input_file = "/sphenix/tg/tg01/commissioning/INTT/data/dst_files/2024/DST_beam_intt-00041651_no_hot_clustering_z_special.root",int nEvents = 0 )
0018 {
0019
0020 gSystem->ListLibraries();
0021 Fun4AllServer *se = Fun4AllServer::instance();
0022 se->Verbosity(0);
0023 recoConsts *rc = recoConsts::instance();
0024
0025 Enable::INTT = true;
0026
0027 Enable::CDB = true;
0028 rc->set_StringFlag("CDB_GLOBALTAG", "ProdA_2023");
0029 rc->set_uint64Flag("TIMESTAMP", 6);
0030 std::string geofile = CDBInterface::instance()->getUrl("Tracking_Geometry");
0031
0032
0033 ACTSGEOM::ActsGeomInit();
0034
0035 Fun4AllDstInputManager *in = new Fun4AllDstInputManager("Dst");
0036 in->fileopen(input_file.c_str());
0037 se->registerInputManager(in);
0038
0039
0040
0041
0042 dst_read *read = new dst_read("dst_read","data/test602_v17_41651_all.root");
0043 se->registerSubsystem(read);
0044
0045
0046 se->run(nEvents);
0047
0048 se->End();
0049 delete se;
0050 gSystem->Exit(0);
0051 return 0;
0052 }
0053
0054