CMS 3D CMS Logo

LaserHitPairGenerator.h
Go to the documentation of this file.
1 #ifndef LaserAlignment_LaserHitPairGenerator_h
2 #define LaserAlignment_LaserHitPairGenerator_h
3 
14 
15 
17 
18 #include <vector>
19 
20 class SeedLayerPairs;
21 class LayerWithHits;
22 class DetLayer;
23 class TrackingRegion;
24 class LaserHitPairGeneratorFromLayerPair;
25 
26 
28 {
29  typedef std::vector<LaserHitPairGeneratorFromLayerPair *> Container;
31 
32  public:
34  LaserHitPairGenerator(unsigned int size=30000) {thePairs.reserve(size); }
35 
40 
42  virtual ~LaserHitPairGenerator();
43 
45  void add(const LayerWithHits * inner, const LayerWithHits * outer, const edm::EventSetup & iSetup);
46 
47  virtual void hitPairs(const TrackingRegion & reg, OrderedLaserHitPairs & prs, const edm::EventSetup & iSetup);
48  virtual void hitPairs(const TrackingRegion & reg, OrderedLaserHitPairs & prs, const edm::Event & ev, const edm::EventSetup & iSetup) {}
49 
50  virtual const OrderedLaserHitPairs & run(const TrackingRegion& region, const edm::Event & iEvent, const edm::EventSetup& iSetup);
51 
52  virtual LaserHitPairGenerator * clone() const { return new LaserHitPairGenerator(*this); }
53 
54  private:
56  LayerCacheType theLayerCache;
57  Container theGenerators;
58 
59 };
60 
61 #endif
size
Write out results.
virtual void hitPairs(const TrackingRegion &reg, OrderedLaserHitPairs &prs, const edm::Event &ev, const edm::EventSetup &iSetup)
virtual LaserHitPairGenerator * clone() const
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
bool ev
LayerHitMapCache LayerCacheType
virtual void hitPairs(const TrackingRegion &reg, OrderedLaserHitPairs &prs, const edm::EventSetup &iSetup)
int iEvent
Definition: GenABIO.cc:230
OrderedLaserHitPairs thePairs
std::vector< LaserHitPairGeneratorFromLayerPair * > Container
LaserHitPairGenerator(unsigned int size=30000)
constructor
virtual ~LaserHitPairGenerator()
destructor
void add(const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)
add generators based on layers
virtual const OrderedLaserHitPairs & run(const TrackingRegion &region, const edm::Event &iEvent, const edm::EventSetup &iSetup)