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 
5 #include "PrintRecoObjects.h"
11 
13 
14 
16 
18 
19 //
20 // this class need to be cleaned and optimized as those in RecoTracker/TkSeedGenerator
21 //
23 public:
24  static const int cotTheta_Max=99999;
25 
27  thePropagatorLabel(cfg.getParameter<std::string>("propagator")),
28  theBOFFMomentum(cfg.existsAs<double>("SeedMomentumForBOFF") ? cfg.getParameter<double>("SeedMomentumForBOFF") : 5.0)
29  {}
30 
32  const std::string & propagator = "PropagatorWithMaterial", double seedMomentumForBOFF = -5.0)
33  : thePropagatorLabel(propagator), theBOFFMomentum(seedMomentumForBOFF) { }
34 
35  //dtor
37 
38  const TrajectorySeed * trajectorySeed( TrajectorySeedCollection & seedCollection,
39  const SeedingHitSet & hits,
40  const GlobalPoint & vertex,
41  const GlobalVector & vertexBounds,
42  float ptmin,
43  const edm::EventSetup& es,
44  float cotTheta,
45  std::stringstream& ss);
46 
47 
48  protected:
49 
50  bool checkHit(
53  const edm::EventSetup& es) const { return true; }
54 
55  GlobalTrajectoryParameters initialKinematic(
56  const SeedingHitSet & hits,
57  const GlobalPoint & vertexPos,
58  const edm::EventSetup& es,
59  const float cotTheta) const;
60 
61  CurvilinearTrajectoryError initialError(
62  const GlobalVector& vertexBounds,
63  float ptMin,
64  float sinTheta) const;
65 
66  const TrajectorySeed * buildSeed(
67  TrajectorySeedCollection & seedCollection,
68  const SeedingHitSet & hits,
69  const FreeTrajectoryState & fts,
70  const edm::EventSetup& es) const;
71 
73  const TrajectoryStateOnSurface &state) const;
74 
75 protected:
78 
79  // FIXME (well the whole class needs to be fixed!)
81 
82  std::stringstream * pss;
84 };
85 #endif
#define dso_hidden
tuple cfg
Definition: looper.py:237
SeedForPhotonConversion1Leg(const std::string &propagator="PropagatorWithMaterial", double seedMomentumForBOFF=-5.0)
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:11
std::vector< TrajectorySeed > TrajectorySeedCollection
SeedForPhotonConversion1Leg(const edm::ParameterSet &cfg)
double ptmin
Definition: HydjetWrapper.h:85
bool checkHit(const TrajectoryStateOnSurface &, const SeedingHitSet::ConstRecHitPointer &hit, const edm::EventSetup &es) const