CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Attributes
CosmicHitPairGenerator Class Reference

#include <CosmicHitPairGenerator.h>

Inheritance diagram for CosmicHitPairGenerator:
HitPairGenerator OrderedHitsGenerator

Public Member Functions

void add (const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)
 add generators based on layers More...
 
virtual CosmicHitPairGeneratorclone () const
 from base class More...
 
 CosmicHitPairGenerator (SeedLayerPairs &layers, const edm::EventSetup &iSetup)
 
 CosmicHitPairGenerator (SeedLayerPairs &layers)
 
virtual void hitPairs (const TrackingRegion &reg, OrderedHitPairs &prs, const edm::EventSetup &iSetup)
 form base class More...
 
virtual void hitPairs (const TrackingRegion &reg, OrderedHitPairs &prs, const edm::Event &ev, const edm::EventSetup &iSetup)
 
void setSeedingLayers (SeedingLayerSetsHits::SeedingLayerSet layers) override
 
 ~CosmicHitPairGenerator ()
 
- Public Member Functions inherited from HitPairGenerator
virtual void clear ()
 
virtual HitDoublets doublets (const TrackingRegion &reg, const edm::Event &ev, const edm::EventSetup &es)
 
 HitPairGenerator (unsigned int size=7500)
 
virtual const OrderedHitPairsrun (const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es)
 
virtual ~HitPairGenerator ()
 
- Public Member Functions inherited from OrderedHitsGenerator
 OrderedHitsGenerator ()
 
virtual ~OrderedHitsGenerator ()
 

Private Types

typedef std::vector
< CosmicHitPairGeneratorFromLayerPair * > 
Container
 

Private Attributes

Container theGenerators
 

Additional Inherited Members

- Public Attributes inherited from OrderedHitsGenerator
unsigned int theMaxElement
 

Detailed Description

Hides set of HitPairGeneratorFromLayerPair generators.

Definition at line 20 of file CosmicHitPairGenerator.h.

Member Typedef Documentation

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

Referenced by clone().

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  Container::const_iterator it;
27  for (it = theGenerators.begin(); it!= theGenerators.end(); it++) {
28  delete (*it);
29  }
30 }

Member Function Documentation

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

add generators based on layers

Definition at line 33 of file CosmicHitPairGenerator.cc.

virtual CosmicHitPairGenerator* CosmicHitPairGenerator::clone ( void  ) const
inlinevirtual

from base class

Implements HitPairGenerator.

Definition at line 48 of file CosmicHitPairGenerator.h.

References CosmicHitPairGenerator().

49  { return new CosmicHitPairGenerator(*this); }
CosmicHitPairGenerator(SeedLayerPairs &layers, const edm::EventSetup &iSetup)
void CosmicHitPairGenerator::hitPairs ( const TrackingRegion reg,
OrderedHitPairs prs,
const edm::EventSetup iSetup 
)
virtual

form base class

Reimplemented from HitPairGenerator.

Definition at line 41 of file CosmicHitPairGenerator.cc.

References i.

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

45 {
46 
47  Container::const_iterator i;
48  for (i=theGenerators.begin(); i!=theGenerators.end(); i++) {
49  (**i).hitPairs( region, pairs, iSetup);
50  }
51 
52 }
int i
Definition: DBlmapReader.cc:9
list pairs
sort tag files by run number
virtual void CosmicHitPairGenerator::hitPairs ( const TrackingRegion reg,
OrderedHitPairs prs,
const edm::Event ev,
const edm::EventSetup iSetup 
)
inlinevirtual

Implements HitPairGenerator.

Definition at line 42 of file CosmicHitPairGenerator.h.

45  {}
void CosmicHitPairGenerator::setSeedingLayers ( SeedingLayerSetsHits::SeedingLayerSet  layers)
inlineoverridevirtual

Implements HitPairGenerator.

Definition at line 31 of file CosmicHitPairGenerator.h.

31 {}

Member Data Documentation

Container CosmicHitPairGenerator::theGenerators
private

Definition at line 54 of file CosmicHitPairGenerator.h.