test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalTrackingRegion.h
Go to the documentation of this file.
1 #ifndef GlobalTrackingRegion_H
2 #define GlobalTrackingRegion_H
3 
11 #include <vector>
12 
13 class GlobalTrackingRegion final : public TrackingRegion {
14 public:
15 
23  float originRadius, float originHalfLength, bool precise=false, bool useMS=false)
24  : TrackingRegionBase(GlobalVector( 0, 0, 0), origin,
25  Range( -1/ptMin, 1/ptMin), originRadius, originHalfLength),
26  thePrecise(precise), theUseMS(useMS) { }
27 
28  // obsolete constructor
29  GlobalTrackingRegion ( float ptMin = 1., float originRadius = 0.2,
30  float originHalfLength = 22.7, float originZPos = 0.,
31  bool precise = false)
32  : TrackingRegionBase(GlobalVector( 0, 0, 0), GlobalPoint( 0, 0, originZPos),
34  thePrecise(precise) { }
35 
37  const edm::Event& ev,
38  const edm::EventSetup& es,
39  const SeedingLayerSetsHits::SeedingLayer& layer) const override;
40 
41 
42  virtual HitRZCompatibility * checkRZ(const DetLayer* layer,
43  const Hit & outerHit,
44  const edm::EventSetup& iSetup,
45  const DetLayer* outerlayer=0,
46  float lr=0, float gz=0, float dr=0, float dz=0) const ;
47 
48  virtual GlobalTrackingRegion* clone() const {
49  return new GlobalTrackingRegion(*this);
50  }
51 
52  virtual std::string name() const { return "GlobalTrackingRegion"; }
53  virtual std::string print() const;
54 
55 private:
56  bool thePrecise=false;
57  bool theUseMS=false;
58 };
59 #endif
GlobalPoint const & origin() const
bool ev
TrackingRegion::Hits hits(const edm::Event &ev, const edm::EventSetup &es, const SeedingLayerSetsHits::SeedingLayer &layer) const override
get hits from layer compatible with region constraints
virtual HitRZCompatibility * checkRZ(const DetLayer *layer, const Hit &outerHit, const edm::EventSetup &iSetup, const DetLayer *outerlayer=0, float lr=0, float gz=0, float dr=0, float dz=0) const
virtual std::string print() const
virtual GlobalTrackingRegion * clone() const
virtual std::string name() const
GlobalTrackingRegion(float ptMin, const GlobalPoint &origin, float originRadius, float originHalfLength, bool precise=false, bool useMS=false)
SeedingLayerSetsHits::Hits Hits
float ptMin() const
minimal pt of interest
GlobalTrackingRegion(float ptMin=1., float originRadius=0.2, float originHalfLength=22.7, float originZPos=0., bool precise=false)