CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CombinedHitQuadrupletGeneratorForPhotonConversion.cc
Go to the documentation of this file.
6 
8  : theSeedingLayerToken(iC.consumes<SeedingLayerSetsHits>(cfg.getParameter<edm::InputTag>("SeedingLayers")))
9 {
10  theMaxElement = cfg.getParameter<unsigned int>("maxElement");
12 }
13 
15  : theSeedingLayerToken(cb.theSeedingLayerToken)
16 {
19 }
20 
21 
23 
25  assert(0 == "not implemented");
26 }
27 
29 {
30  thePairs.clear();
31  hitPairs(region, thePairs, ev, es);
32  return thePairs;
33 }
34 
35 
37  const edm::Event& ev, const edm::EventSetup& es)
38 {
39  size_t maxHitQuadruplets=1000000;
41  ev.getByToken(theSeedingLayerToken, hlayers);
42  assert(hlayers->numberOfLayersInSet() == 2);
43 
44  for(SeedingLayerSetsHits::LayerSetIndex i=0; i<hlayers->size() && result.size() < maxHitQuadruplets; ++i) {
45  theGenerator->setSeedingLayers((*hlayers)[i]);
46  theGenerator->hitPairs( region, result, ev, es);
47  }
49 }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
tuple cfg
Definition: looper.py:259
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
void setSeedingLayers(SeedingLayerSetsHits::SeedingLayerSet layers) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:449
unsigned short LayerSetIndex
assert(m_qm.get())
bool ev
virtual unsigned int size() const
virtual void hitPairs(const TrackingRegion &, OrderedHitPairs &, const edm::Event &, const edm::EventSetup &)
form base class
const OrderedHitPairs & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es)
tuple result
Definition: query.py:137
std::unique_ptr< HitQuadrupletGeneratorFromLayerPairForPhotonConversion > theGenerator
CombinedHitQuadrupletGeneratorForPhotonConversion(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)