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
HitTripletGenerator Class Referenceabstract

#include <HitTripletGenerator.h>

Inheritance diagram for HitTripletGenerator:
OrderedHitsGenerator CombinedHitTripletGenerator

Public Member Functions

virtual void clear () final
 
 HitTripletGenerator (unsigned int size=500)
 
 HitTripletGenerator (HitTripletGenerator const &other)
 
virtual void hitTriplets (const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::EventSetup &es)
 
virtual void hitTriplets (const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::Event &ev, const edm::EventSetup &es)=0
 
virtual const OrderedHitTripletsrun (const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
 
virtual ~HitTripletGenerator ()
 
- Public Member Functions inherited from OrderedHitsGenerator
 OrderedHitsGenerator ()
 
virtual ~OrderedHitsGenerator ()
 

Private Attributes

edm::RunningAverage localRA
 
OrderedHitTriplets theTriplets
 

Additional Inherited Members

- Public Attributes inherited from OrderedHitsGenerator
unsigned int theMaxElement
 

Detailed Description

Definition at line 18 of file HitTripletGenerator.h.

Constructor & Destructor Documentation

HitTripletGenerator::HitTripletGenerator ( unsigned int  size = 500)

Definition at line 3 of file HitTripletGenerator.cc.

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

Definition at line 22 of file HitTripletGenerator.h.

22 : localRA(other.localRA.mean()){}
edm::RunningAverage localRA
virtual HitTripletGenerator::~HitTripletGenerator ( )
inlinevirtual

Definition at line 24 of file HitTripletGenerator.h.

24 { }

Member Function Documentation

void HitTripletGenerator::clear ( void  )
finalvirtual

Reimplemented from OrderedHitsGenerator.

Definition at line 16 of file HitTripletGenerator.cc.

References theTriplets.

17 {
18  theTriplets.clear(); theTriplets.shrink_to_fit();
19 }
OrderedHitTriplets theTriplets
virtual void HitTripletGenerator::hitTriplets ( const TrackingRegion reg,
OrderedHitTriplets prs,
const edm::EventSetup es 
)
inlinevirtual

Definition at line 30 of file HitTripletGenerator.h.

Referenced by run().

31  {}
virtual void HitTripletGenerator::hitTriplets ( const TrackingRegion reg,
OrderedHitTriplets prs,
const edm::Event ev,
const edm::EventSetup es 
)
pure virtual

Implemented in CombinedHitTripletGenerator.

const OrderedHitTriplets & HitTripletGenerator::run ( const TrackingRegion region,
const edm::Event ev,
const edm::EventSetup es 
)
finalvirtual

Implements OrderedHitsGenerator.

Definition at line 5 of file HitTripletGenerator.cc.

References assert(), hitTriplets(), localRA, OrderedHitTriplets::size(), theTriplets, edm::RunningAverage::update(), and edm::RunningAverage::upper().

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

Member Data Documentation

edm::RunningAverage HitTripletGenerator::localRA
private

Definition at line 40 of file HitTripletGenerator.h.

Referenced by run().

OrderedHitTriplets HitTripletGenerator::theTriplets
private

Definition at line 39 of file HitTripletGenerator.h.

Referenced by clear(), and run().