CMS 3D CMS Logo

AlignmentSeedSelectorModule.cc
Go to the documentation of this file.
1 
7 
9  typedef std::vector<const TrajectorySeed *> container;
10  typedef container::const_iterator const_iterator;
12 
14 
15  const_iterator begin() const { return selected_.begin(); }
16  const_iterator end() const { return selected_.end(); }
17  size_t size() const { return selected_.size(); }
18 
19  void select(const edm::Handle<TrajectorySeedCollection> c, const edm::Event &evt, const edm::EventSetup & /*dummy*/) {
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  }
27 
28 private:
31 };
32 
34 
ObjectSelector< SeedConfigSelector > AlignmentSeedSelectorModule
const_iterator begin() const
SeedConfigSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
TrajectorySeedCollection collection
std::vector< TrajectorySeed > TrajectorySeedCollection
Seeds select(const Seeds &seeds, const edm::Event &evt) const
select tracks
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void select(const edm::Handle< TrajectorySeedCollection > c, const edm::Event &evt, const edm::EventSetup &)
std::vector< const TrajectorySeed * > container
const_iterator end() const
AlignmentSeedSelector theSelector
container::const_iterator const_iterator