CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SeedFromConsecutiveHitsCreator.h
Go to the documentation of this file.
1 #ifndef RecoTracker_TkSeedGenerator_SeedFromConsecutiveHitsCreator_H
2 #define RecoTracker_TkSeedGenerator_SeedFromConsecutiveHitsCreator_H
3 
12 
14 
16 public:
17 
19  thePropagatorLabel(cfg.getParameter<std::string>("propagator")),
20  theBOFFMomentum(cfg.existsAs<double>("SeedMomentumForBOFF") ? cfg.getParameter<double>("SeedMomentumForBOFF") : 5.0),
21  theOriginTransverseErrorMultiplier(cfg.existsAs<double>("OriginTransverseErrorMultiplier") ? cfg.getParameter<double>("OriginTransverseErrorMultiplier") : 1.0),
22  theMinOneOverPtError(cfg.existsAs<double>("MinOneOverPtError") ? cfg.getParameter<double>("MinOneOverPtError") : 1.0)
23  {}
24 
26  const std::string & propagator = "PropagatorWithMaterial", double seedMomentumForBOFF = -5.0,
27  double aOriginTransverseErrorMultiplier = 1.0, double aMinOneOverPtError = 1.0)
28  : thePropagatorLabel(propagator), theBOFFMomentum(seedMomentumForBOFF),
29  theOriginTransverseErrorMultiplier(aOriginTransverseErrorMultiplier), theMinOneOverPtError(aMinOneOverPtError) { }
30 
31  //dtor
33 
34  // initialize the "event dependent state"
35  virtual void init(const TrackingRegion & region,
36  const edm::EventSetup& es,
38 
39  // make job
40  // fill seedCollection with the "TrajectorySeed"
41  virtual void makeSeed(TrajectorySeedCollection & seedCollection,
42  const SeedingHitSet & hits) GCC11_FINAL;
43 
44 
45 private:
46 
47  virtual bool initialKinematic(GlobalTrajectoryParameters & kine,
48  const SeedingHitSet & hits) const;
49 
50 
51  bool checkHit(
52  const TrajectoryStateOnSurface &tsos,
54 
55 
56  CurvilinearTrajectoryError initialError(float sin2Theta) const dso_hidden;
57 
58  void buildSeed(TrajectorySeedCollection & seedCollection,
59  const SeedingHitSet & hits,
60  const FreeTrajectoryState & fts) const dso_hidden;
61 
64 
65 protected:
66 
71 
72  const TrackingRegion * region = nullptr;
73  const SeedComparitor *filter = nullptr;
77  float nomField;
78  bool isBOFF = false;
79 
80 };
81 #endif
edm::ESHandle< Propagator > propagatorHandle
bool checkHit(const TrajectoryStateOnSurface &tsos, const TransientTrackingRecHit::ConstRecHitPointer &hit) const dso_hidden
virtual bool initialKinematic(GlobalTrajectoryParameters &kine, const SeedingHitSet &hits) const
void buildSeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits, const FreeTrajectoryState &fts) const dso_hidden
std::vector< TrajectorySeed > TrajectorySeedCollection
virtual void init(const TrackingRegion &region, const edm::EventSetup &es, const SeedComparitor *filter) GCC11_FINAL
#define GCC11_FINAL
SeedFromConsecutiveHitsCreator(const edm::ParameterSet &cfg)
#define dso_hidden
Definition: Visibility.h:12
edm::ESHandle< TrackerGeometry > tracker
char state
Definition: procUtils.cc:75
SeedFromConsecutiveHitsCreator(const std::string &propagator="PropagatorWithMaterial", double seedMomentumForBOFF=-5.0, double aOriginTransverseErrorMultiplier=1.0, double aMinOneOverPtError=1.0)
virtual void makeSeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits) GCC11_FINAL
CurvilinearTrajectoryError initialError(float sin2Theta) const dso_hidden
TransientTrackingRecHit::RecHitPointer refitHit(const TransientTrackingRecHit::ConstRecHitPointer &hit, const TrajectoryStateOnSurface &state) const dso_hidden
edm::ESHandle< MagneticField > bfield