CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 14 of file AlignmentSeedSelector.h.

Constructor & Destructor Documentation

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
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
bool applySeedNumber
private data members
AlignmentSeedSelector::~AlignmentSeedSelector ( )

destructor

Definition at line 17 of file AlignmentSeedSelector.cc.

17 {}

Member Function Documentation

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

select tracks

Definition at line 21 of file AlignmentSeedSelector.cc.

References applySeedNumber, 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 }
tuple result
Definition: mps_fire.py:311
bool applySeedNumber
private data members
std::vector< const TrajectorySeed * > Seeds

Member Data Documentation

bool AlignmentSeedSelector::applySeedNumber
private

private data members

Definition at line 27 of file AlignmentSeedSelector.h.

Referenced by AlignmentSeedSelector(), and select().

int AlignmentSeedSelector::maxNSeeds
private

Definition at line 28 of file AlignmentSeedSelector.h.

Referenced by select().

int AlignmentSeedSelector::minNSeeds
private

Definition at line 28 of file AlignmentSeedSelector.h.

Referenced by AlignmentSeedSelector(), and select().