CMS 3D CMS Logo

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

typedef reco::MuonCollection MuonConfigSelector::collection

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.

00031                                                     :
00032     theSelector(cfg) {}


Member Function Documentation

const_iterator MuonConfigSelector::begin (  )  const [inline]

Definition at line 34 of file AlignmentMuonSelectorModule.cc.

References selected_.

00034 { return selected_.begin(); }

const_iterator MuonConfigSelector::end (  )  const [inline]

Definition at line 35 of file AlignmentMuonSelectorModule.cc.

References selected_.

00035 { 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.

00039   {
00040     all_.clear();
00041     selected_.clear();
00042     for (collection::const_iterator i = c.product()->begin(), iE = c.product()->end();
00043          i != iE; ++i){
00044       all_.push_back(& * i );
00045     }
00046     selected_ = theSelector.select(all_, evt); // might add dummy 
00047   }

size_t MuonConfigSelector::size ( void   )  const [inline]

Definition at line 36 of file AlignmentMuonSelectorModule.cc.

References selected_.

00036 { return selected_.size(); }


Member Data Documentation

container MuonConfigSelector::all_ [private]

Definition at line 50 of file AlignmentMuonSelectorModule.cc.

Referenced by select().

container MuonConfigSelector::selected_ [private]

Definition at line 50 of file AlignmentMuonSelectorModule.cc.

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

AlignmentMuonSelector MuonConfigSelector::theSelector [private]

Definition at line 51 of file AlignmentMuonSelectorModule.cc.

Referenced by select().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:28:41 2009 for CMSSW by  doxygen 1.5.4