CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HitPairGeneratorFromLayerPairForPhotonConversion.h
Go to the documentation of this file.
1 #ifndef HitPairGeneratorFromLayerPairForPhotonConversion_h
2 #define HitPairGeneratorFromLayerPairForPhotonConversion_h
3 
8 
10 
11 class DetLayer;
12 class TrackingRegion;
13 
15 
16 public:
17 
20 
22  const Layer& outer,
23  LayerCacheType* layerCache,
24  unsigned int nSize=30000,
25  unsigned int max=0);
26 
28 
29  void hitPairs( const ConversionRegion& convRegion, const TrackingRegion& reg, OrderedHitPairs & prs,
30  const edm::Event & ev, const edm::EventSetup& es);
31 
32  virtual void hitPairs( const TrackingRegion& reg, OrderedHitPairs & prs,
33  const edm::Event & ev, const edm::EventSetup& es){};
34 
37  }
38 
39  const Layer & innerLayer() const { return theInnerLayer; }
40  const Layer & outerLayer() const { return theOuterLayer; }
41 
42  float getLayerRadius(const DetLayer& layer);
43  float getLayerZ(const DetLayer& layer);
44 
45  bool checkBoundaries(const DetLayer& layer,const ConversionRegion& convRegion,float maxSearchR, float maxSearchZ);
46  bool getPhiRange(float& Phimin, float& Phimax,const DetLayer& layer, const ConversionRegion &convRegion, const edm::EventSetup& es);
47  bool getPhiRange(float& Phimin, float& Phimax, const float& layerR, const ConversionRegion &convRegion, const edm::EventSetup& es);
48  bool checkRZCompatibilityWithSeedTrack(const RecHitsSortedInPhi::Hit & hit, const DetLayer& layer, const ConversionRegion& convRegion);
49 
50 
51 private:
52 
53  double getCot(double dz, double dr);
54 
58 
59  std::stringstream *ss;
60 
61 };
62 
63 #endif
HitPairGeneratorFromLayerPairForPhotonConversion(const Layer &inner, const Layer &outer, LayerCacheType *layerCache, unsigned int nSize=30000, unsigned int max=0)
bool checkRZCompatibilityWithSeedTrack(const RecHitsSortedInPhi::Hit &hit, const DetLayer &layer, const ConversionRegion &convRegion)
virtual void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)
void hitPairs(const ConversionRegion &convRegion, const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)
virtual HitPairGeneratorFromLayerPairForPhotonConversion * clone() const
const T & max(const T &a, const T &b)
bool getPhiRange(float &Phimin, float &Phimax, const DetLayer &layer, const ConversionRegion &convRegion, const edm::EventSetup &es)
bool checkBoundaries(const DetLayer &layer, const ConversionRegion &convRegion, float maxSearchR, float maxSearchZ)