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");
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
SeedingHitSet
Definition: SeedingHitSet.h:6
FastHelix
Definition: FastHelix.h:26
SeedingHitSet::ConstRecHitPointer
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:10
SimpleClusterProbabilitySeedComparitor::SimpleClusterProbabilitySeedComparitor
SimpleClusterProbabilitySeedComparitor(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
Definition: SimpleClusterProbabilitySeedComparitor.cc:24
SimpleClusterProbabilitySeedComparitor::~SimpleClusterProbabilitySeedComparitor
~SimpleClusterProbabilitySeedComparitor() override
Definition: SimpleClusterProbabilitySeedComparitor.cc:28
SimpleClusterProbabilitySeedComparitor::compatible
bool compatible(const SeedingHitSet &hits) const override
Definition: SimpleClusterProbabilitySeedComparitor.cc:12
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
SeedComparitor
Definition: SeedComparitor.h:25
SimpleClusterProbabilitySeedComparitor::compatible
bool compatible(const SeedingHitSet &hits, const GlobalTrajectoryParameters &helixStateAtVertex, const FastHelix &helix) const override
Definition: SimpleClusterProbabilitySeedComparitor.cc:14
GlobalTrajectoryParameters
Definition: GlobalTrajectoryParameters.h:15
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
SimpleClusterProbabilitySeedComparitor
Definition: SimpleClusterProbabilitySeedComparitor.cc:7
SimpleClusterProbabilitySeedComparitor::probCut_
float probCut_
Definition: SimpleClusterProbabilitySeedComparitor.cc:21
edm::ParameterSet
Definition: ParameterSet.h:47
SeedComparitorFactory.h
edmplugin::PluginFactory
Definition: PluginFactory.h:34
edm::EventSetup
Definition: EventSetup.h:58
looper.cfg
cfg
Definition: looper.py:296
SimpleClusterProbabilitySeedComparitor::init
void init(const edm::Event &ev, const edm::EventSetup &es) override
Definition: SimpleClusterProbabilitySeedComparitor.cc:11
SeedComparitor.h
ev
bool ev
Definition: Hydjet2Hadronizer.cc:97
ParameterSet.h
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
hit
Definition: SiStripHitEffFromCalibTree.cc:88