Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Trkr_Diagnostics.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Trkr_Diagnostics.C
1 #ifndef MACRO_TRKRDIAGNOSTICS_C
2 #define MACRO_TRKRDIAGNOSTICS_C
3 
4 R__LOAD_LIBRARY(libTrackingDiagnostics.so)
5 
6 #include <Trkr_RecoInit.C>
7 
8 #include <trackingdiagnostics/KshortReconstruction.h>
9 #include <trackingdiagnostics/helixResiduals.h>
10 
11 #include <fun4all/Fun4AllServer.h>
12 
13 
14 
15 void G4KshortReconstruction(const std::string outputfile)
16 {
19  ksr->set_output_file(outputfile);
20  se->registerSubsystem(ksr);
21 }
22 
23 void seedResiduals(const std::string outputfile)
24 {
26 
28  {
29  std::cout<< "Micromegas not enabled"<<std::endl;
30  return;
31  }
32 
33  TrackingInit();
34 
35  helixResiduals *eval = new helixResiduals("eval_residuals");
36  eval->set_output_file(outputfile);
37  se->registerSubsystem(eval);
38 
39 }
40 
41 void Tracking_Diagnostics(const std::string outputfile)
42 {
43  G4KshortReconstruction(outputfile);
44  seedResiduals(outputfile);
45 }
46 #endif