CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes | Private Attributes
MultiHitGenerator Class Referenceabstract

#include <MultiHitGenerator.h>

Inheritance diagram for MultiHitGenerator:
OrderedHitsGenerator CombinedMultiHitGenerator MultiHitGeneratorFromPairAndLayers MultiHitGeneratorFromChi2

Public Member Functions

virtual void clear ()
 
virtual void hitSets (const TrackingRegion &reg, OrderedMultiHits &prs, const edm::EventSetup &es)
 
virtual void hitSets (const TrackingRegion &reg, OrderedMultiHits &prs, const edm::Event &ev, const edm::EventSetup &es)=0
 
 MultiHitGenerator (unsigned int size=500)
 
virtual const OrderedMultiHitsrun (const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
 
virtual ~MultiHitGenerator ()
 
- Public Member Functions inherited from OrderedHitsGenerator
 OrderedHitsGenerator ()
 
virtual ~OrderedHitsGenerator ()
 

Protected Types

using cacheHitPointer = std::unique_ptr< BaseTrackerRecHit >
 
using cacheHits = std::vector< cacheHitPointer >
 

Protected Attributes

cacheHits cache
 

Private Attributes

OrderedMultiHits theHitSets
 

Additional Inherited Members

- Public Attributes inherited from OrderedHitsGenerator
unsigned int theMaxElement
 

Detailed Description

Definition at line 19 of file MultiHitGenerator.h.

Member Typedef Documentation

using MultiHitGenerator::cacheHitPointer = std::unique_ptr<BaseTrackerRecHit>
protected

Definition at line 42 of file MultiHitGenerator.h.

using MultiHitGenerator::cacheHits = std::vector<cacheHitPointer>
protected

Definition at line 43 of file MultiHitGenerator.h.

Constructor & Destructor Documentation

MultiHitGenerator::MultiHitGenerator ( unsigned int  size = 500)

Definition at line 5 of file MultiHitGenerator.cc.

References theHitSets.

6 {
7  theHitSets.reserve(nSize);
8 }
OrderedMultiHits theHitSets
virtual MultiHitGenerator::~MultiHitGenerator ( )
inlinevirtual

Definition at line 24 of file MultiHitGenerator.h.

24 { }

Member Function Documentation

void MultiHitGenerator::clear ( void  )
virtual

Reimplemented from OrderedHitsGenerator.

Reimplemented in CombinedMultiHitGenerator.

Definition at line 20 of file MultiHitGenerator.cc.

References cache, and theHitSets.

21 {
22  //std::cout << "MultiHitGenerator " << typeid(*this).name()
23  // <<" cache c " << cache.size() << ' ' << cache.capacity() << std::endl;
24  theHitSets.clear();
25  cache.clear();
26 }
OrderedMultiHits theHitSets
virtual void MultiHitGenerator::hitSets ( const TrackingRegion reg,
OrderedMultiHits prs,
const edm::EventSetup es 
)
inlinevirtual

Definition at line 30 of file MultiHitGenerator.h.

Referenced by run().

31  {}
virtual void MultiHitGenerator::hitSets ( const TrackingRegion reg,
OrderedMultiHits prs,
const edm::Event ev,
const edm::EventSetup es 
)
pure virtual
const OrderedMultiHits & MultiHitGenerator::run ( const TrackingRegion region,
const edm::Event ev,
const edm::EventSetup es 
)
finalvirtual

Implements OrderedHitsGenerator.

Definition at line 10 of file MultiHitGenerator.cc.

References hitSets(), and theHitSets.

12 {
13  // std::cout << "MultiHitGenerator cache b " << cache.size() << std::endl;
14  theHitSets.clear();
15  hitSets(region, theHitSets, ev, es);
16  // std::cout << "MultiHitGenerator cache a " << cache.size() << std::endl;
17  return theHitSets;
18 }
virtual void hitSets(const TrackingRegion &reg, OrderedMultiHits &prs, const edm::EventSetup &es)
OrderedMultiHits theHitSets

Member Data Documentation

cacheHits MultiHitGenerator::cache
protected

Definition at line 44 of file MultiHitGenerator.h.

Referenced by clear(), and MultiHitGeneratorFromChi2::hitSets().

OrderedMultiHits MultiHitGenerator::theHitSets
private

Definition at line 39 of file MultiHitGenerator.h.

Referenced by clear(), MultiHitGenerator(), and run().