LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
StitchAlg.h
Go to the documentation of this file.
1 // \StitchAlg.h
3 // echurch@fnal.gov
5 
6 #ifndef STITCHALG_H
7 #define STITCHALG_H
8 
9 // C/C++ standard libraries
10 #include <vector>
11 
12 // art libraries
16 
17 // LArSoft libraries
19 
20 namespace fhicl { class ParameterSet; }
21 namespace art { class Event; }
22 
23 
24 namespace trkf{
25 
26 
27 class StitchAlg
28 {
29 
30 
31  public:
32  StitchAlg (fhicl::ParameterSet const& pset) ;
33  virtual ~StitchAlg () {};
34 
35  void reconfigure(fhicl::ParameterSet const& pset) ;
36 
37  void FindHeadsAndTails( const art::Event& e, const std::string& t);
38  void FirstStitch(const std::vector<art::PtrVector <recob::Track>>::iterator itvvArg, const std::vector <recob::Track>::iterator itvArg);
39  void WalkStitch();
40  bool CommonComponentStitch();
41 
42  void GetTrackComposites(std::vector <art::PtrVector <recob::Track> > & c) { c = fTrackComposite;};
43  void GetTracks(std::vector <recob::Track>& t) { t = fTrackVec ;};
44 
46 
47  private:
48 
49  std::vector <std::tuple <std::string, int, int, double, double> > fh;
50  std::vector <std::tuple <std::string, int, int, double, double> > ft;
51  int ftNo;
52  double fCosAngTol;
53  double fSepTol;
54 
55 
56  std::vector <art::PtrVector <recob::Track> > fTrackComposite;
57  std::vector <recob::Track> fTrackVec;
58  std::vector <std::vector <std::string>> fHT;
59 
60 };
61 
62 
63 
64 } // namespace
65 
66 #endif // ifndef STITCHALG_H
std::vector< std::tuple< std::string, int, int, double, double > > fh
Definition: StitchAlg.h:49
std::vector< recob::Track > fTrackVec
Definition: StitchAlg.h:57
intermediate_table::iterator iterator
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
std::vector< std::vector< std::string > > fHT
Definition: StitchAlg.h:58
double fSepTol
Definition: StitchAlg.h:53
Provides recob::Track data product.
parameter set interface
void GetTrackComposites(std::vector< art::PtrVector< recob::Track > > &c)
Definition: StitchAlg.h:42
virtual ~StitchAlg()
Definition: StitchAlg.h:33
double fCosAngTol
Definition: StitchAlg.h:52
std::vector< std::tuple< std::string, int, int, double, double > > ft
Definition: StitchAlg.h:50
HLT enums.
Float_t e
Definition: plot.C:34
std::vector< art::PtrVector< recob::Track > > fTrackComposite
Definition: StitchAlg.h:56
void GetTracks(std::vector< recob::Track > &t)
Definition: StitchAlg.h:43