CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Attributes
CosmicHitTripletGenerator Class Reference

#include <CosmicHitTripletGenerator.h>

Inheritance diagram for CosmicHitTripletGenerator:
HitTripletGenerator OrderedHitsGenerator

Public Member Functions

void add (const LayerWithHits *inner, const LayerWithHits *middle, const LayerWithHits *outer, const edm::EventSetup &iSetup)
 add generators based on layers More...
 
virtual CosmicHitTripletGeneratorclone () const
 from base class More...
 
 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 More...
 
virtual void hitTriplets (const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::Event &ev, const edm::EventSetup &iSetup)
 
 ~CosmicHitTripletGenerator ()
 
- Public Member Functions inherited from HitTripletGenerator
virtual void clear () final
 
 HitTripletGenerator (unsigned int size=500)
 
 HitTripletGenerator (HitTripletGenerator const &other)
 
virtual const OrderedHitTripletsrun (const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es) final
 
virtual ~HitTripletGenerator ()
 
- Public Member Functions inherited from OrderedHitsGenerator
 OrderedHitsGenerator ()
 
virtual ~OrderedHitsGenerator ()
 

Private Types

typedef std::vector
< CosmicHitTripletGeneratorFromLayerTriplet * > 
Container
 

Private Attributes

Container theGenerators
 

Additional Inherited Members

- Public Attributes inherited from OrderedHitsGenerator
unsigned int theMaxElement
 

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().

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  Container::const_iterator it;
33  for (it = theGenerators.begin(); it!= theGenerators.end(); it++) {
34  delete (*it);
35  }
36 }

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.

virtual CosmicHitTripletGenerator* CosmicHitTripletGenerator::clone ( void  ) const
inlinevirtual

from base class

Definition at line 49 of file CosmicHitTripletGenerator.h.

References CosmicHitTripletGenerator().

50  { return new CosmicHitTripletGenerator(*this); }
CosmicHitTripletGenerator(CosmicLayerTriplets &layers, const edm::EventSetup &iSetup)
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().

53 {
54 
55  Container::const_iterator i;
56  for (i=theGenerators.begin(); i!=theGenerators.end(); i++) {
57  (**i).hitTriplets( region, pairs, iSetup);
58  }
59 
60 }
int i
Definition: DBlmapReader.cc:9
list pairs
sort tag files by run number
virtual void CosmicHitTripletGenerator::hitTriplets ( const TrackingRegion reg,
OrderedHitTriplets prs,
const edm::Event ev,
const edm::EventSetup iSetup 
)
inlinevirtual

Implements HitTripletGenerator.

Definition at line 43 of file CosmicHitTripletGenerator.h.

46  { }

Member Data Documentation

Container CosmicHitTripletGenerator::theGenerators
private

Definition at line 55 of file CosmicHitTripletGenerator.h.