CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HitQuadrupletGeneratorFromLayerPairForPhotonConversion.h
Go to the documentation of this file.
1 #ifndef HitQuadrupletGeneratorFromLayerPairForPhotonConversion_h
2 #define HitQuadrupletGeneratorFromLayerPairForPhotonConversion_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  virtual void hitPairs( const TrackingRegion& reg, OrderedHitPairs & prs,
30  const edm::Event & ev, const edm::EventSetup& es);
31 
34  }
35 
36  const Layer & innerLayer() const { return theInnerLayer; }
37  const Layer & outerLayer() const { return theOuterLayer; }
38 
39  bool failCheckRZCompatibility(const RecHitsSortedInPhi::Hit & hit, const DetLayer& layer, const HitRZCompatibility *checkRZ, const TrackingRegion & region);
40  //void checkPhiRange(double phi1, double phi2);
41 
42  bool failCheckSlopeTest(const RecHitsSortedInPhi::Hit & ohit, const RecHitsSortedInPhi::Hit & nohit, const RecHitsSortedInPhi::Hit & ihit, const RecHitsSortedInPhi::Hit & nihit, const TrackingRegion & region);
43  void bubbleSortVsR(int n, double* ax, double* ay, double* aey);
44  bool failCheckSegmentZCompatibility(double &rInn, double &zInnMin, double &zInnMax,
45  double &rInt, double &zIntMin, double &zIntMax,
46  double &rOut, double &zOutMin, double &zOutMax);
47  double getZAtR(double &rInn, double &zInn, double &r, double &rOut, double &zOut);
48  double verySimpleFit(int size, double* ax, double* ay, double* e2y, double& p0, double& e2p0, double& p1);
49  double getSqrEffectiveErrorOnZ(const RecHitsSortedInPhi::Hit & hit, const TrackingRegion & region);
50  double getEffectiveErrorOnZ(const RecHitsSortedInPhi::Hit & hit, const TrackingRegion & region);
51 
52 private:
53 
57 
58  std::stringstream *ss;
59 
60 };
61 
62 #endif
virtual HitQuadrupletGeneratorFromLayerPairForPhotonConversion * clone() const
virtual void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)
const T & max(const T &a, const T &b)
bool failCheckSegmentZCompatibility(double &rInn, double &zInnMin, double &zInnMax, double &rInt, double &zIntMin, double &zIntMax, double &rOut, double &zOutMin, double &zOutMax)
bool failCheckSlopeTest(const RecHitsSortedInPhi::Hit &ohit, const RecHitsSortedInPhi::Hit &nohit, const RecHitsSortedInPhi::Hit &ihit, const RecHitsSortedInPhi::Hit &nihit, const TrackingRegion &region)
double getEffectiveErrorOnZ(const RecHitsSortedInPhi::Hit &hit, const TrackingRegion &region)
double verySimpleFit(int size, double *ax, double *ay, double *e2y, double &p0, double &e2p0, double &p1)
double p1[4]
Definition: TauolaWrapper.h:89
double getZAtR(double &rInn, double &zInn, double &r, double &rOut, double &zOut)
bool failCheckRZCompatibility(const RecHitsSortedInPhi::Hit &hit, const DetLayer &layer, const HitRZCompatibility *checkRZ, const TrackingRegion &region)
HitQuadrupletGeneratorFromLayerPairForPhotonConversion(const Layer &inner, const Layer &outer, LayerCacheType *layerCache, unsigned int nSize=30000, unsigned int max=0)
tuple size
Write out results.
double getSqrEffectiveErrorOnZ(const RecHitsSortedInPhi::Hit &hit, const TrackingRegion &region)