Skip to content
Snippets Groups Projects
Unverified Commit 4bb50da6 authored by Barak Schmookler's avatar Barak Schmookler Committed by GitHub
Browse files

tracking_performances_dis: fix for MCParticle type change in EDM4hep (#170)

parent 0de7e9f6
Branches
No related tags found
No related merge requests found
Pipeline #122760 passed
......@@ -64,9 +64,9 @@ void trk_dis_analysis(const std::string& config_name)
// Generated Particle Information
TTreeReaderArray<int> gen_status(tr, "MCParticles.generatorStatus");
TTreeReaderArray<int> gen_pid(tr, "MCParticles.PDG");
TTreeReaderArray<float> gen_px(tr, "MCParticles.momentum.x");
TTreeReaderArray<float> gen_py(tr, "MCParticles.momentum.y");
TTreeReaderArray<float> gen_pz(tr, "MCParticles.momentum.z");
TTreeReaderArray<double> gen_px(tr, "MCParticles.momentum.x");
TTreeReaderArray<double> gen_py(tr, "MCParticles.momentum.y");
TTreeReaderArray<double> gen_pz(tr, "MCParticles.momentum.z");
TTreeReaderArray<double> gen_mass(tr, "MCParticles.mass"); //Not important here
TTreeReaderArray<float> gen_charge(tr, "MCParticles.charge");
TTreeReaderArray<double> gen_vx(tr, "MCParticles.vertex.x");
......@@ -78,16 +78,16 @@ void trk_dis_analysis(const std::string& config_name)
TTreeReaderArray<float> rec_py(tr, "ReconstructedChargedParticles.momentum.y");
TTreeReaderArray<float> rec_pz(tr, "ReconstructedChargedParticles.momentum.z");
TTreeReaderArray<float> rec_mass(tr, "ReconstructedChargedParticles.mass");
TTreeReaderArray<int> rec_type(tr, "ReconstructedChargedParticles.type"); //Type 0: successful eta/phi match to generated particle
TTreeReaderArray<int> rec_pdg(tr, "ReconstructedChargedParticles.PDG"); //Uses PID lookup table information
TTreeReaderArray<int> rec_pdg(tr, "ReconstructedChargedParticles.PDG");
TTreeReaderArray<int> rec_type(tr, "ReconstructedChargedParticles.type");
// Reconstructed truth-seeded tracks (charged particles)
TTreeReaderArray<float> rec_ts_px(tr, "ReconstructedTruthSeededChargedParticles.momentum.x");
TTreeReaderArray<float> rec_ts_py(tr, "ReconstructedTruthSeededChargedParticles.momentum.y");
TTreeReaderArray<float> rec_ts_pz(tr, "ReconstructedTruthSeededChargedParticles.momentum.z");
TTreeReaderArray<float> rec_ts_mass(tr, "ReconstructedTruthSeededChargedParticles.mass");
TTreeReaderArray<int> rec_ts_type(tr, "ReconstructedTruthSeededChargedParticles.type"); //Type 0: successful eta/phi match to generated particle
TTreeReaderArray<int> rec_ts_pdg(tr, "ReconstructedTruthSeededChargedParticles.PDG"); //Uses PID lookup table information
TTreeReaderArray<int> rec_ts_pdg(tr, "ReconstructedTruthSeededChargedParticles.PDG");
TTreeReaderArray<int> rec_ts_type(tr, "ReconstructedTruthSeededChargedParticles.type");
// Hit-based track to MC Particle association weight
TTreeReaderArray<float> hit_assoc_weight(tr,"CentralCKFTrackAssociations.weight"); //Real-seeded tracking
......
......@@ -75,9 +75,9 @@ void vtx_dis_analysis(const std::string& config_name)
TTreeReaderArray<int> mcGenStat = {tree_reader, "MCParticles.generatorStatus"};
TTreeReaderArray<int> mcPDG = {tree_reader, "MCParticles.PDG"};
TTreeReaderArray<float> mcCharge = {tree_reader, "MCParticles.charge"};
TTreeReaderArray<float> mcMomX = {tree_reader, "MCParticles.momentum.x"};
TTreeReaderArray<float> mcMomY = {tree_reader, "MCParticles.momentum.y"};
TTreeReaderArray<float> mcMomZ = {tree_reader, "MCParticles.momentum.z"};
TTreeReaderArray<double> mcMomX = {tree_reader, "MCParticles.momentum.x"};
TTreeReaderArray<double> mcMomY = {tree_reader, "MCParticles.momentum.y"};
TTreeReaderArray<double> mcMomZ = {tree_reader, "MCParticles.momentum.z"};
TTreeReaderArray<double> mcVtxX = {tree_reader, "MCParticles.vertex.x"};
TTreeReaderArray<double> mcVtxY = {tree_reader, "MCParticles.vertex.y"};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment