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

plotting charge 2

parent 63320f5a
No related branches found
No related tags found
1 merge request!24Resolve "pi0 resolution for ECal barrel"
......@@ -128,6 +128,13 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
return result;
};
// Thrown Energy [GeV]
auto Ethr = [](std::vector<dd4pod::Geant4ParticleData> const& input) {
std::vector<double> result;
result.push_back(input[2].charge);
return result;
};
// Define variables
auto d1 = d0.Define("Ethr", Ethr, {"mcparticles"})
.Define("nhits", nhits, {"EcalBarrelHits"})
......@@ -136,7 +143,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
.Define("fsam", fsam2, {"Esim","Ethr"})
.Define("dE", eResol, {"Esim", "Ethr"})
.Define("dE_rel", eResol_rel, {"Esim", "Ethr"})
.Define("charge", {"charge"})
.Define("charge", {"mcparticles"})
;
// Define Histograms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment