CMS 3D CMS Logo

LaserHitPairGenerator Class Reference

generate hit pairs from hits on consecutive discs in the endcaps used by the LaserSeedGenerator More...

#include <Alignment/LaserAlignment/interface/LaserHitPairGenerator.h>

List of all members.

Public Member Functions

void add (const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)
 add generators based on layers
virtual LaserHitPairGeneratorclone () const
virtual void hitPairs (const TrackingRegion &reg, OrderedLaserHitPairs &prs, const edm::Event &ev, const edm::EventSetup &iSetup)
virtual void hitPairs (const TrackingRegion &reg, OrderedLaserHitPairs &prs, const edm::EventSetup &iSetup)
 LaserHitPairGenerator (SeedLayerPairs &layers)
 default constructor
 LaserHitPairGenerator (SeedLayerPairs &layers, const edm::EventSetup &iSetup)
 constructor
 LaserHitPairGenerator (unsigned int size=30000)
 constructor
virtual const
OrderedLaserHitPairs
run (const TrackingRegion &region, const edm::Event &iEvent, const edm::EventSetup &iSetup)
virtual ~LaserHitPairGenerator ()
 destructor

Private Types

typedef std::vector
< LaserHitPairGeneratorFromLayerPair * > 
Container
typedef LayerHitMapCache LayerCacheType

Private Attributes

Container theGenerators
LayerCacheType theLayerCache
OrderedLaserHitPairs thePairs


Detailed Description

generate hit pairs from hits on consecutive discs in the endcaps used by the LaserSeedGenerator

Date
2007/12/04 23:51:42
Revision
1.6
Author:
Maarten Thomas

Definition at line 27 of file LaserHitPairGenerator.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

LaserHitPairGenerator::LaserHitPairGenerator ( unsigned int  size = 30000  )  [inline]

constructor

Definition at line 34 of file LaserHitPairGenerator.h.

References size, and thePairs.

Referenced by clone().

00034 {thePairs.reserve(size); }

LaserHitPairGenerator::LaserHitPairGenerator ( SeedLayerPairs layers,
const edm::EventSetup iSetup 
)

constructor

Definition at line 14 of file LaserHitPairGenerator.cc.

References it, and layers.

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 }


Member Function Documentation

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]

Definition at line 48 of file LaserHitPairGenerator.h.

00048 {}

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 }


Member Data Documentation

Container LaserHitPairGenerator::theGenerators [private]

Definition at line 57 of file LaserHitPairGenerator.h.

Referenced by add(), hitPairs(), and ~LaserHitPairGenerator().

LayerCacheType LaserHitPairGenerator::theLayerCache [private]

Definition at line 56 of file LaserHitPairGenerator.h.

Referenced by hitPairs().

OrderedLaserHitPairs LaserHitPairGenerator::thePairs [private]

Definition at line 55 of file LaserHitPairGenerator.h.

Referenced by LaserHitPairGenerator(), and run().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:27:22 2009 for CMSSW by  doxygen 1.5.4