Skip to content
Snippets Groups Projects
Commit 427ce91b authored by Maria Zurek's avatar Maria Zurek
Browse files

Correct energy information from hit

parent a58a2229
No related branches found
No related tags found
1 merge request!153Draft: Resolve "Add energy scan for Barrel Ecal"
...@@ -204,7 +204,7 @@ std::tuple <double, double> extract_sampling_fraction_parameters(std::string E_l ...@@ -204,7 +204,7 @@ std::tuple <double, double> extract_sampling_fraction_parameters(std::string E_l
auto layer_edep = 0.0; auto layer_edep = 0.0;
for (const auto& i: evt) { for (const auto& i: evt) {
if (i.layer == layer) { if (i.layer == layer) {
layer_edep += i.energyDeposit; layer_edep += i.energy;
} }
} }
return layer_edep; return layer_edep;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment