1 #ifndef CRTTRACKRECOALG_H_SEEN
2 #define CRTTRACKRECOALG_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 "art_root_io/TFileService.h"
21 #include "art_root_io/TFileDirectory.h"
22 #include "messagefacility/MessageLogger/MessageLogger.h"
23 #include "canvas/Persistency/Common/FindManyP.h"
32 #include "messagefacility/MessageLogger/MessageLogger.h"
33 #include "fhiclcpp/ParameterSet.h"
34 #include "fhiclcpp/types/Table.h"
35 #include "fhiclcpp/types/Atom.h"
36 #include "cetlib/pow.h"
53 #include "TGeoManager.h"
75 Name(
"AverageHitDistance"),
76 Comment(
"Distance to average hits over on same plane")
80 Name(
"DistanceLimit"),
81 Comment(
"Distance to combine CRT hits into track")
103 vector<pair<sbn::crt::CRTHit, vector<int>>>
AverageHits(
vector<art::Ptr<sbn::crt::CRTHit>> hits, map<art::Ptr<sbn::crt::CRTHit>,
int> hitIds);
111 vector<sbn::crt::CRTTrack>
CreateTracks(vector<sbn::crt::CRTHit> hits);
sbn::crt::CRTHit DoAverage(vector< art::Ptr< sbn::crt::CRTHit >> hits)
geo::GeometryCore const * fGeometryService
TVector3 CrossPoint(sbn::crt::CRTHit hit, TVector3 start, TVector3 diff)
vector< vector< art::Ptr< sbn::crt::CRTHit > > > CreateCRTTzeros(vector< art::Ptr< sbn::crt::CRTHit >>)
fhicl::Atom< double > TimeLimit
double fAverageHitDistance
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Access the description of detector geometry.
void reconfigure(const Config &config)
sbn::crt::CRTTrack FillCrtTrack(sbn::crt::CRTHit hit1, sbn::crt::CRTHit hit2, bool complete)
BEGIN_PROLOG vertical distance to the surface Name
vector< pair< sbn::crt::CRTHit, vector< int > > > AverageHits(vector< art::Ptr< sbn::crt::CRTHit >> hits, map< art::Ptr< sbn::crt::CRTHit >, int > hitIds)
fhicl::Atom< double > DistanceLimit
Description of geometry of one entire detector.
CRTTrackRecoAlg(const fhicl::ParameterSet &pset)
vector< pair< sbn::crt::CRTTrack, vector< int > > > CreateTracks(vector< pair< sbn::crt::CRTHit, vector< int >>> hits)
CRTTrackRecoAlg(const Config &config)
art framework interface to geometry description
fhicl::Atom< double > AverageHitDistance