CMS 3D CMS Logo

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 }
27 
28 
30  const LayerWithHits *inner, const LayerWithHits *outer,
31  const edm::EventSetup& iSetup)
32 {
33  theGenerators.push_back(std::make_unique<CosmicHitPairGeneratorFromLayerPair>( inner, outer, iSetup));
34 }
35 
37  const TrackingRegion& region,
38  OrderedHitPairs & pairs,
39  const edm::EventSetup& iSetup)
40 {
41 
42  Container::const_iterator i;
43  for (i=theGenerators.begin(); i!=theGenerators.end(); i++) {
44  (**i).hitPairs( region, pairs, iSetup);
45  }
46 
47 }
48 
49 
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::EventSetup &iSetup)
form base class
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
void add(const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)
add generators based on layers
CosmicHitPairGenerator(SeedLayerPairs &layers, const edm::EventSetup &iSetup)