CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlignmentSeedSelectorModule.cc
Go to the documentation of this file.
1 
7 
9 
10  typedef std::vector<const TrajectorySeed*> container;
11  typedef container::const_iterator const_iterator;
13 
15  theSelector(cfg) {}
16 
17  const_iterator begin() const { return selected_.begin(); }
18  const_iterator end() const { return selected_.end(); }
19  size_t size() const { return selected_.size(); }
20 
22  const edm::EventSetup &/*dummy*/)
23  {
24  all_.clear();
25  selected_.clear();
26  for (collection::const_iterator i = c.product()->begin(), iE = c.product()->end();
27  i != iE; ++i) {
28  all_.push_back( & * i );
29  }
30  selected_ = theSelector.select(all_, evt); // might add dummy...
31  }
32 
33 private:
36 };
37 
39 
ObjectSelector< SeedConfigSelector > AlignmentSeedSelectorModule
int i
Definition: DBlmapReader.cc:9
tuple cfg
Definition: looper.py:237
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
SeedConfigSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
std::vector< const TrajectorySeed * > container
const_iterator end() const
TrajectorySeedCollection collection
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 &)
T const * product() const
Definition: Handle.h:81
AlignmentSeedSelector theSelector
const_iterator begin() const
container::const_iterator const_iterator