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
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 19 of file CalibrationTrackSelectorModule.cc.

typedef container::const_iterator SiStripCalTrackConfigSelector::const_iterator

Definition at line 18 of file CalibrationTrackSelectorModule.cc.

Definition at line 17 of file CalibrationTrackSelectorModule.cc.

Constructor & Destructor Documentation

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

Definition at line 21 of file CalibrationTrackSelectorModule.cc.

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

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

Member Function Documentation

const_iterator SiStripCalTrackConfigSelector::begin ( ) const
inline

Definition at line 33 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 37 of file CalibrationTrackSelectorModule.cc.

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

39  {
40  theSelectedTracks.clear();
41  for( reco::TrackCollection::const_iterator i=c.product()->begin();i!=c.product()->end();++i){
42  theSelectedTracks.push_back(& * i );
43  }
44  // might add EvetSetup to the select(...) method of the Selectors
45  if(theBaseSwitch)
47  }
int i
Definition: DBlmapReader.cc:9
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks
T const * product() const
Definition: Handle.h:81
size_t SiStripCalTrackConfigSelector::size ( void  ) const
inline

Definition at line 35 of file CalibrationTrackSelectorModule.cc.

References theSelectedTracks.

Member Data Documentation

CalibrationTrackSelector SiStripCalTrackConfigSelector::theBaseSelector
private

Definition at line 53 of file CalibrationTrackSelectorModule.cc.

Referenced by select().

bool SiStripCalTrackConfigSelector::theBaseSwitch
private

Definition at line 52 of file CalibrationTrackSelectorModule.cc.

Referenced by select(), and SiStripCalTrackConfigSelector().

container SiStripCalTrackConfigSelector::theSelectedTracks
private

Definition at line 50 of file CalibrationTrackSelectorModule.cc.

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