Skip to content

Commit fdb7dcd

Browse files
authored
Merge pull request #25 from brownd1978/kseed_fix
Fix
2 parents a69d906 + bdb48ed commit fdb7dcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AllInOne/src/All01_module.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ namespace mu2e {
127127
// The three locations are at the intersections of the trajectory with planes
128128
// perpendicular to the z axis and at the front, middle and back of the tracker.
129129
// Just because. It's not a recommendation for analysis.
130-
std::vector<KalIntersection>::const_iterator front = ks.intersection( SurfaceIdEnum::TT_Front );
131-
auto mid = ks.intersection( SurfaceIdEnum::TT_Mid );
132-
auto back = ks.intersection( SurfaceIdEnum::TT_Back );
130+
auto front = ks.intersections( SurfaceIdEnum::TT_Front ).front();
131+
auto mid = ks.intersections( SurfaceIdEnum::TT_Mid ).front();
132+
auto back = ks.intersections( SurfaceIdEnum::TT_Back ).front();
133133
if ( front == ks.intersections().end() || mid == ks.intersections().end() || back == ks.intersections().end() ){
134134
_hnSkip->Fill(1.);
135135
continue;

0 commit comments

Comments
 (0)