CMS 3D CMS Logo

SeedFromConsecutiveHitsCreator.h
Go to the documentation of this file.
1 #ifndef RecoTracker_TkSeedGenerator_SeedFromConsecutiveHitsCreator_H
2 #define RecoTracker_TkSeedGenerator_SeedFromConsecutiveHitsCreator_H
3 
12 
14 
17 
18 namespace edm { class ParameterSetDescription; }
20 
22 public:
23 
25  : thePropagatorLabel (cfg.getParameter<std::string>("propagator"))
26  , theBOFFMomentum (cfg.getParameter<double>("SeedMomentumForBOFF"))
27  , theOriginTransverseErrorMultiplier(cfg.getParameter<double>("OriginTransverseErrorMultiplier"))
28  , theMinOneOverPtError (cfg.getParameter<double>("MinOneOverPtError"))
29  , TTRHBuilder (cfg.getParameter<std::string>("TTRHBuilder"))
30  , mfName_(cfg.getParameter<std::string>("magneticField"))
31  , forceKinematicWithRegionDirection_(cfg.getParameter<bool>("forceKinematicWithRegionDirection"))
32  {}
33 
34  //dtor
36 
38  static const char *fillDescriptionsLabel() { return "ConsecutiveHits"; }
39 
40  // initialize the "event dependent state"
41  void init(const TrackingRegion & region,
42  const edm::EventSetup& es,
43  const SeedComparitor *filter) final;
44 
45  // make job
46  // fill seedCollection with the "TrajectorySeed"
48  const SeedingHitSet & hits) final;
49 
50 
51 private:
52 
53  virtual bool initialKinematic(GlobalTrajectoryParameters & kine,
54  const SeedingHitSet & hits) const;
55 
56 
57  bool checkHit(
58  const TrajectoryStateOnSurface &tsos,
60 
61 
62  CurvilinearTrajectoryError initialError(float sin2Theta) const dso_hidden;
63 
64  void buildSeed(TrajectorySeedCollection & seedCollection,
65  const SeedingHitSet & hits,
66  const FreeTrajectoryState & fts) const dso_hidden;
67 
70  const TrajectoryStateOnSurface & state) const dso_hidden;
71 
72 protected:
73 
78 
79  const TrackingRegion * region = nullptr;
80  const SeedComparitor *filter = nullptr;
84  float nomField;
85  bool isBOFF = false;
89 
91 
92 
93 };
94 #endif
edm::ESHandle< Propagator > propagatorHandle
int init
Definition: HydjetWrapper.h:67
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:11
std::vector< TrajectorySeed > TrajectorySeedCollection
SeedFromConsecutiveHitsCreator(const edm::ParameterSet &cfg)
#define dso_hidden
Definition: Visibility.h:12
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESHandle< TrackerGeometry > tracker
HLT enums.
edm::ESHandle< MagneticField > bfield