CMS 3D CMS Logo

RPixDetTrackFinder.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_RPixDetTrackFinder_H
11 #define RecoCTPPS_PixelLocal_RPixDetTrackFinder_H
12 
14 
18 
19 #include "CLHEP/Vector/ThreeVector.h"
21 
22 #include <vector>
23 #include <map>
24 
26 public:
28 
29  virtual ~RPixDetTrackFinder(){};
30 
31  void setHits(std::map<CTPPSPixelDetId, std::vector<RPixDetPatternFinder::PointInPlane> > *hitMap) {
32  hitMap_ = hitMap;
33  }
34  virtual void findTracks(int run) = 0;
35  virtual void initialize() = 0;
36  void clear() { localTrackVector_.clear(); }
37  std::vector<CTPPSPixelLocalTrack> const &getLocalTracks() const { return localTrackVector_; }
38  void setRomanPotId(CTPPSPixelDetId rpId) { romanPotId_ = rpId; };
40  void setListOfPlanes(std::vector<uint32_t> listOfAllPlanes) { listOfAllPlanes_ = listOfAllPlanes; }
41  void setZ0(double z0) { z0_ = z0; }
42 
43 protected:
44  std::map<CTPPSPixelDetId, std::vector<RPixDetPatternFinder::PointInPlane> > *hitMap_;
45  std::vector<CTPPSPixelLocalTrack> localTrackVector_;
49  std::vector<uint32_t> listOfAllPlanes_;
50  double z0_;
51 };
52 
53 #endif
virtual void initialize()=0
std::vector< CTPPSPixelLocalTrack > localTrackVector_
void setZ0(double z0)
std::vector< CTPPSPixelLocalTrack > const & getLocalTracks() const
RPixDetTrackFinder(edm::ParameterSet const &parameterSet)
std::map< CTPPSPixelDetId, std::vector< RPixDetPatternFinder::PointInPlane > > * hitMap_
std::vector< uint32_t > listOfAllPlanes_
The manager class for TOTEM RP geometry.
Definition: CTPPSGeometry.h:33
void setRomanPotId(CTPPSPixelDetId rpId)
const CTPPSGeometry * geometry_
ESHandle< TrackerGeometry > geometry
void setGeometry(const CTPPSGeometry *geometry)
CTPPSPixelDetId romanPotId_
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11
void setHits(std::map< CTPPSPixelDetId, std::vector< RPixDetPatternFinder::PointInPlane > > *hitMap)
virtual void findTracks(int run)=0
void setListOfPlanes(std::vector< uint32_t > listOfAllPlanes)