CMS 3D CMS Logo

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

◆ collection

Definition at line 29 of file AlignmentMuonSelectorModule.cc.

◆ const_iterator

typedef container::const_iterator MuonConfigSelector::const_iterator

Definition at line 28 of file AlignmentMuonSelectorModule.cc.

◆ container

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

Definition at line 27 of file AlignmentMuonSelectorModule.cc.

Constructor & Destructor Documentation

◆ MuonConfigSelector()

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

◆ begin()

const_iterator MuonConfigSelector::begin ( ) const
inline

Definition at line 33 of file AlignmentMuonSelectorModule.cc.

References selected_.

33 { return selected_.begin(); }

◆ end()

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(); }

◆ select()

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_, c, mps_fire::i, 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
Muons select(const Muons &muons, const edm::Event &evt) const
select muons

◆ size()

size_t MuonConfigSelector::size ( void  ) const
inline

Member Data Documentation

◆ all_

container MuonConfigSelector::all_
private

Definition at line 47 of file AlignmentMuonSelectorModule.cc.

Referenced by select().

◆ selected_

container MuonConfigSelector::selected_
private

Definition at line 47 of file AlignmentMuonSelectorModule.cc.

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

◆ theSelector

AlignmentMuonSelector MuonConfigSelector::theSelector
private

Definition at line 48 of file AlignmentMuonSelectorModule.cc.

Referenced by select().