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 
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 
37  static void fillDescriptions(edm::ParameterSetDescription& desc);
38  static const char *fillDescriptionsLabel() { return "ConsecutiveHits"; }
39 
40  // initialize the "event dependent state"
41  virtual 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"
47  virtual void makeSeed(TrajectorySeedCollection & seedCollection,
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
virtual void init(const TrackingRegion &region, const edm::EventSetup &es, const SeedComparitor *filter)=0
#define dso_hidden
tuple cfg
Definition: looper.py:293
virtual void makeSeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits)=0
edm::ESHandle< Propagator > propagatorHandle
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:11
std::vector< TrajectorySeed > TrajectorySeedCollection
tuple TTRHBuilder
Definition: HLT_FULL_cff.py:45
SeedFromConsecutiveHitsCreator(const edm::ParameterSet &cfg)
edm::ESHandle< TrackerGeometry > tracker
edm::ESHandle< MagneticField > bfield