CMS 3D CMS Logo

CosmicHitTripletGenerator.cc
Go to the documentation of this file.
4 
5 #include <vector>
6 
7 using namespace std;
8 
10  const edm::EventSetup& iSetup)
11 {
12  // vector<LayerTriplets::LayerTriplet> layerTriplets = layers();
13  vector<CosmicLayerTriplets::LayerPairAndLayers> layerTriplets = layers.layers();
14  vector<CosmicLayerTriplets::LayerPairAndLayers>::const_iterator it;
15  for (it = layerTriplets.begin(); it != layerTriplets.end(); it++) {
16  vector<const LayerWithHits*>::const_iterator ilwh;
17  for(ilwh=(*it).second.begin();ilwh!=(*it).second.end();ilwh++){
18  // const LayerWithHits* first=(*it).first.first;
19 // const LayerWithHits* second=(*it).first.second;
20 // const LayerWithHits* third=(*ilwh);
21  // add( (*it).first.first, (*it).first.second, (*it).second,iSetup);
22  add( (*it).first.first, (*it).first.second, (*ilwh),iSetup);
23  }
24  }
25 
26 }
27 
28 
29 
31 {
32 }
33 
34 
36  const LayerWithHits *inner,
37  const LayerWithHits* middle,
38  const LayerWithHits *outer,
39  const edm::EventSetup& iSetup)
40 {
41  theGenerators.push_back(std::make_unique<CosmicHitTripletGeneratorFromLayerTriplet>( inner,middle, outer, iSetup));
42 }
43 
45  const TrackingRegion& region,
46  OrderedHitTriplets & pairs,
47  const edm::EventSetup& iSetup)
48 {
49 
50  Container::const_iterator i;
51  for (i=theGenerators.begin(); i!=theGenerators.end(); i++) {
52  (**i).hitTriplets( region, pairs, iSetup);
53  }
54 
55 }
56 
57 
CosmicHitTripletGenerator(CosmicLayerTriplets &layers, const edm::EventSetup &iSetup)
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)
void hitTriplets(const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::EventSetup &iSetup)
std::vector< LayerPairAndLayers > layers()
void add(const LayerWithHits *inner, const LayerWithHits *middle, const LayerWithHits *outer, const edm::EventSetup &iSetup)
add generators based on layers