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>(0, 1, &theLayerCache, theMaxElement);
11 }
12 
14  : HitPairGenerator(cb),
15  theSeedingLayerToken(cb.theSeedingLayerToken),
16  theGenerator(std::make_unique<HitPairGeneratorFromLayerPair>(0, 1, &theLayerCache, cb.theMaxElement)) {
18 }
19 
21 
24  const edm::Event& ev,
25  const edm::EventSetup& es) {
27  ev.getByToken(theSeedingLayerToken, hlayers);
28  const SeedingLayerSetsHits& layers = *hlayers;
29  if (layers.numberOfLayersInSet() != 2)
30  throw cms::Exception("Configuration")
31  << "CombinedHitPairGenerator expects SeedingLayerSetsHits::numberOfLayersInSet() to be 2, got "
32  << layers.numberOfLayersInSet();
33 
35  theGenerator->hitPairs(region, result, ev, es, layerSet);
36  }
37 
39 
40  LogDebug("CombinedHitPairGenerator") << " total number of pairs provided back CHPG : " << result.size();
41 }
Handle.h
OrderedHitPairs
Definition: OrderedHitPairs.h:8
OrderedHitsGenerator::theMaxElement
unsigned int theMaxElement
Definition: OrderedHitsGenerator.h:23
edm
HLT enums.
Definition: AlignableModifier.h:19
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:85964
CombinedHitPairGenerator::~CombinedHitPairGenerator
~CombinedHitPairGenerator() override
Definition: CombinedHitPairGenerator.cc:20
SeedingLayerSetsHits
Definition: SeedingLayerSetsHits.h:18
edm::Handle
Definition: AssociativeIterator.h:50
HitPairGeneratorFromLayerPair
Definition: HitPairGeneratorFromLayerPair.h:11
CombinedHitPairGenerator::theLayerCache
LayerCacheType theLayerCache
Definition: CombinedHitPairGenerator.h:44
CombinedHitPairGenerator::CombinedHitPairGenerator
CombinedHitPairGenerator(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
Definition: CombinedHitPairGenerator.cc:7
HitPairGenerator
Definition: HitPairGenerator.h:23
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
CombinedHitPairGenerator::theGenerator
std::unique_ptr< HitPairGeneratorFromLayerPair > theGenerator
Definition: CombinedHitPairGenerator.h:46
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:84949
edm::EventSetup
Definition: EventSetup.h:57
looper.cfg
cfg
Definition: looper.py:297
CombinedHitPairGenerator::theSeedingLayerToken
edm::EDGetTokenT< SeedingLayerSetsHits > theSeedingLayerToken
Definition: CombinedHitPairGenerator.h:42
std
Definition: JetResolutionObject.h:76
CombinedHitPairGenerator.h
HitPairGeneratorFromLayerPair.h
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
SeedingLayerSetsHits::SeedingLayerSet
Definition: SeedingLayerSetsHits.h:65
CombinedHitPairGenerator::hitPairs
void hitPairs(const TrackingRegion &reg, OrderedHitPairs &result, const edm::Event &ev, const edm::EventSetup &es) override
form base class
Definition: CombinedHitPairGenerator.cc:22
LayerHitMapCache::clear
void clear()
Definition: LayerHitMapCache.h:69
CombinedHitPairGenerator
Definition: CombinedHitPairGenerator.h:25
TrackingRegion
Definition: TrackingRegion.h:41
mps_fire.result
result
Definition: mps_fire.py:311
ConsumesCollector.h
cms::Exception
Definition: Exception.h:70
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
hgcalTopologyTester_cfi.layers
layers
Definition: hgcalTopologyTester_cfi.py:8