CMS 3D CMS Logo

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

#include <CosmicHitPairGenerator.h>

Public Member Functions

void add (const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)
 add generators based on layers More...
 
 CosmicHitPairGenerator (SeedLayerPairs &layers, const edm::EventSetup &iSetup)
 
 CosmicHitPairGenerator (SeedLayerPairs &layers)
 
void hitPairs (const TrackingRegion &reg, OrderedHitPairs &prs, const edm::EventSetup &iSetup)
 form base class More...
 
 ~CosmicHitPairGenerator ()
 

Private Types

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

Private Attributes

Container theGenerators
 

Detailed Description

Hides set of HitPairGeneratorFromLayerPair generators.

Definition at line 18 of file CosmicHitPairGenerator.h.

Member Typedef Documentation

typedef std::vector<std::unique_ptr<CosmicHitPairGeneratorFromLayerPair> > CosmicHitPairGenerator::Container
private

Definition at line 20 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(), DetachedQuadStep_cff::layerPairs, and LayerTriplets::layers().

12 {
13 
14  vector<SeedLayerPairs::LayerPair> layerPairs = layers();
15  vector<SeedLayerPairs::LayerPair>::const_iterator it;
16  for (it = layerPairs.begin(); it != layerPairs.end(); it++) {
17  add( (*it).first, (*it).second,iSetup);
18  }
19 
20 }
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
void add(const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)
add generators based on layers
CosmicHitPairGenerator::CosmicHitPairGenerator ( SeedLayerPairs layers)
CosmicHitPairGenerator::~CosmicHitPairGenerator ( )

Definition at line 24 of file CosmicHitPairGenerator.cc.

25 {
26 }

Member Function Documentation

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

add generators based on layers

Definition at line 29 of file CosmicHitPairGenerator.cc.

Referenced by counter.Counter::register().

32 {
33  theGenerators.push_back(std::make_unique<CosmicHitPairGeneratorFromLayerPair>( inner, outer, iSetup));
34 }
void CosmicHitPairGenerator::hitPairs ( const TrackingRegion reg,
OrderedHitPairs prs,
const edm::EventSetup iSetup 
)

form base class

Definition at line 36 of file CosmicHitPairGenerator.cc.

References mps_fire::i.

Referenced by SeedGeneratorForCRack::init(), and SeedGeneratorForCosmics::init().

40 {
41 
42  Container::const_iterator i;
43  for (i=theGenerators.begin(); i!=theGenerators.end(); i++) {
44  (**i).hitPairs( region, pairs, iSetup);
45  }
46 
47 }

Member Data Documentation

Container CosmicHitPairGenerator::theGenerators
private

Definition at line 41 of file CosmicHitPairGenerator.h.