CMS 3D CMS Logo

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

#include <HitQuadrupletGenerator.h>

Inheritance diagram for HitQuadrupletGenerator:
OrderedHitsGenerator CombinedHitQuadrupletGenerator

Public Member Functions

void clear () final
 
 HitQuadrupletGenerator (unsigned int size=500)
 
virtual void hitQuadruplets (const TrackingRegion &reg, OrderedHitSeeds &prs, const edm::Event &ev, const edm::EventSetup &es)=0
 
const OrderedHitSeedsrun (const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
 
 ~HitQuadrupletGenerator () override
 
- Public Member Functions inherited from OrderedHitsGenerator
 OrderedHitsGenerator ()
 
virtual ~OrderedHitsGenerator ()
 

Private Attributes

edm::RunningAverage localRA
 
OrderedHitSeeds theQuadruplets
 

Additional Inherited Members

- Public Attributes inherited from OrderedHitsGenerator
unsigned int theMaxElement
 

Detailed Description

Definition at line 17 of file HitQuadrupletGenerator.h.

Constructor & Destructor Documentation

HitQuadrupletGenerator::HitQuadrupletGenerator ( unsigned int  size = 500)

Definition at line 3 of file HitQuadrupletGenerator.cc.

3 : localRA(nSize) {}
edm::RunningAverage localRA
HitQuadrupletGenerator::~HitQuadrupletGenerator ( )
inlineoverride

Definition at line 22 of file HitQuadrupletGenerator.h.

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

22 { }

Member Function Documentation

void HitQuadrupletGenerator::clear ( void  )
finalvirtual

Reimplemented from OrderedHitsGenerator.

Definition at line 16 of file HitQuadrupletGenerator.cc.

References theQuadruplets.

17 {
18  theQuadruplets.clear(); theQuadruplets.shrink_to_fit();
19 }
virtual void HitQuadrupletGenerator::hitQuadruplets ( const TrackingRegion reg,
OrderedHitSeeds prs,
const edm::Event ev,
const edm::EventSetup es 
)
pure virtual

Implemented in CombinedHitQuadrupletGenerator.

Referenced by run().

const OrderedHitSeeds & HitQuadrupletGenerator::run ( const TrackingRegion region,
const edm::Event ev,
const edm::EventSetup es 
)
finalvirtual

Implements OrderedHitsGenerator.

Definition at line 5 of file HitQuadrupletGenerator.cc.

References hitQuadruplets(), localRA, OrderedHitSeeds::size(), theQuadruplets, edm::RunningAverage::update(), and edm::RunningAverage::upper().

7 {
8  assert(theQuadruplets.size()==0);assert(theQuadruplets.capacity()==0);
9  theQuadruplets.reserve(localRA.upper());
10  hitQuadruplets(region, theQuadruplets, ev, es);
12  theQuadruplets.shrink_to_fit();
13  return theQuadruplets;
14 }
edm::RunningAverage localRA
int upper() const
unsigned int size() const override
virtual void hitQuadruplets(const TrackingRegion &reg, OrderedHitSeeds &prs, const edm::Event &ev, const edm::EventSetup &es)=0
void update(unsigned int q)

Member Data Documentation

edm::RunningAverage HitQuadrupletGenerator::localRA
private

Definition at line 34 of file HitQuadrupletGenerator.h.

Referenced by run().

OrderedHitSeeds HitQuadrupletGenerator::theQuadruplets
private

Definition at line 33 of file HitQuadrupletGenerator.h.

Referenced by clear(), and run().