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 RecoCTPPS_PixelLocal_RPixDetPatternFinder_H
11 #define RecoCTPPS_PixelLocal_RPixDetPatternFinder_H
12 
14 
17 
20 
22 #include "CLHEP/Vector/ThreeVector.h"
23 #include "CLHEP/Vector/RotationInterfaces.h"
25 
26 #include <vector>
27 
29 public:
31 
32  virtual ~RPixDetPatternFinder(){};
33 
34  typedef struct {
35  CLHEP::Hep3Vector globalPoint;
39  } PointInPlane;
40  typedef std::vector<PointInPlane> Road;
41 
42  void setHits(const edm::DetSetVector<CTPPSPixelRecHit> *hitVector) { hitVector_ = hitVector; }
43  virtual void findPattern() = 0;
44  void clear() { patternVector_.clear(); }
45  std::vector<Road> const &getPatterns() const { return patternVector_; }
47 
48 protected:
50  std::vector<Road> patternVector_;
52 };
53 
54 #endif
std::vector< Road > const & getPatterns() const
RPixDetPatternFinder(edm::ParameterSet const &parameterSet)
ErrorD< N >::type type
Definition: Error.h:32
std::vector< PointInPlane > Road
void setGeometry(const CTPPSGeometry *geometry)
const CTPPSGeometry * geometry_
const edm::DetSetVector< CTPPSPixelRecHit > * hitVector_
virtual void findPattern()=0
std::vector< Road > patternVector_
The manager class for TOTEM RP geometry.
Definition: CTPPSGeometry.h:33
ESHandle< TrackerGeometry > geometry
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11
void setHits(const edm::DetSetVector< CTPPSPixelRecHit > *hitVector)