From ac777e7676efa856d1653a6cf6e1381b25eb4c10 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Sat, 19 Mar 2022 12:08:48 -0500 Subject: [PATCH] Fixes to be able to compile all analysis macros --- benchmarks/b0_tracker/scripts/gen_forward_protons.cxx | 1 + benchmarks/barrel_ecal/scripts/emcal_barrel_electrons.cxx | 4 +++- .../barrel_ecal/scripts/emcal_barrel_electrons_reader.cxx | 8 +++++++- benchmarks/barrel_ecal/scripts/emcal_barrel_pi0.cxx | 4 +++- .../barrel_ecal/scripts/emcal_barrel_pi0_reader.cxx | 8 +++++++- benchmarks/barrel_ecal/scripts/emcal_barrel_pions.cxx | 4 +++- .../barrel_ecal/scripts/emcal_barrel_pions_reader.cxx | 8 +++++++- benchmarks/tracking_detectors/scripts/gen_track_hits.cxx | 8 +++++--- benchmarks/zdc/scripts/zdc_neutrons.cxx | 4 +++- 9 files changed, 39 insertions(+), 10 deletions(-) diff --git a/benchmarks/b0_tracker/scripts/gen_forward_protons.cxx b/benchmarks/b0_tracker/scripts/gen_forward_protons.cxx index 6cb9bd50..7178d776 100644 --- a/benchmarks/b0_tracker/scripts/gen_forward_protons.cxx +++ b/benchmarks/b0_tracker/scripts/gen_forward_protons.cxx @@ -12,6 +12,7 @@ #include "Math/Vector3D.h" #include "Math/Rotation3D.h" #include "Math/RotationY.h" +#include "TRandom.h" #include "common_bench/particles.h" diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_electrons.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_electrons.cxx index 217b2f55..edec1d84 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_electrons.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_electrons.cxx @@ -8,12 +8,14 @@ #include "HepMC3/ReaderAscii.h" #include "HepMC3/WriterAscii.h" -#include <TMath.h> #include <cmath> #include <iostream> #include <math.h> #include <random> +#include "TMath.h" +#include "TRandom.h" + using namespace HepMC3; void emcal_barrel_electrons(int n_events = 1e6, double e_start = 0.0, double e_end = 30.0, const char* out_fname = "./data/emcal_barrel_electrons.hepmc") { diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_electrons_reader.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_electrons_reader.cxx index 90622139..a1330970 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_electrons_reader.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_electrons_reader.cxx @@ -8,9 +8,15 @@ #include "HepMC3/ReaderAscii.h" #include "HepMC3/WriterAscii.h" +#include <iostream> + +#include "TROOT.h" #include "TH1F.h" +#include "TH2F.h" +#include "TH3F.h" +#include "TMath.h" #include "TStyle.h" -#include <iostream> +#include "TCanvas.h" using namespace HepMC3; diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pi0.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pi0.cxx index bd5211ab..2dfaea15 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pi0.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pi0.cxx @@ -8,12 +8,14 @@ #include "HepMC3/ReaderAscii.h" #include "HepMC3/WriterAscii.h" -#include <TMath.h> #include <cmath> #include <iostream> #include <math.h> #include <random> +#include "TMath.h" +#include "TRandom.h" + using namespace HepMC3; void emcal_barrel_pi0(int n_events = 1e6, double e_start = 0.0, double e_end = 30.0, const char* out_fname = "./data/emcal_barrel_pi0.hepmc") { diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pi0_reader.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pi0_reader.cxx index 597f090f..42c07699 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pi0_reader.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pi0_reader.cxx @@ -8,9 +8,15 @@ #include "HepMC3/ReaderAscii.h" #include "HepMC3/WriterAscii.h" +#include <iostream> + +#include "TROOT.h" #include "TH1F.h" +#include "TH2F.h" +#include "TH3F.h" +#include "TMath.h" #include "TStyle.h" -#include <iostream> +#include "TCanvas.h" using namespace HepMC3; diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions.cxx index 5d7963e2..5e6f0346 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions.cxx @@ -8,12 +8,14 @@ #include "HepMC3/ReaderAscii.h" #include "HepMC3/WriterAscii.h" -#include <TMath.h> #include <cmath> #include <iostream> #include <math.h> #include <random> +#include "TMath.h" +#include "TRandom.h" + using namespace HepMC3; void emcal_barrel_pions(int n_events = 1e6, double e_start = 0.0, double e_end = 30.0, const char* out_fname = "./data/emcal_barrel_pions.hepmc") { diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_reader.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_reader.cxx index e0377148..feb3230c 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_reader.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_reader.cxx @@ -8,9 +8,15 @@ #include "HepMC3/ReaderAscii.h" #include "HepMC3/WriterAscii.h" +#include <iostream> + +#include "TROOT.h" #include "TH1F.h" +#include "TH2F.h" +#include "TH3F.h" +#include "TMath.h" #include "TStyle.h" -#include <iostream> +#include "TCanvas.h" using namespace HepMC3; diff --git a/benchmarks/tracking_detectors/scripts/gen_track_hits.cxx b/benchmarks/tracking_detectors/scripts/gen_track_hits.cxx index 76bde084..737286e0 100644 --- a/benchmarks/tracking_detectors/scripts/gen_track_hits.cxx +++ b/benchmarks/tracking_detectors/scripts/gen_track_hits.cxx @@ -4,10 +4,12 @@ #include "HepMC3/Print.h" #include <iostream> -#include<random> -#include<cmath> +#include <random> +#include <cmath> #include <math.h> -#include <TMath.h> + +#include "TMath.h" +#include "TRandom.h" using namespace HepMC3; diff --git a/benchmarks/zdc/scripts/zdc_neutrons.cxx b/benchmarks/zdc/scripts/zdc_neutrons.cxx index 911d7674..4c1f9003 100644 --- a/benchmarks/zdc/scripts/zdc_neutrons.cxx +++ b/benchmarks/zdc/scripts/zdc_neutrons.cxx @@ -8,12 +8,14 @@ #include "HepMC3/ReaderAscii.h" #include "HepMC3/WriterAscii.h" -#include <TMath.h> #include <cmath> #include <iostream> #include <math.h> #include <random> +#include "TMath.h" +#include "TRandom.h" + using namespace HepMC3; void zdc_neutrons(int n_events = 1e6, double e_start = 0.0, double e_end = 30.0, const char* out_fname = "./data/zdc_neutrons.hepmc") { -- GitLab