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.

References applySeedNumber, and minNSeeds.

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 }
Log< level::Info, false > LogInfo
bool applySeedNumber
private data members

◆ ~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.

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

Referenced by SeedConfigSelector::select().

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 }
bool applySeedNumber
private data members
std::vector< const TrajectorySeed * > Seeds

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().