#include <Alignment/LaserAlignment/interface/LaserHitPairGenerator.h>
Definition at line 27 of file LaserHitPairGenerator.h.
typedef std::vector<LaserHitPairGeneratorFromLayerPair *> LaserHitPairGenerator::Container [private] |
Definition at line 29 of file LaserHitPairGenerator.h.
typedef LayerHitMapCache LaserHitPairGenerator::LayerCacheType [private] |
Definition at line 30 of file LaserHitPairGenerator.h.
LaserHitPairGenerator::LaserHitPairGenerator | ( | unsigned int | size = 30000 |
) | [inline] |
LaserHitPairGenerator::LaserHitPairGenerator | ( | SeedLayerPairs & | layers, | |
const edm::EventSetup & | iSetup | |||
) |
constructor
Definition at line 14 of file LaserHitPairGenerator.cc.
00015 { 00016 std::vector<SeedLayerPairs::LayerPair> layerPairs = layers(); 00017 00018 for (std::vector<SeedLayerPairs::LayerPair>::const_iterator it = layerPairs.begin(); it != layerPairs.end(); it++) 00019 { 00020 add((*it).first, (*it).second, iSetup); 00021 } 00022 }
LaserHitPairGenerator::LaserHitPairGenerator | ( | SeedLayerPairs & | layers | ) |
default constructor
LaserHitPairGenerator::~LaserHitPairGenerator | ( | ) | [virtual] |
destructor
Definition at line 24 of file LaserHitPairGenerator.cc.
References it, and theGenerators.
00025 { 00026 for (Container::const_iterator it = theGenerators.begin(); it != theGenerators.end(); it++) 00027 { 00028 delete (*it); 00029 } 00030 }
void LaserHitPairGenerator::add | ( | const LayerWithHits * | inner, | |
const LayerWithHits * | outer, | |||
const edm::EventSetup & | iSetup | |||
) |
add generators based on layers
Definition at line 32 of file LaserHitPairGenerator.cc.
References theGenerators.
00033 { 00034 theGenerators.push_back(new LaserHitPairGeneratorFromLayerPair(inner, outer, iSetup)); 00035 }
virtual LaserHitPairGenerator* LaserHitPairGenerator::clone | ( | void | ) | const [inline, virtual] |
Definition at line 52 of file LaserHitPairGenerator.h.
References LaserHitPairGenerator().
00052 { return new LaserHitPairGenerator(*this); }
virtual void LaserHitPairGenerator::hitPairs | ( | const TrackingRegion & | reg, | |
OrderedLaserHitPairs & | prs, | |||
const edm::Event & | ev, | |||
const edm::EventSetup & | iSetup | |||
) | [inline, virtual] |
void LaserHitPairGenerator::hitPairs | ( | const TrackingRegion & | reg, | |
OrderedLaserHitPairs & | prs, | |||
const edm::EventSetup & | iSetup | |||
) | [virtual] |
Definition at line 37 of file LaserHitPairGenerator.cc.
References LayerHitMapCache::clear(), it, theGenerators, and theLayerCache.
Referenced by SeedGeneratorForLaserBeams::run(), and run().
00038 { 00039 for (Container::const_iterator it = theGenerators.begin(); it != theGenerators.end(); it++) 00040 { 00041 (**it).hitPairs(region, pairs, iSetup); 00042 } 00043 00044 theLayerCache.clear(); 00045 }
const OrderedLaserHitPairs & LaserHitPairGenerator::run | ( | const TrackingRegion & | region, | |
const edm::Event & | iEvent, | |||
const edm::EventSetup & | iSetup | |||
) | [virtual] |
Definition at line 47 of file LaserHitPairGenerator.cc.
References hitPairs(), and thePairs.
00048 { 00049 thePairs.clear(); 00050 hitPairs(region, thePairs, iEvent, iSetup); 00051 return thePairs; 00052 }
Definition at line 57 of file LaserHitPairGenerator.h.
Referenced by add(), hitPairs(), and ~LaserHitPairGenerator().
Definition at line 55 of file LaserHitPairGenerator.h.
Referenced by LaserHitPairGenerator(), and run().