CMS 3D CMS Logo

AlignmentSeedSelector.cc
Go to the documentation of this file.
2 
4 
5 // constructor ----------------------------------------------------------------
6 
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 
18 
19 // do selection ---------------------------------------------------------------
20 
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 */
AlignmentSeedSelector::~AlignmentSeedSelector
~AlignmentSeedSelector()
destructor
Definition: AlignmentSeedSelector.cc:17
HLT_2018_cff.maxNSeeds
maxNSeeds
Definition: HLT_2018_cff.py:8248
electrons_cff.bool
bool
Definition: electrons_cff.py:372
MessageLogger.h
AlignmentSeedSelector::Seeds
std::vector< const TrajectorySeed * > Seeds
Definition: AlignmentSeedSelector.h:14
edm::LogInfo
Definition: MessageLogger.h:254
InitialStep_cff.seeds
seeds
Definition: InitialStep_cff.py:232
edm::ParameterSet
Definition: ParameterSet.h:36
AlignmentSeedSelector::select
Seeds select(const Seeds &seeds, const edm::Event &evt) const
select tracks
Definition: AlignmentSeedSelector.cc:21
AlignmentSeedSelector::minNSeeds
int minNSeeds
Definition: AlignmentSeedSelector.h:28
createfilelist.int
int
Definition: createfilelist.py:10
looper.cfg
cfg
Definition: looper.py:297
AlignmentSeedSelector::applySeedNumber
bool applySeedNumber
private data members
Definition: AlignmentSeedSelector.h:27
AlignmentSeedSelector.h
AlignmentSeedSelector::maxNSeeds
int maxNSeeds
Definition: AlignmentSeedSelector.h:28
mps_fire.result
result
Definition: mps_fire.py:303
edm::Event
Definition: Event.h:73
AlignmentSeedSelector::AlignmentSeedSelector
AlignmentSeedSelector(const edm::ParameterSet &cfg)
constructor
Definition: AlignmentSeedSelector.cc:7