Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
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
{
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
looper.cfg
tuple cfg
Definition:
looper.py:259
AlignmentSeedSelector::maxNSeeds
int maxNSeeds
Definition:
AlignmentSeedSelector.h:30
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
query.result
tuple result
Definition:
query.py:137
HLT_25ns14e33_v1_cff.maxNSeeds
tuple maxNSeeds
Definition:
HLT_25ns14e33_v1_cff.py:3415
edm::LogInfo
Definition:
MessageLogger.h:214
AlignmentSeedSelector::~AlignmentSeedSelector
~AlignmentSeedSelector()
destructor
Definition:
AlignmentSeedSelector.cc:21
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:35
AlignmentSeedSelector::minNSeeds
int minNSeeds
Definition:
AlignmentSeedSelector.h:30
edm::Event
Definition:
Event.h:59
Generated for CMSSW Reference Manual by
1.8.5