src
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
*/
MessageLogger.h
mps_fire.result
result
Definition:
mps_fire.py:311
AlignmentSeedSelector::maxNSeeds
int maxNSeeds
Definition:
AlignmentSeedSelector.h:28
createfilelist.int
int
Definition:
createfilelist.py:10
AlignmentSeedSelector::AlignmentSeedSelector
AlignmentSeedSelector(const edm::ParameterSet &cfg)
constructor
Definition:
AlignmentSeedSelector.cc:7
AlignmentSeedSelector.h
HLT_2024v14_cff.maxNSeeds
maxNSeeds
Definition:
HLT_2024v14_cff.py:8103
AlignmentSeedSelector::select
Seeds select(const Seeds &seeds, const edm::Event &evt) const
select tracks
Definition:
AlignmentSeedSelector.cc:21
looper.cfg
cfg
Definition:
looper.py:296
HLT_2024v14_cff.seeds
seeds
Definition:
HLT_2024v14_cff.py:64741
edm::LogInfo
Log< level::Info, false > LogInfo
Definition:
MessageLogger.h:131
AlignmentSeedSelector::~AlignmentSeedSelector
~AlignmentSeedSelector()
destructor
Definition:
AlignmentSeedSelector.cc:17
nano_mu_local_reco_cff.bool
bool
Definition:
nano_mu_local_reco_cff.py:14
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:48
AlignmentSeedSelector::minNSeeds
int minNSeeds
Definition:
AlignmentSeedSelector.h:28
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.14