Main Page
Namespaces
Classes
Package Documentation
Alignment
CommonAlignmentProducer
src
AlignmentSeedSelector.cc
Go to the documentation of this file.
1
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
2
3
#include "
Alignment/CommonAlignmentProducer/interface/AlignmentSeedSelector.h
"
4
5
// constructor ----------------------------------------------------------------
6
7
AlignmentSeedSelector::AlignmentSeedSelector
(
const
edm::ParameterSet
&
cfg
) :
8
applySeedNumber( cfg.getParameter<
bool
>(
"applySeedNumber"
) ),
9
minNSeeds ( cfg.getParameter<
int
>(
"minNSeeds"
) ),
10
maxNSeeds
( cfg.getParameter<
int
>(
"maxNSeeds"
) )
11
{
12
13
if
(
applySeedNumber
)
14
edm::LogInfo
(
"AlignmentSeedSelector"
)
15
<<
"apply seedNumber N<="
<<
minNSeeds
;
16
17
}
18
19
// destructor -----------------------------------------------------------------
20
21
AlignmentSeedSelector::~AlignmentSeedSelector
()
22
{}
23
24
25
// do selection ---------------------------------------------------------------
26
27
AlignmentSeedSelector::Seeds
28
AlignmentSeedSelector::select
(
const
Seeds
& seeds,
const
edm::Event
& evt)
const
29
{
30
Seeds
result
= seeds;
31
32
// apply minimum/maximum multiplicity requirement (if selected)
33
if
(
applySeedNumber
) {
34
if
(result.size()<(
unsigned
int
)
minNSeeds
|| result.size()>(
unsigned
int
)
maxNSeeds
) result.clear();
35
}
36
37
return
result
;
38
39
}
40
41
// make basic cuts ------------------------------------------------------------
42
43
/* AlignmentSeedSelector::Seeds
44
AlignmentSeedSelector::basicCuts(const Seeds& seeds) const
45
{
46
Seeds result;
47
48
49
return result;
50
}
51
52
//-----------------------------------------------------------------------------
53
54
AlignmentSeedSelector::Seeds
55
AlignmentSeedSelector::theNHighestPtSeeds(const Seeds& seeds) const
56
{
57
58
Seeds result;
59
60
61
return result;
62
}
63
*/
MessageLogger.h
mps_fire.result
result
Definition:
mps_fire.py:226
AlignmentSeedSelector::maxNSeeds
int maxNSeeds
Definition:
AlignmentSeedSelector.h:30
createfilelist.int
int
Definition:
createfilelist.py:10
AlignmentSeedSelector::AlignmentSeedSelector
AlignmentSeedSelector(const edm::ParameterSet &cfg)
constructor
Definition:
AlignmentSeedSelector.cc:7
AlignmentSeedSelector::select
Seeds select(const Seeds &seeds, const edm::Event &evt) const
select tracks
Definition:
AlignmentSeedSelector.cc:28
AlignmentSeedSelector.h
looper.cfg
cfg
Definition:
looper.py:293
edm::LogInfo
Definition:
MessageLogger.h:216
electrons_cff.bool
bool
Definition:
electrons_cff.py:266
AlignmentSeedSelector::~AlignmentSeedSelector
~AlignmentSeedSelector()
destructor
Definition:
AlignmentSeedSelector.cc:21
HiRegitMuonInitialStep_cff.maxNSeeds
maxNSeeds
Definition:
HiRegitMuonInitialStep_cff.py:71
AlignmentSeedSelector::applySeedNumber
bool applySeedNumber
private data members
Definition:
AlignmentSeedSelector.h:29
AlignmentSeedSelector::Seeds
std::vector< const TrajectorySeed * > Seeds
Definition:
AlignmentSeedSelector.h:15
edm::ParameterSet
Definition:
ParameterSet.h:36
AlignmentSeedSelector::minNSeeds
int minNSeeds
Definition:
AlignmentSeedSelector.h:30
edm::Event
Definition:
Event.h:69
Generated for CMSSW Reference Manual by
1.8.11