6 #ifndef TRACKFIT_COSMICTRACKUTILITIES_H 7 #define TRACKFIT_COSMICTRACKUTILITIES_H 31 typedef std::pair<TVector3, TVector3>
zBounds;
45 float LengthCorrection(
float const&
length);
46 float CosTheta (
float const& dcosY,
47 float const& magnitude);
48 float Azimuth (
float const& dcosX,
50 float const& magnitude);
52 std::pair<std::pair<float, float>, std::pair<TVector3, TVector3> > TrueLengthEndPoints(
simb::MCParticle const&
part);
54 std::map<geo::CellUniqueId, float> TruePathLengthInCell(
simb::MCParticle const& part,
55 std::vector<sim::FLSHit>
const& flsHits);
58 std::map<std::pair<uint32_t, uint32_t>,
bool> & planeCellMap);
59 float TriCellPathLength(
rb::Track const& track,
60 uint32_t
const&
plane,
61 double const& cellWidth,
65 TVector3
const& recoHitLoc,
66 std::pair<uint32_t, uint32_t>
const&
pc);
71 std::vector<float> TrackResiduals(
rb::Track const& track);
73 bool PointInDetector(TVector3
const& point);
91 #endif // TRACKFIT_COSMICTRACKSELECTION_H double fPlaneZDepth
extent of one plane (cell) in the z direction
art::ServiceHandle< geo::Geometry > fGeom
zBounds ZBounds(zBoundMap const &bounds, double const &hitZ)
Return the bounding points for a given z position along a track.
::xsd::cxx::tree::bounds< char > bounds
zBoundMap MakeZBoundaryMap(std::set< double > const &planeZBounds, std::vector< TVector3 > const &trajectory)
Return a map of the z position of each trajectory point on a track to the bounding positions of where...
std::map< double, zBounds > zBoundMap
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
art::ServiceHandle< geo::LiveGeometry > fLiveGeom
A rb::Prong with full reconstructed trajectory.
Give every cell in the geometry a unique ID number based on the TGeo path to the node.
Track finder for cosmic rays.
std::vector< double > fPolCoeff
the coefficients in an 8th degree polynomial
std::pair< TVector3, TVector3 > zBounds
Perform a "2 point" Hough transform on a collection of hits.
Example routine for calculating the "ultimate e-m mother" of a particle in a simulated event...
This class describes a particle created in the detector Monte Carlo simulation.
void FindZBoundaries(std::set< double > &planeZBounds)
Find the boundaries in the z direction of planes in the detector.
double fEffectivedEdx
effective dE/dx in MeV/cm
std::set< double > fPlaneZBounds
boundaries of each plane in the z direction
Encapsulate the geometry of one entire detector (near, far, ndos)
float PathLengthInCell(zBoundMap const &zBounds, TVector3 const &recoHitLoc, std::pair< uint32_t, uint32_t > const &pc)
Return the path length of a track in the cell in question.