CMS 3D CMS Logo

Public Member Functions | Private Types | Private Attributes

CosmicHitPairGenerator Class Reference

#include <CosmicHitPairGenerator.h>

Inheritance diagram for CosmicHitPairGenerator:
HitPairGenerator OrderedHitsGenerator

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 CosmicHitPairGeneratorclone () const
 from base class
 CosmicHitPairGenerator (SeedLayerPairs &layers, const edm::EventSetup &iSetup)
 CosmicHitPairGenerator (SeedLayerPairs &layers)
virtual void hitPairs (const TrackingRegion &reg, OrderedHitPairs &prs, const edm::EventSetup &iSetup)
 form base class
virtual void hitPairs (const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &iSetup)
 ~CosmicHitPairGenerator ()

Private Types

typedef std::vector
< CosmicHitPairGeneratorFromLayerPair * > 
Container

Private Attributes

Container theGenerators

Detailed Description

Hides set of HitPairGeneratorFromLayerPair generators.

Definition at line 20 of file CosmicHitPairGenerator.h.


Member Typedef Documentation

Definition at line 22 of file CosmicHitPairGenerator.h.


Constructor & Destructor Documentation

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);
  }
}

Member Function Documentation

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]

Implements HitPairGenerator.

Definition at line 40 of file CosmicHitPairGenerator.h.

                                                      {}
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); 
  }
 
}

Member Data Documentation

Definition at line 52 of file CosmicHitPairGenerator.h.