All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sbndcode/sbndcode/CosmicId/Algs/FiducialVolumeCosmicIdAlg.cc
Go to the documentation of this file.
2 
3 namespace sbnd{
4 
6 
7  this->reconfigure(config);
8 
9 }
10 
11 
13 
14 }
15 
16 
18 
19 }
20 
21 
23 
24  fMinX = config.FiducialCuts().MinX();
25  fMinY = config.FiducialCuts().MinY();
26  fMinZ = config.FiducialCuts().MinZ();
27  fMaxX = config.FiducialCuts().MaxX();
28  fMaxY = config.FiducialCuts().MaxY();
29  fMaxZ = config.FiducialCuts().MaxZ();
30 
31  return;
32 }
33 
34 // Check if point in fiducial volume used by this algorithm
36 
37  return fTpcGeo.InFiducial(point, fMinX, fMinY, fMinZ, fMaxX, fMaxY, fMaxZ);
38 
39 }
40 
41 // Check both start and end points of track are in fiducial volume
43 
44  bool startInFiducial = InFiducial(track.Vertex());
45 
46  bool endInFiducial = InFiducial(track.End());
47 
48  if(!startInFiducial && !endInFiducial) return true;
49 
50  return false;
51 
52 }
53 
54 
55 }
process_name use argoneut_mc_hitfinder track
Point_t const & Vertex() const
Point_t const & End() const
stream1 can override from command line with o or output services user sbnd
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
Definition: geo_vectors.h:184
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a &quot;fitted&quot; track:
bool InFiducial(geo::Point_t point, double fiducial)