#include <HitPairGenerator.h>
Public Member Functions | |
virtual void | clear () |
virtual HitPairGenerator * | clone () const =0 |
HitPairGenerator (unsigned int size=7500) | |
virtual void | hitPairs (const TrackingRegion ®, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)=0 |
virtual void | hitPairs (const TrackingRegion ®, OrderedHitPairs &prs, const edm::EventSetup &es) |
virtual const OrderedHitPairs & | run (const TrackingRegion ®ion, const edm::Event &ev, const edm::EventSetup &es) |
virtual | ~HitPairGenerator () |
Private Attributes | |
unsigned int | m_capacity |
OrderedHitPairs | thePairs |
Definition at line 17 of file HitPairGenerator.h.
HitPairGenerator::HitPairGenerator | ( | unsigned int | size = 7500 | ) | [explicit] |
Definition at line 3 of file HitPairGenerator.cc.
References thePairs.
: m_capacity(nSize) { thePairs.reserve(nSize); }
virtual HitPairGenerator::~HitPairGenerator | ( | ) | [inline, virtual] |
Definition at line 22 of file HitPairGenerator.h.
{ }
virtual void HitPairGenerator::clear | ( | void | ) | [inline, virtual] |
Reimplemented from OrderedHitsGenerator.
Definition at line 36 of file HitPairGenerator.h.
References m_capacity, thePairs, and tmp.
{ // back to initial allocation if too large if (thePairs.capacity()> 4*m_capacity) { OrderedHitPairs tmp; tmp.reserve(m_capacity); tmp.swap(thePairs); } thePairs.clear(); }
virtual HitPairGenerator* HitPairGenerator::clone | ( | ) | const [pure virtual] |
Implemented in CombinedHitPairGeneratorForPhotonConversion, CombinedHitQuadrupletGeneratorForPhotonConversion, HitPairGeneratorFromLayerPairForPhotonConversion, HitQuadrupletGeneratorFromLayerPairForPhotonConversion, CombinedHitPairGenerator, CosmicHitPairGenerator, CosmicHitPairGeneratorFromLayerPair, and HitPairGeneratorFromLayerPair.
Referenced by PixelTripletHLTGenerator::init(), PixelTripletLargeTipGenerator::init(), and PixelTripletNoTipGenerator::init().
virtual void HitPairGenerator::hitPairs | ( | const TrackingRegion & | reg, |
OrderedHitPairs & | prs, | ||
const edm::EventSetup & | es | ||
) | [inline, virtual] |
Reimplemented in CosmicHitPairGenerator, and CosmicHitPairGeneratorFromLayerPair.
Definition at line 28 of file HitPairGenerator.h.
Referenced by PixelTripletNoTipGenerator::hitTriplets(), PixelTripletHLTGenerator::hitTriplets(), PixelTripletLargeTipGenerator::hitTriplets(), and run().
{}
virtual void HitPairGenerator::hitPairs | ( | const TrackingRegion & | reg, |
OrderedHitPairs & | prs, | ||
const edm::Event & | ev, | ||
const edm::EventSetup & | es | ||
) | [pure virtual] |
Implemented in CombinedHitPairGeneratorForPhotonConversion, CombinedHitQuadrupletGeneratorForPhotonConversion, HitPairGeneratorFromLayerPairForPhotonConversion, HitQuadrupletGeneratorFromLayerPairForPhotonConversion, CombinedHitPairGenerator, CosmicHitPairGenerator, CosmicHitPairGeneratorFromLayerPair, and HitPairGeneratorFromLayerPair.
const OrderedHitPairs & HitPairGenerator::run | ( | const TrackingRegion & | region, |
const edm::Event & | ev, | ||
const edm::EventSetup & | es | ||
) | [virtual] |
Implements OrderedHitsGenerator.
Reimplemented in CombinedHitQuadrupletGeneratorForPhotonConversion.
Definition at line 8 of file HitPairGenerator.cc.
References hitPairs(), and thePairs.
unsigned int HitPairGenerator::m_capacity [private] |
Definition at line 46 of file HitPairGenerator.h.
Referenced by clear().
OrderedHitPairs HitPairGenerator::thePairs [private] |
Reimplemented in CombinedHitPairGeneratorForPhotonConversion, and CombinedHitQuadrupletGeneratorForPhotonConversion.
Definition at line 45 of file HitPairGenerator.h.
Referenced by clear(), HitPairGenerator(), and run().