Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:50

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