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

Member Function Documentation

◆ begin()

const_iterator SeedConfigSelector::begin ( ) const
inline

Definition at line 15 of file AlignmentSeedSelectorModule.cc.

References selected_.

15 { return selected_.begin(); }

◆ end()

const_iterator SeedConfigSelector::end ( ) const
inline

Definition at line 16 of file AlignmentSeedSelectorModule.cc.

References selected_.

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

16 { return selected_.end(); }

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

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

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  }
Seeds select(const Seeds &seeds, const edm::Event &evt) const
select tracks
AlignmentSeedSelector theSelector

◆ size()

size_t SeedConfigSelector::size ( void  ) const
inline

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