9 #ifndef FUN4ALL_RUNCORRELATORQAMODULES_C
10 #define FUN4ALL_RUNCORRELATORQAMODULES_C
19 #include <G4_Magnet.C>
33 #include <caloreco/RawClusterBuilderTopo.h>
34 #include <particleflowreco/ParticleFlowReco.h>
36 #include "/sphenix/user/danderson/eec/SCorrelatorQAMaker/src/SCorrelatorQAMaker.h"
37 #include "/sphenix/user/danderson/eec/SCorrelatorQAMaker/src/SCheckTrackPairs.h"
38 #include "/sphenix/user/danderson/eec/SCorrelatorQAMaker/src/SMakeTrkQATuples.h"
39 #include "/sphenix/user/danderson/eec/SCorrelatorUtilities/TrkTools.h"
42 using namespace SColdQcdCorrelatorAnalysis;
43 using namespace SColdQcdCorrelatorAnalysis::SCorrelatorUtilities;
46 R__LOAD_LIBRARY(libg4eval.so)
47 R__LOAD_LIBRARY(libfun4all.so)
48 R__LOAD_LIBRARY(libcalo_reco.so)
49 R__LOAD_LIBRARY(libparticleflow.so)
50 R__LOAD_LIBRARY(/sphenix/user/danderson/install/lib/libcorrelatorqamaker.so)
54 "DST_GLOBAL_pythia8_Jet10_sHijing_pAu_0_10fm_500kHz_bkg_0_10fm-0000000009-00009.root",
55 "DST_TRKR_G4HIT_pythia8_Jet10_sHijing_pAu_0_10fm_500kHz_bkg_0_10fm-0000000009-00009.root",
56 "DST_TRACKSEEDS_pythia8_Jet10_sHijing_pAu_0_10fm_500kHz_bkg_0_10fm-0000000009-00009.root",
57 "DST_TRKR_CLUSTER_pythia8_Jet10_sHijing_pAu_0_10fm_500kHz_bkg_0_10fm-0000000009-00009.root",
58 "DST_TRACKS_pythia8_Jet10_sHijing_pAu_0_10fm_500kHz_bkg_0_10fm-0000000009-00009.root",
59 "DST_CALO_G4HIT_pythia8_Jet10_sHijing_pAu_0_10fm_500kHz_bkg_0_10fm-0000000009-00009.root",
60 "DST_CALO_CLUSTER_pythia8_Jet10_sHijing_pAu_0_10fm_500kHz_bkg_0_10fm-0000000009-00009.root",
61 "DST_TRUTH_G4HIT_pythia8_Jet10_sHijing_pAu_0_10fm_500kHz_bkg_0_10fm-0000000009-00009.root",
62 "DST_TRUTH_pythia8_Jet10_sHijing_pAu_0_10fm_500kHz_bkg_0_10fm-0000000009-00009.root"
95 const bool doTruthTableReco(
false);
103 cfg_trkMin.
eta = -1.1;
104 cfg_trkMin.
dcaXY = -5.;
105 cfg_trkMin.
dcaZ = -5.;
106 cfg_trkMin.
ptErr = 0.;
114 cfg_trkMax.
pt = 100.;
115 cfg_trkMax.
eta = 1.1;
116 cfg_trkMax.
dcaXY = 5.;
117 cfg_trkMax.
dcaZ = 5.;
118 cfg_trkMax.
ptErr = 0.5;
124 .requireSiSeed =
true,
125 .useOnlyPrimVtx =
true,
126 .minAccept = cfg_trkMin,
127 .maxAccept = cfg_trkMax
131 SMakeTrkQATuplesConfig cfg_makeTrackQATuples = {
133 .doDcaSigCut =
false,
134 .requireSiSeed =
true,
135 .useOnlyPrimVtx =
true,
136 .minAccept = cfg_trkMin,
137 .maxAccept = cfg_trkMax
143 gSystem ->
Load(
"libg4dst.so");
144 gSystem ->
Load(
"libFROG.so");
151 for (
size_t iInput = 0; iInput < vecInFiles.size(); iInput++) {
153 inManager -> AddFile(vecInFiles.at(iInput));
154 ffaServer -> registerInputManager(inManager);
188 if (doTruthTableReco) {
192 ffaServer -> registerSubsystem(tables);
200 maker -> InitPlugin(cfg_checkTrackPairs,
"CheckTrackPairs");
201 maker -> InitPlugin(cfg_makeTrackQATuples,
"MakeTrackQATuples");
203 maker -> CheckTrackPairs() -> SetOutFile(vecOutFiles.at(0));
204 maker -> MakeTrackQATuples() -> SetOutFile(vecOutFiles.at(1));
206 maker -> SetGlobalDebug(
debug);
207 maker -> CheckTrackPairs() -> SetOutDir(vecOutDir.at(0));
208 maker -> MakeTrackQATuples() -> SetOutDir(vecOutDir.at(1));
209 ffaServer -> registerSubsystem(maker -> CheckTrackPairs());
210 ffaServer -> registerSubsystem(maker -> MakeTrackQATuples());