CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalTrackingRegionProducer.h
Go to the documentation of this file.
1 #ifndef RecoTracker_TkTrackingRegions_GlobalTrackingRegionProducer_H
2 #define RecoTracker_TkTrackingRegions_GlobalTrackingRegionProducer_H
3 
8 
10 
11 public:
12 
14  edm::ConsumesCollector && iC) {
15 
16  edm::ParameterSet regionPSet = cfg.getParameter<edm::ParameterSet>("RegionPSet");
17 
18  thePtMin = regionPSet.getParameter<double>("ptMin");
19  theOriginRadius = regionPSet.getParameter<double>("originRadius");
20  theOriginHalfLength = regionPSet.getParameter<double>("originHalfLength");
21  double xPos = regionPSet.getParameter<double>("originXPos");
22  double yPos = regionPSet.getParameter<double>("originYPos");
23  double zPos = regionPSet.getParameter<double>("originZPos");
24  thePrecise = regionPSet.getParameter<bool>("precise");
25  theOrigin = GlobalPoint(xPos,yPos,zPos);
26  }
27 
29 
30  virtual std::vector<TrackingRegion* > regions(const edm::Event&, const edm::EventSetup&) const {
31  std::vector<TrackingRegion* > result;
32  result.push_back(
34  return result;
35  }
36 
37 private:
38  double thePtMin;
40  double theOriginRadius;
42  bool thePrecise;
43 };
44 
45 #endif
T getParameter(std::string const &) const
tuple cfg
Definition: looper.py:259
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
virtual std::vector< TrackingRegion * > regions(const edm::Event &, const edm::EventSetup &) const
tuple result
Definition: query.py:137
GlobalTrackingRegionProducer(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)