#include <HitPairGenerator.h>
Public Member Functions | |
virtual void | clear () |
virtual HitPairGenerator * | clone () const =0 |
virtual HitDoublets | doublets (const TrackingRegion ®, const edm::Event &ev, const edm::EventSetup &es) |
HitPairGenerator (unsigned int size=7500) | |
virtual void | hitPairs (const TrackingRegion ®, OrderedHitPairs &prs, const edm::EventSetup &es) |
virtual void | hitPairs (const TrackingRegion ®, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &es)=0 |
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 18 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 23 of file HitPairGenerator.h.
{ }
virtual void HitPairGenerator::clear | ( | void | ) | [inline, virtual] |
Reimplemented from OrderedHitsGenerator.
Definition at line 44 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 HitDoublets HitPairGenerator::doublets | ( | const TrackingRegion & | reg, |
const edm::Event & | ev, | ||
const edm::EventSetup & | es | ||
) | [inline, virtual] |
Reimplemented in HitPairGeneratorFromLayerPair.
Definition at line 33 of file HitPairGenerator.h.
Referenced by PixelTripletHLTGenerator::hitTriplets(), and PixelTripletLargeTipGenerator::hitTriplets().
{
assert(0=="not implemented");
}
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.
virtual void HitPairGenerator::hitPairs | ( | const TrackingRegion & | reg, |
OrderedHitPairs & | prs, | ||
const edm::EventSetup & | es | ||
) | [inline, virtual] |
Reimplemented in CosmicHitPairGenerator, and CosmicHitPairGeneratorFromLayerPair.
Definition at line 29 of file HitPairGenerator.h.
Referenced by PixelTripletNoTipGenerator::hitTriplets(), and run().
{}
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 54 of file HitPairGenerator.h.
Referenced by clear().
OrderedHitPairs HitPairGenerator::thePairs [private] |
Reimplemented in CombinedHitPairGeneratorForPhotonConversion, and CombinedHitQuadrupletGeneratorForPhotonConversion.
Definition at line 53 of file HitPairGenerator.h.
Referenced by clear(), HitPairGenerator(), and run().