#include <CosmicHitPairGenerator.h>
Public Member Functions | |
void | add (const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup) |
add generators based on layers | |
virtual CosmicHitPairGenerator * | clone () const |
from base class | |
CosmicHitPairGenerator (SeedLayerPairs &layers, const edm::EventSetup &iSetup) | |
CosmicHitPairGenerator (SeedLayerPairs &layers) | |
virtual void | hitPairs (const TrackingRegion ®, OrderedHitPairs &prs, const edm::EventSetup &iSetup) |
form base class | |
virtual void | hitPairs (const TrackingRegion ®, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &iSetup) |
~CosmicHitPairGenerator () | |
Private Types | |
typedef std::vector < CosmicHitPairGeneratorFromLayerPair * > | Container |
Private Attributes | |
Container | theGenerators |
Hides set of HitPairGeneratorFromLayerPair generators.
Definition at line 20 of file CosmicHitPairGenerator.h.
typedef std::vector<CosmicHitPairGeneratorFromLayerPair *> CosmicHitPairGenerator::Container [private] |
Definition at line 22 of file CosmicHitPairGenerator.h.
CosmicHitPairGenerator::CosmicHitPairGenerator | ( | SeedLayerPairs & | layers, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 10 of file CosmicHitPairGenerator.cc.
References Clusterizer1DCommons::add().
Referenced by clone().
{ vector<SeedLayerPairs::LayerPair> layerPairs = layers(); vector<SeedLayerPairs::LayerPair>::const_iterator it; for (it = layerPairs.begin(); it != layerPairs.end(); it++) { add( (*it).first, (*it).second,iSetup); } }
CosmicHitPairGenerator::CosmicHitPairGenerator | ( | SeedLayerPairs & | layers | ) |
CosmicHitPairGenerator::~CosmicHitPairGenerator | ( | ) |
Definition at line 24 of file CosmicHitPairGenerator.cc.
{ Container::const_iterator it; for (it = theGenerators.begin(); it!= theGenerators.end(); it++) { delete (*it); } }
void CosmicHitPairGenerator::add | ( | const LayerWithHits * | inner, |
const LayerWithHits * | outer, | ||
const edm::EventSetup & | iSetup | ||
) |
add generators based on layers
Definition at line 33 of file CosmicHitPairGenerator.cc.
{ theGenerators.push_back( new CosmicHitPairGeneratorFromLayerPair( inner, outer, iSetup)); }
virtual CosmicHitPairGenerator* CosmicHitPairGenerator::clone | ( | void | ) | const [inline, virtual] |
from base class
Implements HitPairGenerator.
Definition at line 46 of file CosmicHitPairGenerator.h.
References CosmicHitPairGenerator().
{ return new CosmicHitPairGenerator(*this); }
virtual void CosmicHitPairGenerator::hitPairs | ( | const TrackingRegion & | reg, |
OrderedHitPairs & | prs, | ||
const edm::Event & | ev, | ||
const edm::EventSetup & | iSetup | ||
) | [inline, virtual] |
void CosmicHitPairGenerator::hitPairs | ( | const TrackingRegion & | reg, |
OrderedHitPairs & | prs, | ||
const edm::EventSetup & | iSetup | ||
) | [virtual] |
form base class
Reimplemented from HitPairGenerator.
Definition at line 41 of file CosmicHitPairGenerator.cc.
References i.
Referenced by SeedGeneratorForCosmics::init(), and SeedGeneratorForCRack::init().
{ Container::const_iterator i; for (i=theGenerators.begin(); i!=theGenerators.end(); i++) { (**i).hitPairs( region, pairs, iSetup); } }
Definition at line 52 of file CosmicHitPairGenerator.h.