From 9f46116a09337fb207a7e799eef21d529729f8db Mon Sep 17 00:00:00 2001 From: Whitney Armstrong <warmstrong@anl.gov> Date: Thu, 20 May 2021 20:58:10 -0500 Subject: [PATCH] modified: scripts/tutorial1_hit_position.cxx --- scripts/tutorial1_hit_position.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/tutorial1_hit_position.cxx b/scripts/tutorial1_hit_position.cxx index e566c89..42536af 100644 --- a/scripts/tutorial1_hit_position.cxx +++ b/scripts/tutorial1_hit_position.cxx @@ -85,16 +85,16 @@ void tutorial1_hit_position(const char* fname = "gem_tracker_sim.root") { }; auto d1 = d0.Define("nhits", nhits, {"GEMTrackerHits"}) - .Filter([=](const std::vector<dd4pod::TrackerHitData>& hits) { - for (auto h : hits) { - auto pos = ROOT::Math::XYZVector(h.position.x,h.position.y,h.position.z); - if ((pos.r() > 100.0) && (std::abs(pos.phi()-M_PI/2.0)< M_PI/6)) { - return true; - } - } - return false; - }, - {"GEMTrackerHits"}) + //.Filter([=](const std::vector<dd4pod::TrackerHitData>& hits) { + // for (auto h : hits) { + // auto pos = ROOT::Math::XYZVector(h.position.x,h.position.y,h.position.z); + // if ((pos.r() > 100.0) && (std::abs(pos.phi()-M_PI/2.0)< M_PI/6)) { + // return true; + // } + // } + // return false; + // }, + // {"GEMTrackerHits"}) .Define("xy_hit_pos", local_position, {"GEMTrackerHits"}) .Define("x_pos", x_pos, {"xy_hit_pos"}) .Define("y_pos", y_pos, {"xy_hit_pos"}); -- GitLab