Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:28:54

0001 #include "RecoTracker/TkSeedGenerator/interface/MultiHitGenerator.h"
0002 #include <iostream>
0003 #include <typeinfo>
0004 
0005 const OrderedMultiHits& MultiHitGenerator::run(const TrackingRegion& region,
0006                                                const edm::Event& ev,
0007                                                const edm::EventSetup& es) {
0008   theHitSets.clear();  // called multiple time for the same seed collection
0009   theHitSets.reserve(localRA.upper());
0010   hitSets(region, theHitSets, ev, es);
0011   theHitSets.shrink_to_fit();
0012   localRA.update(theHitSets.size());
0013   return theHitSets;
0014 }
0015 
0016 void MultiHitGenerator::clear() {
0017   theHitSets.clear();
0018   theHitSets.shrink_to_fit();
0019 }