CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MultiHitGenerator.cc
Go to the documentation of this file.
2 #include<iostream>
3 #include<typeinfo>
4 
6 {
7  theHitSets.reserve(nSize);
8 }
9 
11  const TrackingRegion& region, const edm::Event & ev, const edm::EventSetup& es)
12 {
13  // std::cout << "MultiHitGenerator cache b " << cache.size() << std::endl;
14  theHitSets.clear();
15  hitSets(region, theHitSets, ev, es);
16  // std::cout << "MultiHitGenerator cache a " << cache.size() << std::endl;
17  return theHitSets;
18 }
19 
21 {
22  //std::cout << "MultiHitGenerator " << typeid(*this).name()
23  // <<" cache c " << cache.size() << ' ' << cache.capacity() << std::endl;
24  theHitSets.clear();
25  cache.clear();
26 }
27 
virtual void hitSets(const TrackingRegion &reg, OrderedMultiHits &prs, const edm::EventSetup &es)
virtual void clear()
OrderedMultiHits theHitSets
virtual const OrderedMultiHits & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
MultiHitGenerator(unsigned int size=500)