CMS 3D CMS Logo

CosmicHitTripletGenerator.cc
Go to the documentation of this file.
4 
5 #include <vector>
6 
7 using namespace std;
8 
10  // vector<LayerTriplets::LayerTriplet> layerTriplets = layers();
11  vector<CosmicLayerTriplets::LayerPairAndLayers> layerTriplets = layers.layers();
12  vector<CosmicLayerTriplets::LayerPairAndLayers>::const_iterator it;
13  for (it = layerTriplets.begin(); it != layerTriplets.end(); it++) {
14  vector<const LayerWithHits*>::const_iterator ilwh;
15  for (ilwh = (*it).second.begin(); ilwh != (*it).second.end(); ilwh++) {
16  // const LayerWithHits* first=(*it).first.first;
17  // const LayerWithHits* second=(*it).first.second;
18  // const LayerWithHits* third=(*ilwh);
19  // add( (*it).first.first, (*it).first.second, (*it).second,iSetup);
20  add((*it).first.first, (*it).first.second, (*ilwh), trackGeom);
21  }
22  }
23 }
24 
26 
28  const LayerWithHits* middle,
29  const LayerWithHits* outer,
30  const TrackerGeometry& trackGeom) {
31  theGenerators.push_back(std::make_unique<CosmicHitTripletGeneratorFromLayerTriplet>(inner, middle, outer, trackGeom));
32 }
33 
35  Container::const_iterator i;
36  for (i = theGenerators.begin(); i != theGenerators.end(); i++) {
37  (**i).hitTriplets(region, pairs);
38  }
39 }
void hitTriplets(const TrackingRegion &reg, OrderedHitTriplets &prs)
void add(const LayerWithHits *inner, const LayerWithHits *middle, const LayerWithHits *outer, const TrackerGeometry &trackGeom)
add generators based on layers
CosmicHitTripletGenerator(CosmicLayerTriplets &layers, const TrackerGeometry &trackGeom)
void add(std::map< std::string, TH1 *> &h, TH1 *hist)