CMS 3D CMS Logo

RPixDetPatternFinder.h
Go to the documentation of this file.
1 /*
2  *
3 * This is a part of CTPPS offline software.
4 * Author:
5 * Fabrizio Ferro (ferro@ge.infn.it)
6 * Enrico Robutti (robutti@ge.infn.it)
7 * Fabio Ravera (fabio.ravera@cern.ch)
8 *
9 */
10 #ifndef RecoPPS_Local_RPixDetPatternFinder_H
11 #define RecoPPS_Local_RPixDetPatternFinder_H
12 
14 
17 
20 
23 
24 #include <vector>
25 
27 public:
29 
30  virtual ~RPixDetPatternFinder() {}
31 
32  typedef struct {
37  } PointInPlane;
38  typedef std::vector<PointInPlane> Road;
39 
40  void setHits(const edm::DetSetVector<CTPPSPixelRecHit> *hitVector) { hitVector_ = hitVector; }
41  virtual void findPattern(bool *is2planepot) = 0;
42  void clear() { patternVector_.clear(); }
43  std::vector<Road> const &getPatterns() const { return patternVector_; }
45 
46 protected:
48  std::vector<Road> patternVector_;
50 };
51 
52 #endif
RPixDetPatternFinder(edm::ParameterSet const &parameterSet)
ErrorD< N >::type type
Definition: Error.h:32
std::vector< PointInPlane > Road
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
DetGeomDesc::Translation Vector
Definition: CTPPSGeometry.h:36
void setGeometry(const CTPPSGeometry *geometry)
const CTPPSGeometry * geometry_
const edm::DetSetVector< CTPPSPixelRecHit > * hitVector_
std::vector< Road > patternVector_
std::pair< double, double > PointInPlane
Definition: HoughGrouping.h:29
virtual void findPattern(bool *is2planepot)=0
The manager class for TOTEM RP geometry.
Definition: CTPPSGeometry.h:30
std::vector< Road > const & getPatterns() const
void setHits(const edm::DetSetVector< CTPPSPixelRecHit > *hitVector)