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)
 
 CosmicHitPairGenerator (SeedLayerPairs &layers, const edm::EventSetup &iSetup)
 
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 17 of file CosmicHitPairGenerator.h.

Member Typedef Documentation

◆ Container

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

Definition at line 18 of file CosmicHitPairGenerator.h.

Constructor & Destructor Documentation

◆ CosmicHitPairGenerator() [1/2]

CosmicHitPairGenerator::CosmicHitPairGenerator ( SeedLayerPairs layers,
const edm::EventSetup iSetup 
)

Definition at line 9 of file CosmicHitPairGenerator.cc.

9  {
10  vector<SeedLayerPairs::LayerPair> layerPairs = layers();
11  vector<SeedLayerPairs::LayerPair>::const_iterator it;
12  for (it = layerPairs.begin(); it != layerPairs.end(); it++) {
13  add((*it).first, (*it).second, iSetup);
14  }
15 }

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

◆ CosmicHitPairGenerator() [2/2]

CosmicHitPairGenerator::CosmicHitPairGenerator ( SeedLayerPairs layers)

◆ ~CosmicHitPairGenerator()

CosmicHitPairGenerator::~CosmicHitPairGenerator ( )

Definition at line 17 of file CosmicHitPairGenerator.cc.

17 {}

Member Function Documentation

◆ add()

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

add generators based on layers

Definition at line 19 of file CosmicHitPairGenerator.cc.

21  {
22  theGenerators.push_back(std::make_unique<CosmicHitPairGeneratorFromLayerPair>(inner, outer, iSetup));
23 }

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

Referenced by counter.Counter::register().

◆ hitPairs()

void CosmicHitPairGenerator::hitPairs ( const TrackingRegion reg,
OrderedHitPairs prs,
const edm::EventSetup iSetup 
)

form base class

Definition at line 25 of file CosmicHitPairGenerator.cc.

27  {
28  Container::const_iterator i;
29  for (i = theGenerators.begin(); i != theGenerators.end(); i++) {
30  (**i).hitPairs(region, pairs, iSetup);
31  }
32 }

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

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

Member Data Documentation

◆ theGenerators

Container CosmicHitPairGenerator::theGenerators
private

Definition at line 33 of file CosmicHitPairGenerator.h.

mps_fire.i
i
Definition: mps_fire.py:355
CosmicHitPairGenerator::add
void add(const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)
add generators based on layers
Definition: CosmicHitPairGenerator.cc:19
TrajectorySeedProducer_cfi.layerPairs
layerPairs
Definition: TrajectorySeedProducer_cfi.py:23
SurfaceOrientation::inner
Definition: Surface.h:19
CosmicHitPairGenerator::theGenerators
Container theGenerators
Definition: CosmicHitPairGenerator.h:33
HLT_2018_cff.region
region
Definition: HLT_2018_cff.py:81479
SurfaceOrientation::outer
Definition: Surface.h:19
hgcalTopologyTester_cfi.layers
layers
Definition: hgcalTopologyTester_cfi.py:8