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++) {
20 add((*it).first.first, (*it).first.second, (*ilwh), trackGeom);
31 theGenerators.push_back(std::make_unique<CosmicHitTripletGeneratorFromLayerTriplet>(
inner, middle,
outer, trackGeom));
35 Container::const_iterator
i;
36 for (
i = theGenerators.begin();
i != theGenerators.end();
i++) {
37 (**i).hitTriplets(
region, pairs);
void hitTriplets(const TrackingRegion ®, OrderedHitTriplets &prs)
void add(const LayerWithHits *inner, const LayerWithHits *middle, const LayerWithHits *outer, const TrackerGeometry &trackGeom)
add generators based on layers
~CosmicHitTripletGenerator()
CosmicHitTripletGenerator(CosmicLayerTriplets &layers, const TrackerGeometry &trackGeom)
void add(std::map< std::string, TH1 *> &h, TH1 *hist)