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

modified: simple_checking_crystal.cxx

parent fb72cade
No related branches found
No related tags found
1 merge request!20Restructuring repo
This commit is part of merge request !20. Comments created here will be created in the context of that merge request.
......@@ -14,7 +14,7 @@ void simple_checking_crystal(const char* fname = "sim_output/output_emcal_electr
ROOT::RDataFrame d0(*t);//, {"EcalHits","MCParticles"});
auto nhits = [] (std::vector<dd4hep::sim::Geant4Calorimeter::Hit*>& hits){ return (int) hits.size(); };
auto nhits = [] (const std::vector<dd4pod::CalorimeterHit>& hits){ return (int) hits.size(); };
auto d1 = d0.Define("nhits", nhits, {"CrystalEcalHits"});
auto h0 = d1.Histo1D(TH1D("h0", "nhits; ", 20, 0,20), "nhits");
......
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