Skip to content
Snippets Groups Projects

Resolve "pi0 resolution for ECal barrel"

Merged Marshall Scott requested to merge 19-pi0-resolution-for-ecal-barrel into master
Compare and Show latest version
1 file
+ 7
5
Compare changes
  • Side-by-side
  • Inline
@@ -41,7 +41,8 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
std::string test_tag = "Barrel_emcal_pi0";
//TODO: Change test_tag to something else
std:string detector = "Barrel_emcal";
//Energy resolution in teh barrel region(-1 < eta < 1)
//Energy resolution in the barrel region(-1 < eta < 1)
// Taken from : Initial considerations for EMCal of the EIC detector by A. Bazilevsky
// sigma_E / E = 12% / E^0.5 convoluted with 2%
// sigma_E / E = [ (0.12/E^0.5)^2 + 0.02^2]^0.5, with E in [GeV]
double thrown_energy = 5; // Current thrown energy, will need to grab from json file
@@ -122,10 +123,11 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
// Returns the pdgID of the particle daughters(hopefully?)
auto getdau = [](std::vector<dd4pod::Geant4ParticleData> const& input) {
std::vector<double> result;
for (auto part : input[2].daughters_begin)
result.push_back(*part)
return result;
std::vector<int> result;
//for (auto part : input[2].daughters_begin)
// result.push_back(part)
return input[2].daughters_begin;
};
// Define variables
Loading