CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HitPairGenerator.h
Go to the documentation of this file.
1 #ifndef HitPairGenerator_H
2 #define HitPairGenerator_H
3 
4 #include <vector>
5 
16 
17 class TrackingRegion;
18 namespace edm { class Event; class EventSetup; }
19 
21 public:
22 
23  explicit HitPairGenerator(unsigned int size=4000);
25 
26  virtual ~HitPairGenerator() { }
27 
29 
30  virtual const OrderedHitPairs & run(
31  const TrackingRegion& region, const edm::Event & ev, const edm::EventSetup& es);
32 
33  // temporary interface for backward compatibility only
34  virtual void hitPairs(
35  const TrackingRegion& reg, OrderedHitPairs & prs, const edm::EventSetup& es) {}
36 
37  // new interface with no temphits copy
38  virtual HitDoublets doublets( const TrackingRegion& reg,
39  const edm::Event & ev, const edm::EventSetup& es) {
40  assert(0=="not implemented");
41  }
42 
43 
44  virtual void hitPairs( const TrackingRegion& reg, OrderedHitPairs & prs,
45  const edm::Event & ev, const edm::EventSetup& es) = 0;
46 
47  virtual HitPairGenerator* clone() const = 0;
48 
49  virtual void clear() final;
50 
51 private:
53  edm::RunningAverage localRA;
54 
55 };
56 
57 #endif
virtual HitPairGenerator * clone() const =0
HitPairGenerator(HitPairGenerator const &other)
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
edm::RunningAverage localRA
bool ev
virtual void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::EventSetup &es)
virtual void clear() final
virtual HitDoublets doublets(const TrackingRegion &reg, const edm::Event &ev, const edm::EventSetup &es)
#define private
Definition: FWFileEntry.h:17
OrderedHitPairs thePairs
HitPairGenerator(unsigned int size=4000)
virtual const OrderedHitPairs & run(const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es)
tuple size
Write out results.
virtual void setSeedingLayers(SeedingLayerSetsHits::SeedingLayerSet layers)=0
virtual ~HitPairGenerator()