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 TrackerGeometry &trackGeom)
 add generators based on layers More...
 
 CosmicHitPairGenerator (SeedLayerPairs &layers, const TrackerGeometry &)
 
 CosmicHitPairGenerator (SeedLayerPairs &layers)
 
void hitPairs (const TrackingRegion &reg, OrderedHitPairs &pr)
 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 TrackerGeometry trackGeom 
)

Definition at line 9 of file CosmicHitPairGenerator.cc.

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

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, trackGeom);
14  }
15 }
void add(const LayerWithHits *inner, const LayerWithHits *outer, const TrackerGeometry &trackGeom)
add generators based on 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 TrackerGeometry trackGeom 
)

add generators based on layers

Definition at line 19 of file CosmicHitPairGenerator.cc.

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

Referenced by counter.Counter::register().

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

◆ hitPairs()

void CosmicHitPairGenerator::hitPairs ( const TrackingRegion reg,
OrderedHitPairs pr 
)

form base class

Definition at line 25 of file CosmicHitPairGenerator.cc.

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

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

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

Member Data Documentation

◆ theGenerators

Container CosmicHitPairGenerator::theGenerators
private

Definition at line 33 of file CosmicHitPairGenerator.h.