CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

SiStripCalTrackConfigSelector Struct Reference

List of all members.

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.

                                                              :
    theBaseSelector(cfg)
  {
    //TODO Wrap the BaseSelector into its own PSet
    theBaseSwitch = 
      cfg.getParameter<bool>("applyBasicCuts") ||
      cfg.getParameter<bool>("minHitsPerSubDet") ||
      cfg.getParameter<bool>("applyNHighestPt") ||
      cfg.getParameter<bool>("applyMultiplicityFilter");
    
  }

Member Function Documentation

const_iterator SiStripCalTrackConfigSelector::begin ( ) const [inline]

Definition at line 32 of file CalibrationTrackSelectorModule.cc.

References theSelectedTracks.

{ return theSelectedTracks.begin(); }
const_iterator SiStripCalTrackConfigSelector::end ( ) const [inline]

Definition at line 33 of file CalibrationTrackSelectorModule.cc.

References theSelectedTracks.

{ return theSelectedTracks.end(); }
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.

  {
    theSelectedTracks.clear();
    for( reco::TrackCollection::const_iterator i=c.product()->begin();i!=c.product()->end();++i){
      theSelectedTracks.push_back(& * i );
    }
    // might add EvetSetup to the select(...) method of the Selectors
    if(theBaseSwitch)
      theSelectedTracks=theBaseSelector.select(theSelectedTracks,evt);
  }
size_t SiStripCalTrackConfigSelector::size ( void  ) const [inline]

Definition at line 34 of file CalibrationTrackSelectorModule.cc.

References theSelectedTracks.

{ return theSelectedTracks.size(); }

Member Data Documentation

Definition at line 52 of file CalibrationTrackSelectorModule.cc.

Referenced by select().

Definition at line 51 of file CalibrationTrackSelectorModule.cc.

Referenced by select(), and SiStripCalTrackConfigSelector().

Definition at line 49 of file CalibrationTrackSelectorModule.cc.

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