CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes
MuonConfigSelector Struct Reference

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, edm::ConsumesCollector &&iC)
 
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 26 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,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 31 of file AlignmentMuonSelectorModule.cc.

31 : theSelector(cfg) {}
AlignmentMuonSelector theSelector

Member Function Documentation

const_iterator MuonConfigSelector::begin ( ) const
inline

Definition at line 33 of file AlignmentMuonSelectorModule.cc.

References selected_.

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

Definition at line 34 of file AlignmentMuonSelectorModule.cc.

References selected_.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

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

Definition at line 37 of file AlignmentMuonSelectorModule.cc.

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

37  {
38  all_.clear();
39  selected_.clear();
40  for (collection::const_iterator i = c.product()->begin(), iE = c.product()->end(); i != iE; ++i) {
41  all_.push_back(&*i);
42  }
43  selected_ = theSelector.select(all_, evt); // might add dummy
44  }
AlignmentMuonSelector theSelector
T const * product() const
Definition: Handle.h:70
Muons select(const Muons &muons, const edm::Event &evt) const
select muons
size_t MuonConfigSelector::size ( void  ) const
inline

Member Data Documentation

container MuonConfigSelector::all_
private

Definition at line 47 of file AlignmentMuonSelectorModule.cc.

Referenced by select().

container MuonConfigSelector::selected_
private

Definition at line 47 of file AlignmentMuonSelectorModule.cc.

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

AlignmentMuonSelector MuonConfigSelector::theSelector
private

Definition at line 48 of file AlignmentMuonSelectorModule.cc.

Referenced by select().