1 #ifndef CRTT0MATCHALG_H_SEEN
2 #define CRTT0MATCHALG_H_SEEN
13 #include "art/Framework/Principal/Event.h"
14 #include "art/Framework/Core/ModuleMacros.h"
15 #include "fhiclcpp/ParameterSet.h"
16 #include "art/Framework/Principal/Handle.h"
17 #include "canvas/Persistency/Common/Ptr.h"
18 #include "canvas/Persistency/Common/PtrVector.h"
19 #include "art/Framework/Services/Registry/ServiceHandle.h"
20 #include "messagefacility/MessageLogger/MessageLogger.h"
21 #include "canvas/Persistency/Common/FindManyP.h"
37 #include "messagefacility/MessageLogger/MessageLogger.h"
38 #include "fhiclcpp/ParameterSet.h"
39 #include "fhiclcpp/types/Table.h"
40 #include "fhiclcpp/types/Atom.h"
41 #include "cetlib/pow.h"
60 #include "TGeoManager.h"
84 double startX,
double endX,
int driftDirection, std::pair<double, double> xLimits);
88 TVector3 trackPos, TVector3 trackDir,
sbn::crt::CRTHit crtHit,
int driftDirection,
double t0);
93 double frac,
double CRTtime,
int driftDirection);
100 recob::Track tpcTrack, std::pair<double, double> t0MinMax,
101 std::vector<sbn::crt::CRTHit> crtHits,
int driftDirection, uint64_t trigger_timestamp);
104 recob::Track tpcTrack, std::vector<sbn::crt::CRTHit> crtHits,
105 const art::Event& event, uint64_t trigger_timestamp);
109 std::vector<sbn::crt::CRTHit> crtHits, uint64_t trigger_timestamp);
113 recob::Track tpcTrack, std::pair<double, double> t0MinMax,
114 std::vector<sbn::crt::CRTHit> crtHits,
int driftDirection, uint64_t& trigger_timestamp);
117 recob::Track tpcTrack, std::vector<sbn::crt::CRTHit> crtHits,
118 const art::Event& event, uint64_t trigger_timestamp);
122 std::vector<sbn::crt::CRTHit> crtHits, uint64_t trigger_timestamp);
126 recob::Track tpcTrack, std::vector<sbn::crt::CRTHit> crtHits,
127 const art::Event& event, uint64_t trigger_timestamp);
131 std::vector<sbn::crt::CRTHit> crtHits, uint64_t& trigger_timestamp);
135 recob::Track tpcTrack, std::vector<sbn::crt::CRTHit> crtHits,
136 const art::Event& event, uint64_t trigger_timestamp);
140 std::vector<sbn::crt::CRTHit> crtHits, uint64_t& trigger_timestamp);
150 double LineSegmentDistance(TVector3 start1, TVector3 end1, TVector3 start2, TVector3 end2);
154 std::pair<TVector3, TVector3>
CubeIntersection(TVector3 min, TVector3 max, TVector3 start, TVector3 end);
std::vector< art::InputTag > fTPCTrackLabel
std::pair< TVector3, TVector3 > TrackDirectionAverage(recob::Track track, double frac)
Declaration of signal hit object.
process_name use argoneut_mc_hitfinder track
void reconfigure(const fhicl::ParameterSet &pset)
std::vector< std::pair< double, double > > T0AndDCAFromCRTHits(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::vector< sbn::crt::CRTHit > crtHits, const art::Event &event, uint64_t trigger_timestamp)
spacecharge::SpaceCharge const * fSCE
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Access the description of detector geometry.
std::pair< sbn::crt::CRTHit, double > ClosestCRTHit(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::pair< double, double > t0MinMax, std::vector< sbn::crt::CRTHit > crtHits, int driftDirection, uint64_t trigger_timestamp)
std::vector< double > T0FromCRTHits(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::vector< sbn::crt::CRTHit > crtHits, const art::Event &event, uint64_t trigger_timestamp)
object containing MC truth information necessary for making RawDigits and doing back tracking ...
double LineSegmentDistance(TVector3 start1, TVector3 end1, TVector3 start2, TVector3 end2)
art framework interface to geometry description for auxiliary detectors
std::pair< TVector3, TVector3 > TrackDirectionAverageFromPoints(recob::Track track, double frac)
auto end(FixedBins< T, C > const &) noexcept
Description of geometry of one entire detector.
double DistToCrtHit(sbn::crt::CRTHit hit, TVector3 start, TVector3 end)
Provides recob::Track data product.
geo::GeometryCore const * fGeometryService
std::pair< double, double > TrackT0Range(detinfo::DetectorPropertiesData const &detProp, double startX, double endX, int driftDirection, std::pair< double, double > xLimits)
matchCand GetClosestCRTHit(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::pair< double, double > t0MinMax, std::vector< sbn::crt::CRTHit > crtHits, int driftDirection, uint64_t &trigger_timestamp)
double SimpleDCA(sbn::crt::CRTHit hit, TVector3 start, TVector3 direction)
double fTrackDirectionFrac
double DistOfClosestApproach(detinfo::DetectorPropertiesData const &detProp, TVector3 trackPos, TVector3 trackDir, sbn::crt::CRTHit crtHit, int driftDirection, double t0)
std::pair< TVector3, TVector3 > TrackDirection(detinfo::DetectorPropertiesData const &detProp, recob::Track track, double frac, double CRTtime, int driftDirection)
art framework interface to geometry description
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track:
std::pair< TVector3, TVector3 > CubeIntersection(TVector3 min, TVector3 max, TVector3 start, TVector3 end)