CMS 3D CMS Logo

HitQuadrupletGenerator.cc
Go to the documentation of this file.
2 
3 HitQuadrupletGenerator::HitQuadrupletGenerator(unsigned int nSize): localRA(nSize) {}
4 
6  const TrackingRegion& region, const edm::Event & ev, const edm::EventSetup& es)
7 {
8  assert(theQuadruplets.empty());assert(theQuadruplets.capacity()==0);
9  theQuadruplets.reserve(localRA.upper());
10  hitQuadruplets(region, theQuadruplets, ev, es);
12  theQuadruplets.shrink_to_fit();
13  return theQuadruplets;
14 }
15 
17 {
18  theQuadruplets.clear(); theQuadruplets.shrink_to_fit();
19 }
20 
edm::RunningAverage localRA
bool ev
int upper() const
unsigned int size() const override
HitQuadrupletGenerator(unsigned int size=500)
virtual void hitQuadruplets(const TrackingRegion &reg, OrderedHitSeeds &prs, const edm::Event &ev, const edm::EventSetup &es)=0
const OrderedHitSeeds & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
void update(unsigned int q)