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

Add std namespace

parent ac1cf66c
No related branches found
No related tags found
1 merge request!153Draft: Resolve "Add energy scan for Barrel Ecal"
...@@ -191,7 +191,7 @@ std::tuple <double, double> extract_sampling_fraction_parameters(std::string E_l ...@@ -191,7 +191,7 @@ std::tuple <double, double> extract_sampling_fraction_parameters(std::string E_l
auto nbins = helectron->GetXaxis()->GetNbins(); auto nbins = helectron->GetXaxis()->GetNbins();
auto integral_helectron = helectron->Integral(); auto integral_helectron = helectron->Integral();
auto ngen_helectron = delectrons.Count(); auto ngen_helectron = delectrons.Count();
cout << infoHists[col].name << ": Thrown electron events: " << ngen_helectron << " Histo integral: " << integral_helectron << endl; std::cout << infoHists[col].name << ": Thrown electron events: " << ngen_helectron << " Histo integral: " << integral_helectron << std::endl;
auto efficiency_cut_bin = 0; auto efficiency_cut_bin = 0;
for(int bin=1; bin<=nbins;bin++){ for(int bin=1; bin<=nbins;bin++){
auto inegral_helectron_bin = helectron->Integral(1,bin); auto inegral_helectron_bin = helectron->Integral(1,bin);
...@@ -202,10 +202,10 @@ std::tuple <double, double> extract_sampling_fraction_parameters(std::string E_l ...@@ -202,10 +202,10 @@ std::tuple <double, double> extract_sampling_fraction_parameters(std::string E_l
break; break;
} }
} }
cout << "efficiency cut bin: " << efficiency_cut_bin << " efficiency: " << 1 - helectron->Integral(1,efficiency_cut_bin)/ngen_helectron; std::cout << "efficiency cut bin: " << efficiency_cut_bin << " efficiency: " << 1. - (helectron->Integral(1,efficiency_cut_bin))/ngen_helectron << std::endl;
auto ngen_hpion = dpions.Count(); auto ngen_hpion = dpions.Count();
auto pion_suppresion = hpion->Integral(efficiency_cut_bin, nbins)/ngen_hpion; auto pion_suppresion = hpion->Integral(efficiency_cut_bin, nbins)/ngen_hpion;
cout << "pion supression: " << pion_suppresion << endl; std::cout << "pion supression: " << pion_suppresion << std::end;
} }
} }
......
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