6 #ifndef PMAlgStitching_h
7 #define PMAlgStitching_h
11 #include "fhiclcpp/types/Atom.h"
12 #include "fhiclcpp/types/Comment.h"
13 #include "fhiclcpp/types/Name.h"
20 class DetectorClocksData;
21 class DetectorPropertiesData;
26 class TrkCandidateColl;
37 Name(
"StitchingThreshold"),
38 Comment(
"The maximum value allowed for the stitching score. Has dimensions of length, and "
39 "10.0(cm) is a reasonable value.")};
43 Comment(
"Number of nodes we step back from the ends of the tracks to perform the stitching "
70 double GetTrackPairDelta(TVector3& pos1, TVector3& pos2, TVector3& dir1, TVector3& dir2)
const;
73 double GetTPCOffset(
unsigned int tpc,
unsigned int cryo,
bool isCPA);
double GetTPCOffset(unsigned int tpc, unsigned int cryo, bool isCPA)
ClusterModuleLabel join with tracks
void StitchTracks(const detinfo::DetectorClocksData &clockData, const detinfo::DetectorPropertiesData &detProp, pma::TrkCandidateColl &tracks, bool isCPA)
PMAlgStitching(const pma::PMAlgStitching::Config &config)
double GetTrackPairDelta(TVector3 &pos1, TVector3 &pos2, TVector3 &dir1, TVector3 &dir2) const
std::map< geo::TPCID, double > fTPCXOffsetsAPA
unsigned int fNodesFromEnd
double GetOptimalStitchShift(TVector3 &pos1, TVector3 &pos2, TVector3 &dir1, TVector3 &dir2, double &shift) const
std::map< geo::TPCID, double > fTPCXOffsetsCPA
fhicl::Atom< int > StitchingThreshold
BEGIN_PROLOG vertical distance to the surface Name
Definition of data types for geometry description.
Contains all timing reference information for the detector.
fhicl::Atom< unsigned int > NodesFromEnd
double fStitchingThreshold
void StitchTracksAPA(const detinfo::DetectorClocksData &clockData, const detinfo::DetectorPropertiesData &detProp, pma::TrkCandidateColl &tracks)
void StitchTracksCPA(const detinfo::DetectorClocksData &clockData, const detinfo::DetectorPropertiesData &detProp, pma::TrkCandidateColl &tracks)