CMS 3D CMS Logo

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

#include <HitQuadrupletGenerator.h>

Inheritance diagram for HitQuadrupletGenerator:
OrderedHitsGenerator CAHitQuadrupletGenerator CombinedHitQuadrupletGenerator

Public Member Functions

virtual 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
 
virtual const OrderedHitSeedsrun (const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
 
virtual ~HitQuadrupletGenerator ()
 
- 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
virtual HitQuadrupletGenerator::~HitQuadrupletGenerator ( )
inlinevirtual

Definition at line 22 of file HitQuadrupletGenerator.h.

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 CAHitQuadrupletGenerator, and 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 assert(), 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
assert(m_qm.get())
virtual unsigned int size() const
int upper() const
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().