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  const TrackingRegion& region, const edm::Event & ev, const edm::EventSetup& es)
7 {
8  // std::cout << "MultiHitGenerator cache b " << cache.size() << std::endl;
9  theHitSets.clear(); // called multiple time for the same seed collection
10  theHitSets.reserve(localRA.upper());
11  hitSets(region, theHitSets, ev, es);
12  // std::cout << "MultiHitGenerator cache a " << cache.size() << std::endl;
13  theHitSets.shrink_to_fit();
15  return theHitSets;
16 }
17 
19 {
20  theHitSets.clear(); theHitSets.shrink_to_fit();
21  //std::cout << "MultiHitGenerator " << typeid(*this).name()
22  // <<" cache c " << cache.size() << ' ' << cache.capacity() << std::endl;
23  cache.clear();
24 }
25 
virtual void hitSets(const TrackingRegion &reg, OrderedMultiHits &prs, const edm::EventSetup &es)
virtual void clear()
OrderedMultiHits theHitSets
bool ev
virtual unsigned int size() const
int upper() const
virtual const OrderedMultiHits & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
edm::RunningAverage localRA
void update(unsigned int q)