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)
 
 CosmicHitTripletGenerator (CosmicLayerTriplets &layers, const edm::EventSetup &iSetup)
 
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 19 of file CosmicHitTripletGenerator.h.

Member Typedef Documentation

◆ Container

Definition at line 20 of file CosmicHitTripletGenerator.h.

Constructor & Destructor Documentation

◆ CosmicHitTripletGenerator() [1/2]

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

Definition at line 9 of file CosmicHitTripletGenerator.cc.

9  {
10  // vector<LayerTriplets::LayerTriplet> layerTriplets = layers();
11  vector<CosmicLayerTriplets::LayerPairAndLayers> layerTriplets = layers.layers();
12  vector<CosmicLayerTriplets::LayerPairAndLayers>::const_iterator it;
13  for (it = layerTriplets.begin(); it != layerTriplets.end(); it++) {
14  vector<const LayerWithHits*>::const_iterator ilwh;
15  for (ilwh = (*it).second.begin(); ilwh != (*it).second.end(); ilwh++) {
16  // const LayerWithHits* first=(*it).first.first;
17  // const LayerWithHits* second=(*it).first.second;
18  // const LayerWithHits* third=(*ilwh);
19  // add( (*it).first.first, (*it).first.second, (*it).second,iSetup);
20  add((*it).first.first, (*it).first.second, (*ilwh), iSetup);
21  }
22  }
23 }

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

◆ CosmicHitTripletGenerator() [2/2]

CosmicHitTripletGenerator::CosmicHitTripletGenerator ( CosmicLayerTriplets layers)

◆ ~CosmicHitTripletGenerator()

CosmicHitTripletGenerator::~CosmicHitTripletGenerator ( )

Definition at line 25 of file CosmicHitTripletGenerator.cc.

25 {}

Member Function Documentation

◆ add()

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

add generators based on layers

Definition at line 27 of file CosmicHitTripletGenerator.cc.

30  {
31  theGenerators.push_back(std::make_unique<CosmicHitTripletGeneratorFromLayerTriplet>(inner, middle, outer, iSetup));
32 }

References SurfaceOrientation::inner, and SurfaceOrientation::outer.

Referenced by counter.Counter::register().

◆ hitTriplets()

void CosmicHitTripletGenerator::hitTriplets ( const TrackingRegion reg,
OrderedHitTriplets prs,
const edm::EventSetup iSetup 
)

Definition at line 34 of file CosmicHitTripletGenerator.cc.

36  {
37  Container::const_iterator i;
38  for (i = theGenerators.begin(); i != theGenerators.end(); i++) {
39  (**i).hitTriplets(region, pairs, iSetup);
40  }
41 }

References mps_fire::i, and HLT_FULL_cff::region.

Referenced by SeedGeneratorForCosmics::init().

Member Data Documentation

◆ theGenerators

Container CosmicHitTripletGenerator::theGenerators
private

Definition at line 38 of file CosmicHitTripletGenerator.h.

mps_fire.i
i
Definition: mps_fire.py:428
SurfaceOrientation::inner
Definition: Surface.h:19
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88267
CosmicHitTripletGenerator::add
void add(const LayerWithHits *inner, const LayerWithHits *middle, const LayerWithHits *outer, const edm::EventSetup &iSetup)
add generators based on layers
Definition: CosmicHitTripletGenerator.cc:27
CosmicHitTripletGenerator::theGenerators
Container theGenerators
Definition: CosmicHitTripletGenerator.h:38
SurfaceOrientation::outer
Definition: Surface.h:19
hgcalTopologyTester_cfi.layers
layers
Definition: hgcalTopologyTester_cfi.py:8