CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
AlignmentSeedSelector Class Reference

#include <AlignmentSeedSelector.h>

Public Types

typedef std::vector< const TrajectorySeed * > Seeds
 

Public Member Functions

 AlignmentSeedSelector (const edm::ParameterSet &cfg)
 constructor More...
 
Seeds select (const Seeds &seeds, const edm::Event &evt) const
 select tracks More...
 
 ~AlignmentSeedSelector ()
 destructor More...
 

Private Attributes

bool applySeedNumber
 private data members More...
 
int maxNSeeds
 
int minNSeeds
 

Detailed Description

Definition at line 12 of file AlignmentSeedSelector.h.

Member Typedef Documentation

◆ Seeds

typedef std::vector<const TrajectorySeed*> AlignmentSeedSelector::Seeds

Definition at line 14 of file AlignmentSeedSelector.h.

Constructor & Destructor Documentation

◆ AlignmentSeedSelector()

AlignmentSeedSelector::AlignmentSeedSelector ( const edm::ParameterSet cfg)

constructor

Definition at line 7 of file AlignmentSeedSelector.cc.

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 }

References applySeedNumber, and minNSeeds.

◆ ~AlignmentSeedSelector()

AlignmentSeedSelector::~AlignmentSeedSelector ( )

destructor

Definition at line 17 of file AlignmentSeedSelector.cc.

17 {}

Member Function Documentation

◆ select()

AlignmentSeedSelector::Seeds AlignmentSeedSelector::select ( const Seeds seeds,
const edm::Event evt 
) const

select tracks

Definition at line 21 of file AlignmentSeedSelector.cc.

21  {
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 }

References applySeedNumber, createfilelist::int, maxNSeeds, minNSeeds, mps_fire::result, and InitialStep_cff::seeds.

Referenced by SeedConfigSelector::select().

Member Data Documentation

◆ applySeedNumber

bool AlignmentSeedSelector::applySeedNumber
private

private data members

Definition at line 27 of file AlignmentSeedSelector.h.

Referenced by AlignmentSeedSelector(), and select().

◆ maxNSeeds

int AlignmentSeedSelector::maxNSeeds
private

Definition at line 28 of file AlignmentSeedSelector.h.

Referenced by select().

◆ minNSeeds

int AlignmentSeedSelector::minNSeeds
private

Definition at line 28 of file AlignmentSeedSelector.h.

Referenced by AlignmentSeedSelector(), and select().

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
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::maxNSeeds
int maxNSeeds
Definition: AlignmentSeedSelector.h:28
mps_fire.result
result
Definition: mps_fire.py:303