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) {}

Member Function Documentation

◆ begin()

const_iterator MuonConfigSelector::begin ( ) const
inline

Definition at line 33 of file AlignmentMuonSelectorModule.cc.

33 { return selected_.begin(); }

References selected_.

◆ end()

const_iterator MuonConfigSelector::end ( ) const
inline

Definition at line 34 of file AlignmentMuonSelectorModule.cc.

34 { return selected_.end(); }

References selected_.

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

◆ 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.

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  }

References all_, HltBtagPostValidation_cff::c, mps_fire::i, AlignmentMuonSelector::select(), selected_, and theSelector.

◆ size()

size_t MuonConfigSelector::size ( void  ) const
inline

Definition at line 35 of file AlignmentMuonSelectorModule.cc.

35 { return selected_.size(); }

References selected_.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

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().

mps_fire.i
i
Definition: mps_fire.py:428
MuonConfigSelector::theSelector
AlignmentMuonSelector theSelector
Definition: AlignmentMuonSelectorModule.cc:48
MuonConfigSelector::selected_
container selected_
Definition: AlignmentMuonSelectorModule.cc:47
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
MuonConfigSelector::all_
container all_
Definition: AlignmentMuonSelectorModule.cc:47
looper.cfg
cfg
Definition: looper.py:297
AlignmentMuonSelector::select
Muons select(const Muons &muons, const edm::Event &evt) const
select muons
Definition: AlignmentMuonSelector.cc:62