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)
 
size_t size () const
 

Private Attributes

CalibrationTrackSelector theBaseSelector
 
bool theBaseSwitch
 
container theSelectedTracks
 

Detailed Description

Definition at line 14 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)
inline

Definition at line 20 of file CalibrationTrackSelectorModule.cc.

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

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

Member Function Documentation

const_iterator SiStripCalTrackConfigSelector::begin ( ) const
inline

Definition at line 32 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 36 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().

38  {
39  theSelectedTracks.clear();
40  for( reco::TrackCollection::const_iterator i=c.product()->begin();i!=c.product()->end();++i){
41  theSelectedTracks.push_back(& * i );
42  }
43  // might add EvetSetup to the select(...) method of the Selectors
44  if(theBaseSwitch)
46  }
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:74
size_t SiStripCalTrackConfigSelector::size ( void  ) const
inline

Definition at line 34 of file CalibrationTrackSelectorModule.cc.

References theSelectedTracks.

Member Data Documentation

CalibrationTrackSelector SiStripCalTrackConfigSelector::theBaseSelector
private

Definition at line 52 of file CalibrationTrackSelectorModule.cc.

Referenced by select().

bool SiStripCalTrackConfigSelector::theBaseSwitch
private

Definition at line 51 of file CalibrationTrackSelectorModule.cc.

Referenced by select(), and SiStripCalTrackConfigSelector().

container SiStripCalTrackConfigSelector::theSelectedTracks
private

Definition at line 49 of file CalibrationTrackSelectorModule.cc.

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