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:
29  container all_, selected_;
31 };
32 
34 
ObjectSelector< SeedConfigSelector > AlignmentSeedSelectorModule
SeedConfigSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
const_iterator end() const
TrajectorySeedCollection collection
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
std::vector< TrajectorySeed > TrajectorySeedCollection
Seeds select(const Seeds &seeds, const edm::Event &evt) const
select tracks
void select(const edm::Handle< TrajectorySeedCollection > c, const edm::Event &evt, const edm::EventSetup &)
std::vector< const TrajectorySeed * > container
T const * product() const
Definition: Handle.h:69
AlignmentSeedSelector theSelector
const_iterator begin() const
container::const_iterator const_iterator