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

#include <HitPairGenerator.h>

Inheritance diagram for HitPairGenerator:
OrderedHitsGenerator CombinedHitPairGenerator CombinedHitQuadrupletGeneratorForPhotonConversion CosmicHitPairGenerator CosmicHitPairGeneratorFromLayerPair HitPairGeneratorFromLayerPair HitQuadrupletGeneratorFromLayerPairForPhotonConversion

Public Member Functions

virtual void clear () final
 
virtual HitPairGeneratorclone () const =0
 
virtual HitDoublets doublets (const TrackingRegion &reg, const edm::Event &ev, const edm::EventSetup &es)
 
 HitPairGenerator (unsigned int size=4000)
 
 HitPairGenerator (HitPairGenerator const &other)
 
virtual void hitPairs (const TrackingRegion &reg, OrderedHitPairs &prs, const edm::EventSetup &es)
 
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 void setSeedingLayers (SeedingLayerSetsHits::SeedingLayerSet layers)=0
 
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.

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 HitPairGenerator* HitPairGenerator::clone ( ) const
pure virtual
virtual HitDoublets HitPairGenerator::doublets ( const TrackingRegion reg,
const edm::Event ev,
const edm::EventSetup es 
)
inlinevirtual

Reimplemented in HitPairGeneratorFromLayerPair.

Definition at line 38 of file HitPairGenerator.h.

Referenced by PixelTripletLargeTipGenerator::hitTriplets(), and PixelTripletHLTGenerator::hitTriplets().

39  {
40  assert(0=="not implemented");
41  }
virtual void HitPairGenerator::hitPairs ( const TrackingRegion reg,
OrderedHitPairs prs,
const edm::EventSetup es 
)
inlinevirtual
virtual void HitPairGenerator::hitPairs ( const TrackingRegion reg,
OrderedHitPairs prs,
const edm::Event ev,
const edm::EventSetup es 
)
pure virtual
const OrderedHitPairs & HitPairGenerator::run ( const TrackingRegion region,
const edm::Event ev,
const edm::EventSetup es 
)
virtual

Implements OrderedHitsGenerator.

Reimplemented in CombinedHitQuadrupletGeneratorForPhotonConversion.

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
int upper() const
virtual void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::EventSetup &es)
OrderedHitPairs thePairs
virtual void HitPairGenerator::setSeedingLayers ( SeedingLayerSetsHits::SeedingLayerSet  layers)
pure virtual

Member Data Documentation

edm::RunningAverage HitPairGenerator::localRA
private

Definition at line 53 of file HitPairGenerator.h.

Referenced by clear(), and run().

OrderedHitPairs HitPairGenerator::thePairs
private

Definition at line 52 of file HitPairGenerator.h.

Referenced by clear(), and run().