DisambigAlgProtoDUNESP.h
Go to the documentation of this file.
1 /////////////////////////////////////////////////////////////////
2 //
3 // Disambiguation algorithm for the protoDUNE single phase detector
4 // using two views and the third for confirmation if present. Does not allow for hits to be on
5 // wires on the outside sides of the APA's.
6 // Start from code written by talion@gmail.com
7 // trj@fnal.gov
8 // tjyang@fnal.gov
9 //
10 ////////////////////////////////////////////////////////////////////
11 #ifndef DisambigAlgProtoDUNESP_H
12 #define DisambigAlgProtoDUNESP_H
13 #include <vector>
14 #include <map>
15 #include <cmath>
16 #include <iostream>
17 #include <stdint.h>
18 
20 #include "fhiclcpp/ParameterSet.h"
24 
30 #include "APAGeometryAlg.h"
32 namespace detinfo {
33  class DetectorPropertiesData;
34 }
35 
36 #include "TMatrixD.h"
37 #include "TVectorD.h"
38 
39 
40 
41 namespace dune{
42 
43  //---------------------------------------------------------------
45  public:
46 
47 
49 
50  void reconfigure(fhicl::ParameterSet const& p);
51 
52  void RunDisambig(detinfo::DetectorPropertiesData const& detProp,
53  const std::vector< art::Ptr<recob::Hit> > &OrigHits );
54  ///< Run disambiguation as currently configured
55 
56 
57  std::vector< std::pair<art::Ptr<recob::Hit>, geo::WireID> > fDisambigHits;
58  ///< The final list of hits to pass back to be made
59 
60  private:
61 
62  bool notOuterWire(geo::WireID wireid);
63 
64  int longTPC(int apa);
65 
66  // other classes we will use
68  double fTimeCut;
69  double fDistanceCut;
70  double fDcut2;
71  }; // class DisambigAlgProtoDUNESP
72 
73 } // namespace dune
74 
75 #endif // ifndef DisambigAlgProtoDUNESP_H
struct vector vector
art framework interface to geometry description
std::vector< std::pair< art::Ptr< recob::Hit >, geo::WireID > > fDisambigHits
The final list of hits to pass back to be made.
virtual void reconfigure(fhicl::ParameterSet const &pset)
p
Definition: test.py:223
General LArSoft Utilities.
Definition of data types for geometry description.
Declaration of signal hit object.
Declaration of basic channel signal object.
dune::apa::APAGeometryAlg fAPAGeo