CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CosmicHitPairGenerator.cc
Go to the documentation of this file.
1 //#include "RecoTracker/TkHitPairs/interface/LayerWithHits.h"
6 
7 using namespace std;
8 
10  vector<SeedLayerPairs::LayerPair> layerPairs = layers();
11  vector<SeedLayerPairs::LayerPair>::const_iterator it;
12  for (it = layerPairs.begin(); it != layerPairs.end(); it++) {
13  add((*it).first, (*it).second, trackGeom);
14  }
15 }
16 
18 
20  const LayerWithHits* outer,
21  const TrackerGeometry& trackGeom) {
22  theGenerators.push_back(std::make_unique<CosmicHitPairGeneratorFromLayerPair>(inner, outer, trackGeom));
23 }
24 
26  Container::const_iterator i;
27  for (i = theGenerators.begin(); i != theGenerators.end(); i++) {
28  (**i).hitPairs(region, pairs);
29  }
30 }
void add(const LayerWithHits *inner, const LayerWithHits *outer, const TrackerGeometry &trackGeom)
add generators based on layers
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
CosmicHitPairGenerator(SeedLayerPairs &layers, const TrackerGeometry &)
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
void hitPairs(const TrackingRegion &reg, OrderedHitPairs &pr)
form base class