CMS 3D CMS Logo

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

Public Types

typedef TrajectorySeedCollection collection
 
typedef container::const_iterator const_iterator
 
typedef std::vector< const TrajectorySeed * > container
 

Public Member Functions

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

Private Attributes

container all_
 
container selected_
 
AlignmentSeedSelector theSelector
 

Detailed Description

Definition at line 8 of file AlignmentSeedSelectorModule.cc.

Member Typedef Documentation

◆ collection

Definition at line 11 of file AlignmentSeedSelectorModule.cc.

◆ const_iterator

typedef container::const_iterator SeedConfigSelector::const_iterator

Definition at line 10 of file AlignmentSeedSelectorModule.cc.

◆ container

typedef std::vector<const TrajectorySeed *> SeedConfigSelector::container

Definition at line 9 of file AlignmentSeedSelectorModule.cc.

Constructor & Destructor Documentation

◆ SeedConfigSelector()

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

Definition at line 13 of file AlignmentSeedSelectorModule.cc.

13 : theSelector(cfg) {}

Member Function Documentation

◆ begin()

const_iterator SeedConfigSelector::begin ( ) const
inline

Definition at line 15 of file AlignmentSeedSelectorModule.cc.

15 { return selected_.begin(); }

References selected_.

◆ end()

const_iterator SeedConfigSelector::end ( ) const
inline

Definition at line 16 of file AlignmentSeedSelectorModule.cc.

16 { return selected_.end(); }

References selected_.

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

◆ select()

void SeedConfigSelector::select ( const edm::Handle< TrajectorySeedCollection c,
const edm::Event evt,
const edm::EventSetup  
)
inline

Definition at line 19 of file AlignmentSeedSelectorModule.cc.

19  {
20  all_.clear();
21  selected_.clear();
22  for (collection::const_iterator i = c.product()->begin(), iE = c.product()->end(); i != iE; ++i) {
23  all_.push_back(&*i);
24  }
25  selected_ = theSelector.select(all_, evt); // might add dummy...
26  }

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

◆ size()

size_t SeedConfigSelector::size ( void  ) const
inline

Definition at line 17 of file AlignmentSeedSelectorModule.cc.

17 { return selected_.size(); }

References selected_.

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

Member Data Documentation

◆ all_

container SeedConfigSelector::all_
private

Definition at line 29 of file AlignmentSeedSelectorModule.cc.

Referenced by select().

◆ selected_

container SeedConfigSelector::selected_
private

Definition at line 29 of file AlignmentSeedSelectorModule.cc.

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

◆ theSelector

AlignmentSeedSelector SeedConfigSelector::theSelector
private

Definition at line 30 of file AlignmentSeedSelectorModule.cc.

Referenced by select().

mps_fire.i
i
Definition: mps_fire.py:355
SeedConfigSelector::all_
container all_
Definition: AlignmentSeedSelectorModule.cc:29
AlignmentSeedSelector::select
Seeds select(const Seeds &seeds, const edm::Event &evt) const
select tracks
Definition: AlignmentSeedSelector.cc:21
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
looper.cfg
cfg
Definition: looper.py:297
SeedConfigSelector::selected_
container selected_
Definition: AlignmentSeedSelectorModule.cc:29
SeedConfigSelector::theSelector
AlignmentSeedSelector theSelector
Definition: AlignmentSeedSelectorModule.cc:30