Skip to content
Snippets Groups Projects
Commit 239f7189 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: config.yml

	modified:   simple_checking_crystal.cxx
parent 5b77ed0b
No related branches found
No related tags found
1 merge request!20Restructuring repo
......@@ -62,6 +62,7 @@ cal_bench:crystal_benchmark:
needs:
- ["cal_sim:crystal_emcal"]
script:
- rootls -t sim_output/output_emcal_electrons.root
- root -b -q benchmarks/calorimeters/simple_checking_crystal.cxx+
#cal_test_3_zdc_neutrons_reader:
......
......@@ -16,7 +16,7 @@ void simple_checking_crystal(const char* fname = "sim_output/output_emcal_electr
auto nhits = [] (std::vector<dd4hep::sim::Geant4Calorimeter::Hit*>& hits){ return (int) hits.size(); };
auto d1 = d0.Define("nhits", nhits, {"EcalHits"});
auto d1 = d0.Define("nhits", nhits, {"CrystalEcalHits"});
auto h0 = d1.Histo1D(TH1D("h0", "nhits; ", 20, 0,20), "nhits");
auto n0 = d1.Filter([](int n){ return (n>0); },{"nhits"}).Count();
......
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