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 
21 
23 #include "CLHEP/Vector/ThreeVector.h"
24 #include "CLHEP/Vector/RotationInterfaces.h"
26 
27 #include <vector>
28 
30 
31 public:
33 
34  virtual ~RPixDetPatternFinder() {};
35 
36  typedef struct{
37  CLHEP::Hep3Vector globalPoint;
41  } PointInPlane;
42  typedef std::vector<PointInPlane> Road;
43 
44  void setHits(const edm::DetSetVector<CTPPSPixelRecHit> *hitVector) {hitVector_ = hitVector; }
45  virtual void findPattern()=0;
46  void clear(){
47  patternVector_.clear();
48  }
49  std::vector<Road> const& getPatterns() const {return patternVector_; }
51 
52 protected:
54  std::vector<Road> patternVector_;
56 
57 };
58 
59 #endif
std::vector< Road > const & getPatterns() const
RPixDetPatternFinder(edm::ParameterSet const &parameterSet)
ErrorD< N >::type type
Definition: Error.h:33
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)