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 
6 
8 
9  typedef std::vector<const TrajectorySeed*> container;
10  typedef container::const_iterator const_iterator;
12 
14  theSelector(cfg) {}
15 
16  const_iterator begin() const { return selected_.begin(); }
17  const_iterator end() const { return selected_.end(); }
18  size_t size() const { return selected_.size(); }
19 
21  const edm::EventSetup &/*dummy*/)
22  {
23  all_.clear();
24  selected_.clear();
25  for (collection::const_iterator i = c.product()->begin(), iE = c.product()->end();
26  i != iE; ++i) {
27  all_.push_back( & * i );
28  }
29  selected_ = theSelector.select(all_, evt); // might add dummy...
30  }
31 
32 private:
35 };
36 
38 
ObjectSelector< SeedConfigSelector > AlignmentSeedSelectorModule
int i
Definition: DBlmapReader.cc:9
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
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
SeedConfigSelector(const edm::ParameterSet &cfg)
void select(const edm::Handle< TrajectorySeedCollection > c, const edm::Event &evt, const edm::EventSetup &)
T const * product() const
Definition: Handle.h:74
AlignmentSeedSelector theSelector
const_iterator begin() const
container::const_iterator const_iterator