29 #include <trackingdiagnostics/TrackResiduals.h>
30 #include <trackingdiagnostics/TrkrNtuplizer.h>
34 R__LOAD_LIBRARY(libfun4all.so)
35 R__LOAD_LIBRARY(libffamodules.so)
36 R__LOAD_LIBRARY(libmvtx.so)
37 R__LOAD_LIBRARY(libintt.so)
38 R__LOAD_LIBRARY(libtpc.so)
39 R__LOAD_LIBRARY(libmicromegas.so)
40 R__LOAD_LIBRARY(libTrackingDiagnostics.so)
43 const std::
string filename = "cosmics-00025926-0005.
root",
44 const std::
string outfilename = "cosmics",
45 const std::
string dir = "/sphenix/lustre01/sphnxpro/commissioning/aligned_streaming_all_3/")
48 auto pos = filename.find(
"0002");
55 rc->set_IntFlag(
"RUNNUMBER", runnumber);
58 rc->set_StringFlag(
"CDB_GLOBALTAG",
"ProdA_2023");
59 rc->set_uint64Flag(
"TIMESTAMP", 6);
64 se->registerInputManager(ingeo);
71 hitsin->fileopen(inputRawHitFile);
72 se->registerInputManager(hitsin);
75 se->registerSubsystem(mvtxunpacker);
79 se->registerSubsystem(inttunpacker);
82 se->registerSubsystem(tpcunpacker);
87 tpotunpacker->set_calibration_file(calibrationFile);
88 se->registerSubsystem(tpotunpacker);
96 tpcclusterizer->set_rawdata_reco();
97 se->registerSubsystem(tpcclusterizer);
104 TString ntupoutfile = outfilename + filename +
"_ntup.root";
108 ntp->do_hit_eval(
true);
109 ntp->do_cluster_eval(
true);
110 ntp->do_track_eval(
true);
111 ntp->do_siseed_eval(
true);
112 ntp->do_tpcseed_eval(
true);
113 ntp->do_clus_trk_eval(
true);
114 ntp->do_vertex_eval(
false);
115 ntp->set_trkclus_seed_container(
"SvtxTrackSeedContainer");
117 ntp->do_info_eval(
false);
118 se->registerSubsystem(ntp);
120 TString residoutfile = outfilename + filename +
"_resid.root";
124 resid->outfileName(residstring);
125 resid->alignment(
false);
126 resid->clusterTree();
129 se->registerSubsystem(resid);
139 std::cout <<
"Finished" << std::endl;