CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HitPairGenerator Class Referenceabstract

#include <HitPairGenerator.h>

Inheritance diagram for HitPairGenerator:
OrderedHitsGenerator CombinedHitPairGenerator

Public Member Functions

virtual void clear () final
 
 HitPairGenerator (unsigned int size=4000)
 
 HitPairGenerator (HitPairGenerator const &other)
 
virtual void hitPairs (const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)=0
 
virtual const OrderedHitPairsrun (const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es)
 
virtual ~HitPairGenerator ()
 
- Public Member Functions inherited from OrderedHitsGenerator
 OrderedHitsGenerator ()
 
virtual ~OrderedHitsGenerator ()
 

Private Attributes

edm::RunningAverage localRA
 
OrderedHitPairs thePairs
 

Additional Inherited Members

- Public Attributes inherited from OrderedHitsGenerator
unsigned int theMaxElement
 

Detailed Description

Definition at line 20 of file HitPairGenerator.h.

Constructor & Destructor Documentation

HitPairGenerator::HitPairGenerator ( unsigned int  size = 4000)
explicit

Definition at line 3 of file HitPairGenerator.cc.

3 : localRA(nSize) {}
edm::RunningAverage localRA
HitPairGenerator::HitPairGenerator ( HitPairGenerator const &  other)
inline

Definition at line 24 of file HitPairGenerator.h.

24 : localRA(other.localRA.mean()){}
edm::RunningAverage localRA
virtual HitPairGenerator::~HitPairGenerator ( )
inlinevirtual

Definition at line 26 of file HitPairGenerator.h.

References hitfit::clear(), ev, and findQualityFiles::run.

26 { }

Member Function Documentation

void HitPairGenerator::clear ( void  )
finalvirtual

Reimplemented from OrderedHitsGenerator.

Definition at line 16 of file HitPairGenerator.cc.

References localRA, OrderedHitPairs::size(), thePairs, and edm::RunningAverage::update().

17 {
19  thePairs.clear(); thePairs.shrink_to_fit();
20 }
edm::RunningAverage localRA
virtual unsigned int size() const
OrderedHitPairs thePairs
void update(unsigned int q)
virtual void HitPairGenerator::hitPairs ( const TrackingRegion reg,
OrderedHitPairs prs,
const edm::Event ev,
const edm::EventSetup es 
)
pure virtual

Implemented in CombinedHitPairGenerator.

Referenced by run().

const OrderedHitPairs & HitPairGenerator::run ( const TrackingRegion region,
const edm::Event ev,
const edm::EventSetup es 
)
virtual

Implements OrderedHitsGenerator.

Definition at line 5 of file HitPairGenerator.cc.

References hitPairs(), localRA, OrderedHitPairs::size(), thePairs, and edm::RunningAverage::upper().

7 {
8  assert(thePairs.size()==0); assert(thePairs.capacity()==0);
9  thePairs.reserve(localRA.upper());
10  hitPairs(region, thePairs, ev, es);
11  thePairs.shrink_to_fit();
12  return thePairs;
13 }
edm::RunningAverage localRA
virtual unsigned int size() const
virtual void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)=0
int upper() const
OrderedHitPairs thePairs

Member Data Documentation

edm::RunningAverage HitPairGenerator::localRA
private

Definition at line 38 of file HitPairGenerator.h.

Referenced by clear(), and run().

OrderedHitPairs HitPairGenerator::thePairs
private

Definition at line 37 of file HitPairGenerator.h.

Referenced by clear(), and run().