CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
CSCOverlapConfigSelector Struct Reference

Public Types

typedef reco::TrackCollection collection
 
typedef container::const_iterator const_iterator
 
typedef std::vector< const reco::Track * > container
 

Public Member Functions

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

Private Attributes

container all_
 
container selected_
 
AlignmentCSCOverlapSelector theSelector
 

Detailed Description

Definition at line 13 of file AlignmentCSCOverlapSelectorModule.cc.

Member Typedef Documentation

◆ collection

Definition at line 16 of file AlignmentCSCOverlapSelectorModule.cc.

◆ const_iterator

typedef container::const_iterator CSCOverlapConfigSelector::const_iterator

Definition at line 15 of file AlignmentCSCOverlapSelectorModule.cc.

◆ container

typedef std::vector<const reco::Track *> CSCOverlapConfigSelector::container

Definition at line 14 of file AlignmentCSCOverlapSelectorModule.cc.

Constructor & Destructor Documentation

◆ CSCOverlapConfigSelector()

CSCOverlapConfigSelector::CSCOverlapConfigSelector ( const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 18 of file AlignmentCSCOverlapSelectorModule.cc.

18 : theSelector(cfg) {}

Member Function Documentation

◆ begin()

const_iterator CSCOverlapConfigSelector::begin ( ) const
inline

Definition at line 20 of file AlignmentCSCOverlapSelectorModule.cc.

20 { return selected_.begin(); }

References selected_.

◆ end()

const_iterator CSCOverlapConfigSelector::end ( ) const
inline

Definition at line 21 of file AlignmentCSCOverlapSelectorModule.cc.

21 { return selected_.end(); }

References selected_.

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

◆ select()

void CSCOverlapConfigSelector::select ( const edm::Handle< reco::TrackCollection > &  c,
const edm::Event evt,
const edm::EventSetup  
)
inline

Definition at line 24 of file AlignmentCSCOverlapSelectorModule.cc.

24  {
25  all_.clear();
26  selected_.clear();
27  for (collection::const_iterator i = c.product()->begin(), iE = c.product()->end(); i != iE; ++i) {
28  all_.push_back(&*i);
29  }
30  selected_ = theSelector.select(all_, evt); // might add dummy...
31  }

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

◆ size()

size_t CSCOverlapConfigSelector::size ( void  ) const
inline

Definition at line 22 of file AlignmentCSCOverlapSelectorModule.cc.

22 { return selected_.size(); }

References selected_.

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

Member Data Documentation

◆ all_

container CSCOverlapConfigSelector::all_
private

Definition at line 34 of file AlignmentCSCOverlapSelectorModule.cc.

Referenced by select().

◆ selected_

container CSCOverlapConfigSelector::selected_
private

Definition at line 34 of file AlignmentCSCOverlapSelectorModule.cc.

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

◆ theSelector

AlignmentCSCOverlapSelector CSCOverlapConfigSelector::theSelector
private

Definition at line 35 of file AlignmentCSCOverlapSelectorModule.cc.

Referenced by select().

mps_fire.i
i
Definition: mps_fire.py:428
CSCOverlapConfigSelector::theSelector
AlignmentCSCOverlapSelector theSelector
Definition: AlignmentCSCOverlapSelectorModule.cc:35
AlignmentCSCOverlapSelector::select
Tracks select(const Tracks &tracks, const edm::Event &iEvent) const
select tracks
Definition: AlignmentCSCOverlapSelector.cc:32
CSCOverlapConfigSelector::selected_
container selected_
Definition: AlignmentCSCOverlapSelectorModule.cc:34
CSCOverlapConfigSelector::all_
container all_
Definition: AlignmentCSCOverlapSelectorModule.cc:34
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
looper.cfg
cfg
Definition: looper.py:297