Skip to content
Snippets Groups Projects
Commit 0b0e9268 authored by Marshall Scott's avatar Marshall Scott
Browse files

plotting charge 3

parent ee92375f
Branches
Tags
1 merge request!24Resolve "pi0 resolution for ECal barrel"
This commit is part of merge request !24. Comments created here will be created in the context of that merge request.
...@@ -129,7 +129,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal ...@@ -129,7 +129,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
}; };
// Thrown Energy [GeV] // Thrown Energy [GeV]
auto Ethr = [](std::vector<dd4pod::Geant4ParticleData> const& input) { auto charge = [](std::vector<dd4pod::Geant4ParticleData> const& input) {
std::vector<double> result; std::vector<double> result;
result.push_back(input[2].charge); result.push_back(input[2].charge);
return result; return result;
...@@ -143,7 +143,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal ...@@ -143,7 +143,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
.Define("fsam", fsam2, {"Esim","Ethr"}) .Define("fsam", fsam2, {"Esim","Ethr"})
.Define("dE", eResol, {"Esim", "Ethr"}) .Define("dE", eResol, {"Esim", "Ethr"})
.Define("dE_rel", eResol_rel, {"Esim", "Ethr"}) .Define("dE_rel", eResol_rel, {"Esim", "Ethr"})
.Define("charge", {"mcparticles"}) .Define("charge", charge, {"mcparticles"})
; ;
// Define Histograms // Define Histograms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment