CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Attributes
CosmicHitTripletGenerator Class Reference

#include <CosmicHitTripletGenerator.h>

Public Member Functions

void add (const LayerWithHits *inner, const LayerWithHits *middle, const LayerWithHits *outer, const edm::EventSetup &iSetup)
 add generators based on layers More...
 
 CosmicHitTripletGenerator (CosmicLayerTriplets &layers, const edm::EventSetup &iSetup)
 
 CosmicHitTripletGenerator (CosmicLayerTriplets &layers)
 
void hitTriplets (const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::EventSetup &iSetup)
 
 ~CosmicHitTripletGenerator ()
 

Private Types

typedef std::vector< std::unique_ptr< CosmicHitTripletGeneratorFromLayerTriplet > > Container
 

Private Attributes

Container theGenerators
 

Detailed Description

Hides set of HitTripletGeneratorFromLayerTriplet generators.

Definition at line 20 of file CosmicHitTripletGenerator.h.

Member Typedef Documentation

Definition at line 22 of file CosmicHitTripletGenerator.h.

Constructor & Destructor Documentation

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

Definition at line 9 of file CosmicHitTripletGenerator.cc.

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

11 {
12  // vector<LayerTriplets::LayerTriplet> layerTriplets = layers();
13  vector<CosmicLayerTriplets::LayerPairAndLayers> layerTriplets = layers.layers();
14  vector<CosmicLayerTriplets::LayerPairAndLayers>::const_iterator it;
15  for (it = layerTriplets.begin(); it != layerTriplets.end(); it++) {
16  vector<const LayerWithHits*>::const_iterator ilwh;
17  for(ilwh=(*it).second.begin();ilwh!=(*it).second.end();ilwh++){
18  // const LayerWithHits* first=(*it).first.first;
19 // const LayerWithHits* second=(*it).first.second;
20 // const LayerWithHits* third=(*ilwh);
21  // add( (*it).first.first, (*it).first.second, (*it).second,iSetup);
22  add( (*it).first.first, (*it).first.second, (*ilwh),iSetup);
23  }
24  }
25 
26 }
std::vector< LayerPairAndLayers > layers()
void add(const LayerWithHits *inner, const LayerWithHits *middle, const LayerWithHits *outer, const edm::EventSetup &iSetup)
add generators based on layers
CosmicHitTripletGenerator::CosmicHitTripletGenerator ( CosmicLayerTriplets layers)
CosmicHitTripletGenerator::~CosmicHitTripletGenerator ( )

Definition at line 30 of file CosmicHitTripletGenerator.cc.

31 {
32 }

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 35 of file CosmicHitTripletGenerator.cc.

Referenced by counter.Counter::register().

40 {
41  theGenerators.push_back(std::make_unique<CosmicHitTripletGeneratorFromLayerTriplet>( inner,middle, outer, iSetup));
42 }
void CosmicHitTripletGenerator::hitTriplets ( const TrackingRegion reg,
OrderedHitTriplets prs,
const edm::EventSetup iSetup 
)

Definition at line 44 of file CosmicHitTripletGenerator.cc.

References mps_fire::i.

Referenced by SeedGeneratorForCosmics::init().

48 {
49 
50  Container::const_iterator i;
51  for (i=theGenerators.begin(); i!=theGenerators.end(); i++) {
52  (**i).hitTriplets( region, pairs, iSetup);
53  }
54 
55 }

Member Data Documentation

Container CosmicHitTripletGenerator::theGenerators
private

Definition at line 45 of file CosmicHitTripletGenerator.h.