32 double startX = track.
Start().X();
33 double endX = track.
End().X();
36 if(tpc == -1)
return false;
39 if(tpc == 0 && (startX>0 || endX>0))
return true;
40 else if(tpc == 1 && (startX<0 || endX<0))
return true;
43 if(tpc0Flash && !tpc1Flash && tpc == 1)
return true;
44 if(tpc1Flash && !tpc0Flash && tpc == 0)
return true;
void reconfigure(const Config &config)
process_name use argoneut_mc_hitfinder track
GeometryCosmicIdAlg(const Config &config)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Point_t const & Start() const
Access to track position at different points.
bool GeometryCosmicId(recob::Track track, std::vector< art::Ptr< recob::Hit >> hits, bool tpc0Flash, bool tpc1Flash)
int DetectedInTPC(std::vector< art::Ptr< recob::Hit >> hits)
Point_t const & End() const
stream1 can override from command line with o or output services user sbnd
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track: