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

daughters

parent a456b395
Branches
No related tags found
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.
...@@ -41,7 +41,8 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal ...@@ -41,7 +41,8 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
std::string test_tag = "Barrel_emcal_pi0"; std::string test_tag = "Barrel_emcal_pi0";
//TODO: Change test_tag to something else //TODO: Change test_tag to something else
std:string detector = "Barrel_emcal"; 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 = 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] // 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 double thrown_energy = 5; // Current thrown energy, will need to grab from json file
...@@ -122,12 +123,11 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal ...@@ -122,12 +123,11 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
// Returns the pdgID of the particle daughters(hopefully?) // Returns the pdgID of the particle daughters(hopefully?)
auto getdau = [](std::vector<dd4pod::Geant4ParticleData> const& input) { auto getdau = [](std::vector<dd4pod::Geant4ParticleData> const& input) {
std::vector<double> result; std::vector<int> result;
/*
for (auto part : input[2].daughters_begin) for (auto part : input[2].daughters_begin)
result.push_back(*part) result.push_back(part)
*/ return result;
return *input[2].daughters_begin;
}; };
// Define variables // Define variables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment