CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

AlignmentSeedSelector Class Reference

#include <AlignmentSeedSelector.h>

List of all members.

Public Types

typedef std::vector< const
TrajectorySeed * > 
Seeds

Public Member Functions

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

Private Attributes

bool applySeedNumber
 private data members
int maxNSeeds
int minNSeeds

Detailed Description

Definition at line 10 of file AlignmentSeedSelector.h.


Member Typedef Documentation

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

Definition at line 15 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.

                                                                        :
  applySeedNumber( cfg.getParameter<bool>( "applySeedNumber" ) ),
  minNSeeds ( cfg.getParameter<int>( "minNSeeds" ) ),
  maxNSeeds ( cfg.getParameter<int>( "maxNSeeds" ) )
{

  if (applySeedNumber)
        edm::LogInfo("AlignmentSeedSelector") 
          << "apply seedNumber N<=" << minNSeeds;

}
AlignmentSeedSelector::~AlignmentSeedSelector ( )

destructor

Definition at line 21 of file AlignmentSeedSelector.cc.

{}

Member Function Documentation

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

select tracks

Definition at line 28 of file AlignmentSeedSelector.cc.

References applySeedNumber, maxNSeeds, minNSeeds, and query::result.

Referenced by SeedConfigSelector::select().

{
  Seeds result = seeds;

  // apply minimum/maximum multiplicity requirement (if selected)
  if (applySeedNumber) {
    if (result.size()<(unsigned int)minNSeeds || result.size()>(unsigned int)maxNSeeds ) result.clear();
  }

  return result;

}

Member Data Documentation

private data members

Definition at line 29 of file AlignmentSeedSelector.h.

Referenced by AlignmentSeedSelector(), and select().

Definition at line 30 of file AlignmentSeedSelector.h.

Referenced by select().

Definition at line 30 of file AlignmentSeedSelector.h.

Referenced by AlignmentSeedSelector(), and select().