CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 18 of file CosmicHitPairGenerator.h.

Constructor & Destructor Documentation

CosmicHitPairGenerator::CosmicHitPairGenerator ( SeedLayerPairs layers,
const TrackerGeometry trackGeom 
)

Definition at line 9 of file CosmicHitPairGenerator.cc.

References PVValHelper::add(), HLT_FULL_cff::layerPairs, and LayerTriplets::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
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
CosmicHitPairGenerator::CosmicHitPairGenerator ( SeedLayerPairs layers)
CosmicHitPairGenerator::~CosmicHitPairGenerator ( )

Definition at line 17 of file CosmicHitPairGenerator.cc.

17 {}

Member Function Documentation

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.

Referenced by counter.Counter::register().

21  {
22  theGenerators.push_back(std::make_unique<CosmicHitPairGeneratorFromLayerPair>(inner, outer, trackGeom));
23 }
void CosmicHitPairGenerator::hitPairs ( const TrackingRegion reg,
OrderedHitPairs pr 
)

form base class

Definition at line 25 of file CosmicHitPairGenerator.cc.

References mps_fire::i.

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

Container CosmicHitPairGenerator::theGenerators
private

Definition at line 33 of file CosmicHitPairGenerator.h.