StitchAlg.h
Go to the documentation of this file.
1 /////////////////////////////////////////////////////////////////
2 // \StitchAlg.h
3 // echurch@fnal.gov
4 ////////////////////////////////////////////////////////////////////
5 
6 #ifndef STITCHALG_H
7 #define STITCHALG_H
8 
9 // C/C++ standard libraries
10 #include <vector>
11 
12 // art libraries
15 
16 // LArSoft libraries
18 
19 namespace fhicl { class ParameterSet; }
20 namespace art { class Event; }
21 
22 
23 namespace trkf{
24 
25 
26 class StitchAlg
27 {
28 
29 
30  public:
31  StitchAlg (fhicl::ParameterSet const& pset) ;
32 
33  void reconfigure(fhicl::ParameterSet const& pset) ;
34 
35  void FindHeadsAndTails( const art::Event& e, const std::string& t);
36  void FirstStitch(const std::vector<art::PtrVector <recob::Track>>::iterator itvvArg, const std::vector <recob::Track>::iterator itvArg);
37  void WalkStitch();
38  bool CommonComponentStitch();
39 
40  void GetTrackComposites(std::vector <art::PtrVector <recob::Track> > & c) const { c = fTrackComposite;}
41  void GetTracks(std::vector <recob::Track>& t) const { t = fTrackVec ;}
42 
44 
45  private:
46 
47  std::vector <std::tuple <std::string, int, int, double, double> > fh;
48  std::vector <std::tuple <std::string, int, int, double, double> > ft;
49  int ftNo;
50  double fCosAngTol;
51  double fSepTol;
52 
53 
54  std::vector <art::PtrVector <recob::Track> > fTrackComposite;
55  std::vector <recob::Track> fTrackVec;
56  std::vector <std::vector <std::string>> fHT;
57 
58 };
59 
60 
61 
62 } // namespace
63 
64 #endif // ifndef STITCHALG_H
std::vector< std::tuple< std::string, int, int, double, double > > fh
Definition: StitchAlg.h:47
intermediate_table::iterator iterator
void GetTracks(std::vector< recob::Track > &t) const
Definition: StitchAlg.h:41
art::Handle< std::vector< recob::Track > > ftListHandle
Definition: StitchAlg.h:43
std::vector< recob::Track > fTrackVec
Definition: StitchAlg.h:55
std::string string
Definition: nybbler.cc:12
struct vector vector
void GetTrackComposites(std::vector< art::PtrVector< recob::Track > > &c) const
Definition: StitchAlg.h:40
std::vector< std::vector< std::string > > fHT
Definition: StitchAlg.h:56
double fSepTol
Definition: StitchAlg.h:51
const double e
virtual void reconfigure(fhicl::ParameterSet const &pset)
double fCosAngTol
Definition: StitchAlg.h:50
Definition: types.h:32
Provides recob::Track data product.
std::vector< std::tuple< std::string, int, int, double, double > > ft
Definition: StitchAlg.h:48
std::vector< art::PtrVector< recob::Track > > fTrackComposite
Definition: StitchAlg.h:54