CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CosmicHitPairGenerator.cc
Go to the documentation of this file.
1 //#include "RecoTracker/TkHitPairs/interface/LayerWithHits.h"
6 
7 using namespace std;
8 
9 
11  const edm::EventSetup& iSetup)
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 }
21 
22 
23 
25 {
26  Container::const_iterator it;
27  for (it = theGenerators.begin(); it!= theGenerators.end(); it++) {
28  delete (*it);
29  }
30 }
31 
32 
34  const LayerWithHits *inner, const LayerWithHits *outer,
35  const edm::EventSetup& iSetup)
36 {
37  theGenerators.push_back(
38  new CosmicHitPairGeneratorFromLayerPair( inner, outer, iSetup));
39 }
40 
42  const TrackingRegion& region,
43  OrderedHitPairs & pairs,
44  const edm::EventSetup& iSetup)
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 }
53 
54 
int i
Definition: DBlmapReader.cc:9
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
void add(const std::vector< const T * > &source, std::vector< const T * > &dest)
virtual void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::EventSetup &iSetup)
form base class
void add(const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)
add generators based on layers
CosmicHitPairGenerator(SeedLayerPairs &layers, const edm::EventSetup &iSetup)