CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

MuonConfigSelector Struct Reference

List of all members.

Public Types

typedef reco::MuonCollection collection
typedef container::const_iterator const_iterator
typedef std::vector< const
reco::Muon * > 
container

Public Member Functions

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

Private Attributes

container all_
container selected_
AlignmentMuonSelector theSelector

Detailed Description

Definition at line 25 of file AlignmentMuonSelectorModule.cc.


Member Typedef Documentation

Definition at line 29 of file AlignmentMuonSelectorModule.cc.

typedef container::const_iterator MuonConfigSelector::const_iterator

Definition at line 28 of file AlignmentMuonSelectorModule.cc.

typedef std::vector<const reco::Muon*> MuonConfigSelector::container

Definition at line 27 of file AlignmentMuonSelectorModule.cc.


Constructor & Destructor Documentation

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

Definition at line 31 of file AlignmentMuonSelectorModule.cc.

                                                    :
    theSelector(cfg) {}

Member Function Documentation

const_iterator MuonConfigSelector::begin ( ) const [inline]

Definition at line 34 of file AlignmentMuonSelectorModule.cc.

References selected_.

{ return selected_.begin(); }
const_iterator MuonConfigSelector::end ( ) const [inline]

Definition at line 35 of file AlignmentMuonSelectorModule.cc.

References selected_.

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

Definition at line 38 of file AlignmentMuonSelectorModule.cc.

References all_, i, edm::Handle< T >::product(), AlignmentMuonSelector::select(), selected_, and theSelector.

  {
    all_.clear();
    selected_.clear();
    for (collection::const_iterator i = c.product()->begin(), iE = c.product()->end();
         i != iE; ++i){
      all_.push_back(& * i );
    }
    selected_ = theSelector.select(all_, evt); // might add dummy 
  }
size_t MuonConfigSelector::size ( void  ) const [inline]

Definition at line 36 of file AlignmentMuonSelectorModule.cc.

References selected_.

{ return selected_.size(); }

Member Data Documentation

Definition at line 50 of file AlignmentMuonSelectorModule.cc.

Referenced by select().

Definition at line 50 of file AlignmentMuonSelectorModule.cc.

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

Definition at line 51 of file AlignmentMuonSelectorModule.cc.

Referenced by select().