Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:27:53

0001 #include "RecoTracker/TkSeedGenerator/interface/MultiHitGeneratorFromPairAndLayers.h"
0002 #include "RecoTracker/TkHitPairs/interface/HitPairGeneratorFromLayerPair.h"
0003 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0004 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0005 
0006 MultiHitGeneratorFromPairAndLayers::MultiHitGeneratorFromPairAndLayers(const edm::ParameterSet& pset)
0007     : theLayerCache(nullptr), theMaxElement(pset.getParameter<unsigned int>("maxElement")) {}
0008 
0009 MultiHitGeneratorFromPairAndLayers::~MultiHitGeneratorFromPairAndLayers() {}
0010 
0011 void MultiHitGeneratorFromPairAndLayers::fillDescriptions(edm::ParameterSetDescription& desc) {
0012   desc.add<unsigned int>("maxElement", 1000000);
0013 }
0014 
0015 void MultiHitGeneratorFromPairAndLayers::init(std::unique_ptr<HitPairGeneratorFromLayerPair>&& pairGenerator,
0016                                               LayerCacheType* layerCache) {
0017   thePairGenerator = std::move(pairGenerator);
0018   theLayerCache = layerCache;
0019 }
0020 
0021 void MultiHitGeneratorFromPairAndLayers::clear() { cache.clear(); }