CMS 3D CMS Logo

MultiHitGenerator.h
Go to the documentation of this file.
1 #ifndef MultiHitGenerator_H
2 #define MultiHitGenerator_H
3 
10 
14 
15 class TrackingRegion;
16 namespace edm {
17  class Event;
18  class EventSetup;
19 } // namespace edm
20 #include <vector>
21 
23 public:
24  MultiHitGenerator(unsigned int size = 400) : localRA(size) {}
25  MultiHitGenerator(MultiHitGenerator const& other) : localRA(other.localRA.mean()) {}
26 
27  ~MultiHitGenerator() override {}
28 
29  const OrderedMultiHits& run(const TrackingRegion& region, const edm::Event& ev, const edm::EventSetup& es) final;
30 
31  // temporary interface, for bckwd compatibility
32  virtual void hitSets(const TrackingRegion& reg, OrderedMultiHits& prs, const edm::EventSetup& es) {}
33 
34  virtual void hitSets(const TrackingRegion& reg,
35  OrderedMultiHits& prs,
36  const edm::Event& ev,
37  const edm::EventSetup& es) = 0;
38 
39  void clear() override;
40 
41 private:
43 
44 protected:
46 };
47 
48 #endif
size
Write out results.
virtual void hitSets(const TrackingRegion &reg, OrderedMultiHits &prs, const edm::EventSetup &es)
OrderedMultiHits theHitSets
MultiHitGenerator(MultiHitGenerator const &other)
bool ev
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:151
~MultiHitGenerator() override
edm::RunningAverage localRA
HLT enums.
MultiHitGenerator(unsigned int size=400)