TrackingTools
TrajectoryCleaning
interface
TrajectoryCleanerBySharedHits.h
Go to the documentation of this file.
1
#ifndef TrajectoryCleaning_TrajectoryCleanerBySharedHits_h
2
#define TrajectoryCleaning_TrajectoryCleanerBySharedHits_h
3
4
#include "
TrackingTools/TrajectoryCleaning/interface/TrajectoryCleaner.h
"
5
15
class
TrajectoryCleanerBySharedHits
:
public
TrajectoryCleaner
{
16
public
:
17
typedef
std::vector<Trajectory*>
TrajectoryPointerContainer
;
18
19
TrajectoryCleanerBySharedHits
()
20
:
theFraction
(0.19),
validHitBonus_
(5.0),
missingHitPenalty_
(20.0),
allowSharedFirstHit
(
true
) {}
21
TrajectoryCleanerBySharedHits
(
const
edm::ParameterSet
& iConfig)
22
:
theFraction
(iConfig.getParameter<double>(
"fractionShared"
)),
23
validHitBonus_
(iConfig.getParameter<double>(
"ValidHitBonus"
)),
24
missingHitPenalty_
(iConfig.getParameter<double>(
"MissingHitPenalty"
)),
25
allowSharedFirstHit
(iConfig.getParameter<
bool
>(
"allowSharedFirstHit"
)) {}
26
27
~TrajectoryCleanerBySharedHits
()
override
{};
28
29
using
TrajectoryCleaner::clean
;
30
void
clean
(
TrajectoryPointerContainer
&)
const override
;
31
32
private
:
33
float
theFraction
;
34
float
validHitBonus_
;
35
float
missingHitPenalty_
;
36
bool
allowSharedFirstHit
;
37
};
38
39
#endif
TrajectoryCleanerBySharedHits
Definition:
TrajectoryCleanerBySharedHits.h:15
electrons_cff.bool
bool
Definition:
electrons_cff.py:393
TrajectoryCleaner.h
TrajectoryCleanerBySharedHits::~TrajectoryCleanerBySharedHits
~TrajectoryCleanerBySharedHits() override
Definition:
TrajectoryCleanerBySharedHits.h:27
TrajectoryCleanerBySharedHits::allowSharedFirstHit
bool allowSharedFirstHit
Definition:
TrajectoryCleanerBySharedHits.h:36
TrajectoryCleaner::clean
virtual void clean(TempTrajectoryContainer &) const
Definition:
TrajectoryCleaner.cc:5
TrajectoryCleanerBySharedHits::clean
void clean(TrajectoryPointerContainer &) const override
Definition:
TrajectoryCleanerBySharedHits.cc:42
TrajectoryCleanerBySharedHits::theFraction
float theFraction
Definition:
TrajectoryCleanerBySharedHits.h:33
TrajectoryCleanerBySharedHits::TrajectoryPointerContainer
std::vector< Trajectory * > TrajectoryPointerContainer
Definition:
TrajectoryCleanerBySharedHits.h:17
funct::true
true
Definition:
Factorize.h:173
edm::ParameterSet
Definition:
ParameterSet.h:47
TrajectoryCleanerBySharedHits::missingHitPenalty_
float missingHitPenalty_
Definition:
TrajectoryCleanerBySharedHits.h:35
TrajectoryCleanerBySharedHits::TrajectoryCleanerBySharedHits
TrajectoryCleanerBySharedHits()
Definition:
TrajectoryCleanerBySharedHits.h:19
TrajectoryCleanerBySharedHits::validHitBonus_
float validHitBonus_
Definition:
TrajectoryCleanerBySharedHits.h:34
TrajectoryCleanerBySharedHits::TrajectoryCleanerBySharedHits
TrajectoryCleanerBySharedHits(const edm::ParameterSet &iConfig)
Definition:
TrajectoryCleanerBySharedHits.h:21
TrajectoryCleaner
Definition:
TrajectoryCleaner.h:14
Generated for CMSSW Reference Manual by
1.8.16