Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
if
(
applySeedNumber
)
12
edm::LogInfo
(
"AlignmentSeedSelector"
) <<
"apply seedNumber N<="
<<
minNSeeds
;
13
}
14
15
// destructor -----------------------------------------------------------------
16
17
AlignmentSeedSelector::~AlignmentSeedSelector
() {}
18
19
// do selection ---------------------------------------------------------------
20
21
AlignmentSeedSelector::Seeds
AlignmentSeedSelector::select
(
const
Seeds
&
seeds
,
const
edm::Event
& evt)
const
{
22
Seeds
result
=
seeds
;
23
24
// apply minimum/maximum multiplicity requirement (if selected)
25
if
(
applySeedNumber
) {
26
if
(result.size() < (
unsigned
int)
minNSeeds
|| result.size() > (
unsigned
int)
maxNSeeds
)
27
result.clear();
28
}
29
30
return
result
;
31
}
32
33
// make basic cuts ------------------------------------------------------------
34
35
/* AlignmentSeedSelector::Seeds
36
AlignmentSeedSelector::basicCuts(const Seeds& seeds) const
37
{
38
Seeds result;
39
40
41
return result;
42
}
43
44
//-----------------------------------------------------------------------------
45
46
AlignmentSeedSelector::Seeds
47
AlignmentSeedSelector::theNHighestPtSeeds(const Seeds& seeds) const
48
{
49
50
Seeds result;
51
52
53
return result;
54
}
55
*/
looper.cfg
tuple cfg
Definition:
looper.py:296
MessageLogger.h
AlignmentSeedSelector::maxNSeeds
int maxNSeeds
Definition:
AlignmentSeedSelector.h:28
mps_fire.result
tuple result
Definition:
mps_fire.py:311
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:21
AlignmentSeedSelector.h
DetachedQuadStep_cff.seeds
string seeds
Definition:
DetachedQuadStep_cff.py:212
edm::LogInfo
Log< level::Info, false > LogInfo
Definition:
MessageLogger.h:125
AlignmentSeedSelector::~AlignmentSeedSelector
~AlignmentSeedSelector()
destructor
Definition:
AlignmentSeedSelector.cc:17
AlignmentSeedSelector::applySeedNumber
bool applySeedNumber
private data members
Definition:
AlignmentSeedSelector.h:27
AlignmentSeedSelector::Seeds
std::vector< const TrajectorySeed * > Seeds
Definition:
AlignmentSeedSelector.h:14
edm::ParameterSet
Definition:
ParameterSet.h:47
AlignmentSeedSelector::minNSeeds
int minNSeeds
Definition:
AlignmentSeedSelector.h:28
edm::Event
Definition:
Event.h:73
HLT_FULL_cff.maxNSeeds
tuple maxNSeeds
Definition:
HLT_FULL_cff.py:9803
Generated for CMSSW Reference Manual by
1.8.5