CMS 3D CMS Logo

CombinedHitPairGenerator.cc
Go to the documentation of this file.
6 
8  : theSeedingLayerToken(iC.consumes<SeedingLayerSetsHits>(cfg.getParameter<edm::InputTag>("SeedingLayers"))) {
9  theMaxElement = cfg.getParameter<unsigned int>("maxElement");
10  theGenerator = std::make_unique<HitPairGeneratorFromLayerPair>(iC, 0, 1, &theLayerCache, theMaxElement);
11 }
12 
14 
17  const edm::Event& ev,
18  const edm::EventSetup& es) {
20  ev.getByToken(theSeedingLayerToken, hlayers);
21  const SeedingLayerSetsHits& layers = *hlayers;
22  if (layers.numberOfLayersInSet() != 2)
23  throw cms::Exception("Configuration")
24  << "CombinedHitPairGenerator expects SeedingLayerSetsHits::numberOfLayersInSet() to be 2, got "
25  << layers.numberOfLayersInSet();
26 
28  theGenerator->hitPairs(region, result, ev, es, layerSet);
29  }
30 
32 
33  LogDebug("CombinedHitPairGenerator") << " total number of pairs provided back CHPG : " << result.size();
34 }
void hitPairs(const TrackingRegion &reg, OrderedHitPairs &result, const edm::Event &ev, const edm::EventSetup &es) override
form base class
std::unique_ptr< HitPairGeneratorFromLayerPair > theGenerator
edm::EDGetTokenT< SeedingLayerSetsHits > theSeedingLayerToken
CombinedHitPairGenerator(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
HLT enums.
#define LogDebug(id)