CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

CSCTrackConfigSelector 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
 CSCTrackConfigSelector (const edm::ParameterSet &cfg)
const_iterator end () const
void select (const edm::Handle< reco::TrackCollection > &c, const edm::Event &evt, const edm::EventSetup &)
size_t size () const

Private Attributes

AlignmentCSCTrackSelector theBaseSelector
container theSelectedTracks

Detailed Description

Definition at line 16 of file AlignmentCSCTrackSelectorModule.cc.


Member Typedef Documentation

Definition at line 20 of file AlignmentCSCTrackSelectorModule.cc.

typedef container::const_iterator CSCTrackConfigSelector::const_iterator

Definition at line 19 of file AlignmentCSCTrackSelectorModule.cc.

typedef std::vector<const reco::Track*> CSCTrackConfigSelector::container

Definition at line 18 of file AlignmentCSCTrackSelectorModule.cc.


Constructor & Destructor Documentation

CSCTrackConfigSelector::CSCTrackConfigSelector ( const edm::ParameterSet cfg) [inline]

Definition at line 22 of file AlignmentCSCTrackSelectorModule.cc.

: theBaseSelector(cfg) {}

Member Function Documentation

const_iterator CSCTrackConfigSelector::begin ( ) const [inline]

Definition at line 24 of file AlignmentCSCTrackSelectorModule.cc.

References theSelectedTracks.

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

Definition at line 25 of file AlignmentCSCTrackSelectorModule.cc.

References theSelectedTracks.

{ return theSelectedTracks.end(); }
void CSCTrackConfigSelector::select ( const edm::Handle< reco::TrackCollection > &  c,
const edm::Event evt,
const edm::EventSetup  
) [inline]

Definition at line 28 of file AlignmentCSCTrackSelectorModule.cc.

References cond::ecalcond::all, i, edm::Handle< T >::product(), AlignmentCSCTrackSelector::select(), theBaseSelector, and theSelectedTracks.

      {
         container all;
         for( reco::TrackCollection::const_iterator i=c.product()->begin();i!=c.product()->end();++i){
            all.push_back(& * i );
         }
         theSelectedTracks = theBaseSelector.select(all, evt); // might add dummy 
      }
size_t CSCTrackConfigSelector::size ( void  ) const [inline]

Definition at line 26 of file AlignmentCSCTrackSelectorModule.cc.

References theSelectedTracks.

{ return theSelectedTracks.size(); }

Member Data Documentation

Definition at line 40 of file AlignmentCSCTrackSelectorModule.cc.

Referenced by select().

Definition at line 38 of file AlignmentCSCTrackSelectorModule.cc.

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