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 
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, iSetup);
14  }
15 }
16 
18 
20  const LayerWithHits* outer,
21  const edm::EventSetup& iSetup) {
22  theGenerators.push_back(std::make_unique<CosmicHitPairGeneratorFromLayerPair>(inner, outer, iSetup));
23 }
24 
26  OrderedHitPairs& pairs,
27  const edm::EventSetup& iSetup) {
28  Container::const_iterator i;
29  for (i = theGenerators.begin(); i != theGenerators.end(); i++) {
30  (**i).hitPairs(region, pairs, iSetup);
31  }
32 }
OrderedHitPairs
Definition: OrderedHitPairs.h:8
mps_fire.i
i
Definition: mps_fire.py:428
MessageLogger.h
CosmicHitPairGenerator::CosmicHitPairGenerator
CosmicHitPairGenerator(SeedLayerPairs &layers, const edm::EventSetup &iSetup)
Definition: CosmicHitPairGenerator.cc:9
CosmicHitPairGenerator::add
void add(const LayerWithHits *inner, const LayerWithHits *outer, const edm::EventSetup &iSetup)
add generators based on layers
Definition: CosmicHitPairGenerator.cc:19
TrajectorySeedProducer_cfi.layerPairs
layerPairs
Definition: TrajectorySeedProducer_cfi.py:23
SeedLayerPairs
Definition: SeedLayerPairs.h:16
SeedLayerPairs.h
SurfaceOrientation::inner
Definition: Surface.h:19
PVValHelper::add
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
Definition: PVValidationHelpers.cc:12
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:84949
edm::EventSetup
Definition: EventSetup.h:57
std
Definition: JetResolutionObject.h:76
CosmicHitPairGenerator::~CosmicHitPairGenerator
~CosmicHitPairGenerator()
Definition: CosmicHitPairGenerator.cc:17
TrackingRegion
Definition: TrackingRegion.h:41
CosmicHitPairGenerator.h
CosmicHitPairGeneratorFromLayerPair.h
SurfaceOrientation::outer
Definition: Surface.h:19
LayerWithHits
Definition: LayerWithHits.h:12
hgcalTopologyTester_cfi.layers
layers
Definition: hgcalTopologyTester_cfi.py:8
CosmicHitPairGenerator::hitPairs
void hitPairs(const TrackingRegion &reg, OrderedHitPairs &prs, const edm::EventSetup &iSetup)
form base class
Definition: CosmicHitPairGenerator.cc:25