RecoTracker
TkSeedingLayers
plugins
SimpleClusterProbabilitySeedComparitor.cc
Go to the documentation of this file.
1
#include "
RecoTracker/TkSeedingLayers/interface/SeedComparitor.h
"
2
#include "
RecoTracker/TkSeedingLayers/interface/SeedComparitorFactory.h
"
3
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
4
5
#include <cmath>
6
7
class
SimpleClusterProbabilitySeedComparitor
:
public
SeedComparitor
{
8
public
:
9
SimpleClusterProbabilitySeedComparitor
(
const
edm::ParameterSet
&
cfg
,
edm::ConsumesCollector
&iC);
10
~SimpleClusterProbabilitySeedComparitor
()
override
;
11
void
init
(
const
edm::Event
&
ev
,
const
edm::EventSetup
&es)
override
{}
12
bool
compatible
(
const
SeedingHitSet
&
hits
)
const override
{
return
true
; }
13
bool
compatible
(
const
TrajectoryStateOnSurface
&,
SeedingHitSet::ConstRecHitPointer
hit
)
const override
;
14
bool
compatible
(
const
SeedingHitSet
&
hits
,
15
const
GlobalTrajectoryParameters
&helixStateAtVertex,
16
const
FastHelix
&helix)
const override
{
17
return
true
;
18
}
19
20
private
:
21
float
probCut_
;
22
};
23
24
SimpleClusterProbabilitySeedComparitor::SimpleClusterProbabilitySeedComparitor
(
const
edm::ParameterSet
&
cfg
,
25
edm::ConsumesCollector
&iC)
26
: probCut_(
cfg
.getParameter<double>(
"LogPixelProbabilityCut"
)) {}
27
28
SimpleClusterProbabilitySeedComparitor::~SimpleClusterProbabilitySeedComparitor
() {}
29
30
bool
SimpleClusterProbabilitySeedComparitor::compatible
(
const
TrajectoryStateOnSurface
&tsos,
31
SeedingHitSet::ConstRecHitPointer
hit
)
const
{
32
return
(
probCut_
< -15.) || (log10(
hit
->clusterProbability()) >
probCut_
);
33
}
34
35
DEFINE_EDM_PLUGIN
(
SeedComparitorFactory
,
36
SimpleClusterProbabilitySeedComparitor
,
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:57
looper.cfg
cfg
Definition:
looper.py:297
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:95
ParameterSet.h
edm::Event
Definition:
Event.h:73
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
hit
Definition:
SiStripHitEffFromCalibTree.cc:88
Generated for CMSSW Reference Manual by
1.8.16