CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HitPairGeneratorFromLayerPair.h
Go to the documentation of this file.
1 #ifndef HitPairGeneratorFromLayerPair_h
2 #define HitPairGeneratorFromLayerPair_h
3 
8 
9 class DetLayer;
11 class MagneticField;
14 class TrackingRegion;
15 
17 public:
21 
23  unsigned int inner,
24  unsigned int outer,
25  LayerCacheType* layerCache,
26  unsigned int max = 0);
27 
29 
32  return doublets(reg, ev, es, layers, *theLayerCache);
33  }
35  const edm::Event& ev,
36  const edm::EventSetup& es,
37  const Layer& innerLayer,
38  const Layer& outerLayer) {
40  return doublets(reg, ev, es, innerLayer, outerLayer, *theLayerCache);
41  }
43  const edm::Event& ev,
44  const edm::EventSetup& es,
45  Layers layers,
46  LayerCacheType& layerCache) {
47  Layer innerLayerObj = innerLayer(layers);
48  Layer outerLayerObj = outerLayer(layers);
49  return doublets(reg, ev, es, innerLayerObj, outerLayerObj, layerCache);
50  }
52  const edm::Event& ev,
53  const edm::EventSetup& es,
54  const Layer& innerLayer,
55  const Layer& outerLayer,
56  LayerCacheType& layerCache);
57 
58  void hitPairs(
59  const TrackingRegion& reg, OrderedHitPairs& prs, const edm::Event& ev, const edm::EventSetup& es, Layers layers);
60  static void doublets(const TrackingRegion& region,
61  const DetLayer& innerHitDetLayer,
62  const DetLayer& outerHitDetLayer,
63  const RecHitsSortedInPhi& innerHitsMap,
64  const RecHitsSortedInPhi& outerHitsMap,
65  const MagneticField& field,
67  const unsigned int theMaxElement,
69 
70  Layer innerLayer(const Layers& layers) const { return layers[theInnerLayer]; }
71  Layer outerLayer(const Layers& layers) const { return layers[theOuterLayer]; }
72 
73 private:
77  const unsigned int theOuterLayer;
78  const unsigned int theInnerLayer;
79  const unsigned int theMaxElement;
80 };
81 
82 #endif
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
HitPairGeneratorFromLayerPair(edm::ConsumesCollector iC, unsigned int inner, unsigned int outer, LayerCacheType *layerCache, unsigned int max=0)
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
assert(be >=bs)
Layer innerLayer(const Layers &layers) const
tuple result
Definition: mps_fire.py:311
HitDoublets doublets(const TrackingRegion &reg, const edm::Event &ev, const edm::EventSetup &es, Layers layers)
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theFieldToken
SeedingLayerSetsHits::SeedingLayer Layer
const edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > theMSMakerToken
HitDoublets doublets(const TrackingRegion &reg, const edm::Event &ev, const edm::EventSetup &es, const Layer &innerLayer, const Layer &outerLayer)
Layer outerLayer(const Layers &layers) const
SeedingLayerSetsHits::SeedingLayerSet Layers