CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SeedForPhotonConversionFromQuadruplets.h
Go to the documentation of this file.
1 #ifndef SeedForPhotonConversionFromQuadruplets_H
2 #define SeedForPhotonConversionFromQuadruplets_H
3 
10 
12 public:
13  static const int cotTheta_Max=99999;
14 
16  thePropagatorLabel(cfg.getParameter<std::string>("propagator")),
17  theBOFFMomentum(cfg.existsAs<double>("SeedMomentumForBOFF") ? cfg.getParameter<double>("SeedMomentumForBOFF") : 5.0)
18  {}
19 
21  const std::string & propagator = "PropagatorWithMaterial", double seedMomentumForBOFF = -5.0)
22  : thePropagatorLabel(propagator), theBOFFMomentum(seedMomentumForBOFF) { }
23 
24  //dtor
26 
27  virtual const TrajectorySeed * trajectorySeed( TrajectorySeedCollection & seedCollection,
28  const SeedingHitSet & phits,
29  const SeedingHitSet & mhits,
30  const TrackingRegion & region,
31  const edm::EventSetup& es,
32  std::stringstream& ss, std::vector<Quad> & quadV);
33 
35  TrajectorySeedCollection & seedCollection,
36  const SeedingHitSet & hits,
37  const TrackingRegion & region,
38  const edm::EventSetup& es,
39  const SeedComparitor *filter){ return 0;}
40 
42  double verySimpleFit(int size, double* ax, double* ay, double* e2y, double& p0, double& e2p0, double& p1);
44 
45  //
46  // Some utility methods added by sguazz
47  void stupidPrint(std::string s,float* d);
48  void stupidPrint(std::string s,double* d);
49  void stupidPrint(const char* s,GlobalPoint* d);
50  void stupidPrint(const char* s,GlobalPoint* d, int n);
51  void bubbleSortVsPhi(GlobalPoint arr[], int n, GlobalPoint vtx);
52  void bubbleReverseSortVsPhi(GlobalPoint arr[], int n, GlobalPoint vtx);
53  //
54  //
55 
56 
57 
58 
59  protected:
60 
61  virtual bool checkHit(
64  const edm::EventSetup& es) const { return true; }
65 
67  const SeedingHitSet & hits,
68  const GlobalPoint & vertexPos,
69  const edm::EventSetup& es,
70  const float cotTheta) const;
71 
73  const GlobalVector& vertexBounds,
74  float ptMin,
75  float sinTheta) const;
76 
77  virtual const TrajectorySeed * buildSeed(
78  TrajectorySeedCollection & seedCollection,
79  const SeedingHitSet & hits,
80  const FreeTrajectoryState & fts,
81  const edm::EventSetup& es) const;
82 
85  const TrajectoryStateOnSurface &state) const;
86 
87  bool similarQuadExist(Quad & thisQuad, std::vector<Quad>& quadV);
88 
89 
90 protected:
91  std::string thePropagatorLabel;
93 
94  std::stringstream * pss;
96 };
97 #endif
virtual CurvilinearTrajectoryError initialError(const GlobalVector &vertexBounds, float ptMin, float sinTheta) const
void bubbleReverseSortVsPhi(GlobalPoint arr[], int n, GlobalPoint vtx)
virtual const TrajectorySeed * trajectorySeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits, const TrackingRegion &region, const edm::EventSetup &es, const SeedComparitor *filter)
void bubbleSortVsPhi(GlobalPoint arr[], int n, GlobalPoint vtx)
SeedForPhotonConversionFromQuadruplets(const std::string &propagator="PropagatorWithMaterial", double seedMomentumForBOFF=-5.0)
double getSqrEffectiveErrorOnZ(const TransientTrackingRecHit::ConstRecHitPointer &hit, const TrackingRegion &region)
virtual GlobalTrajectoryParameters initialKinematic(const SeedingHitSet &hits, const GlobalPoint &vertexPos, const edm::EventSetup &es, const float cotTheta) const
double verySimpleFit(int size, double *ax, double *ay, double *e2y, double &p0, double &e2p0, double &p1)
std::vector< TrajectorySeed > TrajectorySeedCollection
virtual TransientTrackingRecHit::RecHitPointer refitHit(const TransientTrackingRecHit::ConstRecHitPointer &hit, const TrajectoryStateOnSurface &state) const
virtual bool checkHit(const TrajectoryStateOnSurface &, const TransientTrackingRecHit::ConstRecHitPointer &hit, const edm::EventSetup &es) const
double simpleGetSlope(const TransientTrackingRecHit::ConstRecHitPointer &ohit, const TransientTrackingRecHit::ConstRecHitPointer &nohit, const TransientTrackingRecHit::ConstRecHitPointer &ihit, const TransientTrackingRecHit::ConstRecHitPointer &nihit, const TrackingRegion &region, double &cotTheta, double &z0)
char state
Definition: procUtils.cc:75
virtual const TrajectorySeed * trajectorySeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &phits, const SeedingHitSet &mhits, const TrackingRegion &region, const edm::EventSetup &es, std::stringstream &ss, std::vector< Quad > &quadV)
double p1[4]
Definition: TauolaWrapper.h:89
bool similarQuadExist(Quad &thisQuad, std::vector< Quad > &quadV)
Definition: Quad.h:4
virtual const TrajectorySeed * buildSeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits, const FreeTrajectoryState &fts, const edm::EventSetup &es) const
tuple size
Write out results.