1 #ifndef CRTTRACKMATCHALG_H_SEEN
2 #define CRTTRACKMATCHALG_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"
33 #include "messagefacility/MessageLogger/MessageLogger.h"
34 #include "fhiclcpp/ParameterSet.h"
35 #include "fhiclcpp/types/Table.h"
36 #include "fhiclcpp/types/Atom.h"
37 #include "cetlib/pow.h"
56 #include "TGeoManager.h"
84 Name(
"TPCTrackLabel"),
89 Name(
"SelectionMetric"),
119 recob::Track tpcTrack, std::vector<sbn::crt::CRTTrack> crtTracks,
const art::Event& event);
125 recob::Track tpcTrack, std::vector<sbn::crt::CRTTrack> crtTracks,
const art::Event& event);
131 recob::Track tpcTrack, std::vector<sbn::crt::CRTTrack> crtTracks,
const art::Event& event);
138 std::vector<sbn::crt::CRTTrack> crtTracks,
139 const art::Event& event);
144 std::vector<sbn::crt::CRTTrack> crtTracks);
149 std::vector<sbn::crt::CRTTrack> crtTracks,
150 const art::Event& event,
155 std::vector<sbn::crt::CRTTrack> crtTracks,
160 std::vector<sbn::crt::CRTTrack> crtTracks,
161 const art::Event& event,
162 double minAngle = 0.);
166 std::vector<sbn::crt::CRTTrack> crtTracks,
167 double minAngle = 0.);
171 std::vector<sbn::crt::CRTTrack> crtTracks,
172 const art::Event& event);
176 std::vector<sbn::crt::CRTTrack> crtTracks);
void reconfigure(const Config &config)
Utilities related to art service access.
bool CrossesAPA(sbn::crt::CRTTrack track)
Declaration of signal hit object.
Geometry information for a single TPC.
bool CrossesTPC(sbn::crt::CRTTrack track)
int GetMatchedCRTTrackId(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::vector< sbn::crt::CRTTrack > crtTracks, const art::Event &event)
CRTTrackMatchAlg(const fhicl::ParameterSet &pset)
process_name use argoneut_mc_hitfinder track
double AngleBetweenTracks(recob::Track tpcTrack, sbn::crt::CRTTrack crtTrack)
fhicl::Atom< art::InputTag > TPCTrackLabel
double AveDCABetweenTracks(recob::Track tpcTrack, sbn::crt::CRTTrack crtTrack, double shift)
fhicl::Atom< double > MaxDistance
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Access the description of detector geometry.
std::pair< sbn::crt::CRTTrack, double > ClosestCRTTrackByDCA(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::vector< sbn::crt::CRTTrack > crtTracks, const art::Event &event, double minAngle=0.)
art::InputTag fTPCTrackLabel
geo::GeometryCore const * fGeometryService
BEGIN_PROLOG vertical distance to the surface Name
fhicl::Atom< double > MaxAngleDiff
fhicl::Atom< double > MaxScore
Description of geometry of one entire detector.
Provides recob::Track data product.
fhicl::Atom< std::string > SelectionMetric
std::vector< sbn::crt::CRTTrack > AllPossibleCRTTracks(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::vector< sbn::crt::CRTTrack > crtTracks, const art::Event &event)
CRTTrackMatchAlg(const Config &config)
CRTBackTracker fCrtBackTrack
std::pair< TVector3, TVector3 > TpcIntersection(const geo::TPCGeo &tpcGeo, sbn::crt::CRTTrack track)
std::pair< sbn::crt::CRTTrack, double > ClosestCRTTrackByAngle(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::vector< sbn::crt::CRTTrack > crtTracks, const art::Event &event, double minDCA=0.)
stream1 can override from command line with o or output services user sbnd
double T0FromCRTTracks(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::vector< sbn::crt::CRTTrack > crtTracks, const art::Event &event)
std::string fSelectionMetric
std::pair< int, double > GetMatchedCRTTrackIdAndScore(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::vector< sbn::crt::CRTTrack > crtTracks, const art::Event &event)
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< sbn::crt::CRTTrack, double > ClosestCRTTrackByScore(detinfo::DetectorPropertiesData const &detProp, recob::Track tpcTrack, std::vector< sbn::crt::CRTTrack > crtTracks, const art::Event &event)