CMS 3D CMS Logo

HitPairGeneratorFromLayerPair.h
Go to the documentation of this file.
1 #ifndef HitPairGeneratorFromLayerPair_h
2 #define HitPairGeneratorFromLayerPair_h
3 
7 
8 class DetLayer;
9 class TrackingRegion;
10 
12 
13 public:
14 
18 
20  unsigned int outer,
21  LayerCacheType* layerCache,
22  unsigned int max=0);
23 
25 
27  const edm::Event & ev, const edm::EventSetup& es, Layers layers) {
28  assert(theLayerCache);
29  return doublets(reg, ev, es, layers, *theLayerCache);
30  }
32  const edm::Event & ev, const edm::EventSetup& es, const Layer& innerLayer, const Layer& outerLayer) {
33  assert(theLayerCache);
34  return doublets(reg, ev, es, innerLayer, outerLayer, *theLayerCache);
35  }
37  const edm::Event & ev, const edm::EventSetup& es, Layers layers, LayerCacheType& layerCache) {
38  Layer innerLayerObj = innerLayer(layers);
39  Layer outerLayerObj = outerLayer(layers);
40  return doublets(reg, ev, es, innerLayerObj, outerLayerObj, layerCache);
41  }
43  const edm::Event & ev, const edm::EventSetup& es, const Layer& innerLayer, const Layer& outerLayer, LayerCacheType& layerCache);
44 
45  void hitPairs( const TrackingRegion& reg, OrderedHitPairs & prs,
46  const edm::Event & ev, const edm::EventSetup& es, Layers layers);
47  static void doublets(
48  const TrackingRegion& region,
49  const DetLayer & innerHitDetLayer,
50  const DetLayer & outerHitDetLayer,
51  const RecHitsSortedInPhi & innerHitsMap,
52  const RecHitsSortedInPhi & outerHitsMap,
53  const edm::EventSetup& iSetup,
54  const unsigned int theMaxElement,
56 
57 
58 
59  Layer innerLayer(const Layers& layers) const { return layers[theInnerLayer]; }
60  Layer outerLayer(const Layers& layers) const { return layers[theOuterLayer]; }
61 
62 private:
63  LayerCacheType *theLayerCache;
64  const unsigned int theOuterLayer;
65  const unsigned int theInnerLayer;
66  const unsigned int theMaxElement;
67 };
68 
69 #endif
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es, Layers layers)
HitDoublets doublets(const TrackingRegion &reg, const edm::Event &ev, const edm::EventSetup &es, Layers layers, LayerCacheType &layerCache)
bool ev
Layer innerLayer(const Layers &layers) const
HitDoublets doublets(const TrackingRegion &reg, const edm::Event &ev, const edm::EventSetup &es, Layers layers)
SeedingLayerSetsHits::SeedingLayer Layer
HitDoublets doublets(const TrackingRegion &reg, const edm::Event &ev, const edm::EventSetup &es, const Layer &innerLayer, const Layer &outerLayer)
HitPairGeneratorFromLayerPair(unsigned int inner, unsigned int outer, LayerCacheType *layerCache, unsigned int max=0)
Layer outerLayer(const Layers &layers) const
SeedingLayerSetsHits::SeedingLayerSet Layers