CMS 3D CMS Logo

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

7  :
8  applySeedNumber( cfg.getParameter<bool>( "applySeedNumber" ) ),
9  minNSeeds ( cfg.getParameter<int>( "minNSeeds" ) ),
10  maxNSeeds ( cfg.getParameter<int>( "maxNSeeds" ) )
11 {
12 
13  if (applySeedNumber)
14  edm::LogInfo("AlignmentSeedSelector")
15  << "apply seedNumber N<=" << minNSeeds;
16 
17 }
T getParameter(std::string const &) const
bool applySeedNumber
private data members
AlignmentSeedSelector::~AlignmentSeedSelector ( )

destructor

Definition at line 21 of file AlignmentSeedSelector.cc.

22 {}

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 Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), Vispa.Views.AbstractView.AbstractView::restoreSelection(), and SeedConfigSelector::select().

29 {
30  Seeds result = seeds;
31 
32  // apply minimum/maximum multiplicity requirement (if selected)
33  if (applySeedNumber) {
34  if (result.size()<(unsigned int)minNSeeds || result.size()>(unsigned int)maxNSeeds ) result.clear();
35  }
36 
37  return result;
38 
39 }
tuple result
Definition: query.py:137
bool applySeedNumber
private data members
std::vector< const TrajectorySeed * > Seeds

Member Data Documentation

bool AlignmentSeedSelector::applySeedNumber
private

private data members

Definition at line 29 of file AlignmentSeedSelector.h.

Referenced by AlignmentSeedSelector(), and select().

int AlignmentSeedSelector::maxNSeeds
private

Definition at line 30 of file AlignmentSeedSelector.h.

Referenced by select().

int AlignmentSeedSelector::minNSeeds
private

Definition at line 30 of file AlignmentSeedSelector.h.

Referenced by AlignmentSeedSelector(), and select().