CMS 3D CMS Logo

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