CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
SiStripCalTrackConfigSelector Struct Reference

Public Types

typedef reco::TrackCollection collection
 
typedef container::const_iterator const_iterator
 
typedef std::vector< const reco::Track * > container
 

Public Member Functions

const_iterator begin () const
 
const_iterator end () const
 
void select (const edm::Handle< reco::TrackCollection > &c, const edm::Event &evt, const edm::EventSetup &)
 
 SiStripCalTrackConfigSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 
size_t size () const
 

Private Attributes

CalibrationTrackSelector theBaseSelector
 
bool theBaseSwitch
 
container theSelectedTracks
 

Detailed Description

Definition at line 15 of file CalibrationTrackSelectorModule.cc.

Member Typedef Documentation

Definition at line 18 of file CalibrationTrackSelectorModule.cc.

typedef container::const_iterator SiStripCalTrackConfigSelector::const_iterator

Definition at line 17 of file CalibrationTrackSelectorModule.cc.

Definition at line 16 of file CalibrationTrackSelectorModule.cc.

Constructor & Destructor Documentation

SiStripCalTrackConfigSelector::SiStripCalTrackConfigSelector ( const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 20 of file CalibrationTrackSelectorModule.cc.

References edm::ParameterSet::getParameter(), and theBaseSwitch.

20  : theBaseSelector(cfg) {
21  // TODO Wrap the BaseSelector into its own PSet
22  theBaseSwitch = cfg.getParameter<bool>("applyBasicCuts") || cfg.getParameter<bool>("minHitsPerSubDet") ||
23  cfg.getParameter<bool>("applyNHighestPt") || cfg.getParameter<bool>("applyMultiplicityFilter");
24  }
T getParameter(std::string const &) const

Member Function Documentation

const_iterator SiStripCalTrackConfigSelector::begin ( ) const
inline

Definition at line 26 of file CalibrationTrackSelectorModule.cc.

References theSelectedTracks.

const_iterator SiStripCalTrackConfigSelector::end ( ) const
inline
void SiStripCalTrackConfigSelector::select ( const edm::Handle< reco::TrackCollection > &  c,
const edm::Event evt,
const edm::EventSetup  
)
inline

Definition at line 30 of file CalibrationTrackSelectorModule.cc.

References mps_fire::i, edm::Handle< T >::product(), CalibrationTrackSelector::select(), theBaseSelector, theBaseSwitch, and theSelectedTracks.

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(), and Vispa.Views.AbstractView.AbstractView::restoreSelection().

30  {
31  theSelectedTracks.clear();
32  for (reco::TrackCollection::const_iterator i = c.product()->begin(); i != c.product()->end(); ++i) {
33  theSelectedTracks.push_back(&*i);
34  }
35  // might add EvetSetup to the select(...) method of the Selectors
36  if (theBaseSwitch)
38  }
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks
T const * product() const
Definition: Handle.h:74
size_t SiStripCalTrackConfigSelector::size ( void  ) const
inline

Member Data Documentation

CalibrationTrackSelector SiStripCalTrackConfigSelector::theBaseSelector
private

Definition at line 44 of file CalibrationTrackSelectorModule.cc.

Referenced by select().

bool SiStripCalTrackConfigSelector::theBaseSwitch
private

Definition at line 43 of file CalibrationTrackSelectorModule.cc.

Referenced by select(), and SiStripCalTrackConfigSelector().

container SiStripCalTrackConfigSelector::theSelectedTracks
private

Definition at line 41 of file CalibrationTrackSelectorModule.cc.

Referenced by begin(), end(), select(), and size().