CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SeedForPhotonConversion1Leg.h
Go to the documentation of this file.
1 #ifndef SeedForPhotonConversion1Leg_H
2 #define SeedForPhotonConversion1Leg_H
3 
11 
13 
15 
16 //
17 // this class need to be cleaned and optimized as those in RecoTracker/TkSeedGenerator
18 //
20 public:
21  static const int cotTheta_Max=99999;
22 
24  thePropagatorLabel(cfg.getParameter<std::string>("propagator")),
25  theBOFFMomentum(cfg.existsAs<double>("SeedMomentumForBOFF") ? cfg.getParameter<double>("SeedMomentumForBOFF") : 5.0)
26  {}
27 
29  const std::string & propagator = "PropagatorWithMaterial", double seedMomentumForBOFF = -5.0)
30  : thePropagatorLabel(propagator), theBOFFMomentum(seedMomentumForBOFF) { }
31 
32  //dtor
34 
35  const TrajectorySeed * trajectorySeed( TrajectorySeedCollection & seedCollection,
36  const SeedingHitSet & hits,
37  const GlobalPoint & vertex,
38  const GlobalVector & vertexBounds,
39  float ptmin,
40  const edm::EventSetup& es,
41  float cotTheta,
42  std::stringstream& ss);
43 
44 
45  protected:
46 
47  bool checkHit(
50  const edm::EventSetup& es) const { return true; }
51 
53  const SeedingHitSet & hits,
54  const GlobalPoint & vertexPos,
55  const edm::EventSetup& es,
56  const float cotTheta) const;
57 
59  const GlobalVector& vertexBounds,
60  float ptMin,
61  float sinTheta) const;
62 
63  const TrajectorySeed * buildSeed(
64  TrajectorySeedCollection & seedCollection,
65  const SeedingHitSet & hits,
66  const FreeTrajectoryState & fts,
67  const edm::EventSetup& es) const;
68 
71  const TrajectoryStateOnSurface &state) const;
72 
73 protected:
76 
77  std::stringstream * pss;
79 };
80 #endif
const TrajectorySeed * buildSeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits, const FreeTrajectoryState &fts, const edm::EventSetup &es) const
SeedForPhotonConversion1Leg(const std::string &propagator="PropagatorWithMaterial", double seedMomentumForBOFF=-5.0)
GlobalTrajectoryParameters initialKinematic(const SeedingHitSet &hits, const GlobalPoint &vertexPos, const edm::EventSetup &es, const float cotTheta) const
const TrajectorySeed * trajectorySeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits, const GlobalPoint &vertex, const GlobalVector &vertexBounds, float ptmin, const edm::EventSetup &es, float cotTheta, std::stringstream &ss)
std::vector< TrajectorySeed > TrajectorySeedCollection
bool checkHit(const TrajectoryStateOnSurface &, const TransientTrackingRecHit::ConstRecHitPointer &hit, const edm::EventSetup &es) const
SeedForPhotonConversion1Leg(const edm::ParameterSet &cfg)
char state
Definition: procUtils.cc:75
double ptmin
Definition: HydjetWrapper.h:86
TransientTrackingRecHit::RecHitPointer refitHit(const TransientTrackingRecHit::ConstRecHitPointer &hit, const TrajectoryStateOnSurface &state) const
CurvilinearTrajectoryError initialError(const GlobalVector &vertexBounds, float ptMin, float sinTheta) const