CMS 3D CMS Logo

SimpleClusterProbabilitySeedComparitor.cc
Go to the documentation of this file.
4 
5 #include <cmath>
6 
8  public:
11  virtual void init(const edm::Event& ev, const edm::EventSetup& es) override {}
12  virtual bool compatible(const SeedingHitSet &hits) const override { return true; }
13  virtual bool compatible(const TrajectoryStateOnSurface &,
14  SeedingHitSet::ConstRecHitPointer hit) const override ;
15  virtual bool compatible(const SeedingHitSet &hits,
16  const GlobalTrajectoryParameters &helixStateAtVertex,
17  const FastHelix &helix) const override { return true; }
18 
19 
20  private:
21  float probCut_;
22 };
23 
24 
26  probCut_(cfg.getParameter<double>("LogPixelProbabilityCut"))
27 {
28 }
29 
31 {
32 }
33 
34 bool
37 {
38  return (probCut_ < -15.) || (log10(hit->clusterProbability()) > probCut_);
39 }
40 
41 DEFINE_EDM_PLUGIN(SeedComparitorFactory, SimpleClusterProbabilitySeedComparitor, "SimpleClusterProbabilitySeedComparitor");
virtual bool compatible(const SeedingHitSet &hits, const GlobalTrajectoryParameters &helixStateAtVertex, const FastHelix &helix) const override
bool ev
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:11
virtual void init(const edm::Event &ev, const edm::EventSetup &es) override
#define DEFINE_EDM_PLUGIN(factory, type, name)
virtual bool compatible(const SeedingHitSet &hits) const override
SimpleClusterProbabilitySeedComparitor(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)