CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SimpleClusterProbabilitySeedComparitor.cc
Go to the documentation of this file.
4 
5 #include <cmath>
6 
8  public:
11  virtual void init(const edm::EventSetup& es) {}
12  virtual bool compatible(const SeedingHitSet &hits, const TrackingRegion & region) const { return true; }
13  virtual bool compatible(const TrajectorySeed &seed) const { return true; }
14  virtual bool compatible(const TrajectoryStateOnSurface &,
16  virtual bool compatible(const SeedingHitSet &hits,
17  const GlobalTrajectoryParameters &helixStateAtVertex,
18  const FastHelix &helix,
19  const TrackingRegion & region) const { return true; }
20  virtual bool compatible(const SeedingHitSet &hits,
21  const GlobalTrajectoryParameters &straightLineStateAtVertex,
22  const TrackingRegion & region) const { return true; }
23 
24 
25  private:
26  float probCut_;
27 };
28 
29 
31  probCut_(cfg.getParameter<double>("LogPixelProbabilityCut"))
32 {
33 }
34 
36 {
37 }
38 
39 bool
42 {
43  return (probCut_ < -15.) || (log10(hit->clusterProbability()) > probCut_);
44 }
45 
46 DEFINE_EDM_PLUGIN(SeedComparitorFactory, SimpleClusterProbabilitySeedComparitor, "SimpleClusterProbabilitySeedComparitor");
virtual bool compatible(const SeedingHitSet &hits, const GlobalTrajectoryParameters &straightLineStateAtVertex, const TrackingRegion &region) const
virtual bool compatible(const TrajectorySeed &seed) const
virtual bool compatible(const SeedingHitSet &hits, const GlobalTrajectoryParameters &helixStateAtVertex, const FastHelix &helix, const TrackingRegion &region) const
virtual bool compatible(const SeedingHitSet &hits, const TrackingRegion &region) const
#define DEFINE_EDM_PLUGIN(factory, type, name)