CMS 3D CMS Logo

Public Member Functions | Private Types | Private Attributes

CosmicHitTripletGenerator Class Reference

#include <CosmicHitTripletGenerator.h>

Inheritance diagram for CosmicHitTripletGenerator:
HitTripletGenerator OrderedHitsGenerator

List of all members.

Public Member Functions

void add (const LayerWithHits *inner, const LayerWithHits *middle, const LayerWithHits *outer, const edm::EventSetup &iSetup)
 add generators based on layers
virtual CosmicHitTripletGeneratorclone () const
 from base class
 CosmicHitTripletGenerator (CosmicLayerTriplets &layers, const edm::EventSetup &iSetup)
 CosmicHitTripletGenerator (CosmicLayerTriplets &layers)
virtual void hitTriplets (const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::EventSetup &iSetup)
 form base class
virtual void hitTriplets (const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::Event &ev, const edm::EventSetup &iSetup)
 ~CosmicHitTripletGenerator ()

Private Types

typedef std::vector
< CosmicHitTripletGeneratorFromLayerTriplet * > 
Container

Private Attributes

Container theGenerators

Detailed Description

Hides set of HitTripletGeneratorFromLayerTriplet generators.

Definition at line 21 of file CosmicHitTripletGenerator.h.


Member Typedef Documentation

Definition at line 23 of file CosmicHitTripletGenerator.h.


Constructor & Destructor Documentation

CosmicHitTripletGenerator::CosmicHitTripletGenerator ( CosmicLayerTriplets layers,
const edm::EventSetup iSetup 
)

Definition at line 9 of file CosmicHitTripletGenerator.cc.

References Clusterizer1DCommons::add(), and CosmicLayerTriplets::layers().

Referenced by clone().

{
  //  vector<LayerTriplets::LayerTriplet> layerTriplets = layers();
  vector<CosmicLayerTriplets::LayerPairAndLayers> layerTriplets = layers.layers();
  vector<CosmicLayerTriplets::LayerPairAndLayers>::const_iterator it;
  for (it = layerTriplets.begin(); it != layerTriplets.end(); it++) {
    vector<const LayerWithHits*>::const_iterator ilwh;
    for(ilwh=(*it).second.begin();ilwh!=(*it).second.end();ilwh++){
 //      const LayerWithHits* first=(*it).first.first;
//       const LayerWithHits* second=(*it).first.second;
//       const LayerWithHits* third=(*ilwh);
      //      add( (*it).first.first, (*it).first.second, (*it).second,iSetup);
      add( (*it).first.first, (*it).first.second, (*ilwh),iSetup);
    }
  }

}
CosmicHitTripletGenerator::CosmicHitTripletGenerator ( CosmicLayerTriplets layers)
CosmicHitTripletGenerator::~CosmicHitTripletGenerator ( )

Definition at line 30 of file CosmicHitTripletGenerator.cc.

{
  Container::const_iterator it;
  for (it = theGenerators.begin(); it!= theGenerators.end(); it++) {
    delete (*it);
  }
}

Member Function Documentation

void CosmicHitTripletGenerator::add ( const LayerWithHits inner,
const LayerWithHits middle,
const LayerWithHits outer,
const edm::EventSetup iSetup 
)

add generators based on layers

Definition at line 39 of file CosmicHitTripletGenerator.cc.

{ 
  theGenerators.push_back( 
                          new CosmicHitTripletGeneratorFromLayerTriplet( inner,middle, outer, iSetup));
}
virtual CosmicHitTripletGenerator* CosmicHitTripletGenerator::clone ( void  ) const [inline, virtual]

from base class

Definition at line 49 of file CosmicHitTripletGenerator.h.

References CosmicHitTripletGenerator().

    { return new CosmicHitTripletGenerator(*this); }
virtual void CosmicHitTripletGenerator::hitTriplets ( const TrackingRegion reg,
OrderedHitTriplets prs,
const edm::Event ev,
const edm::EventSetup iSetup 
) [inline, virtual]

Implements HitTripletGenerator.

Definition at line 43 of file CosmicHitTripletGenerator.h.

                                                      { }
void CosmicHitTripletGenerator::hitTriplets ( const TrackingRegion reg,
OrderedHitTriplets prs,
const edm::EventSetup iSetup 
) [virtual]

form base class

Reimplemented from HitTripletGenerator.

Definition at line 49 of file CosmicHitTripletGenerator.cc.

References i.

Referenced by SeedGeneratorForCosmics::init().

{

  Container::const_iterator i;
  for (i=theGenerators.begin(); i!=theGenerators.end(); i++) {
    (**i).hitTriplets( region, pairs, iSetup); 
  }
 
}

Member Data Documentation

Definition at line 55 of file CosmicHitTripletGenerator.h.