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), iSetup);
21  }
22  }
23 }
24 
26 
28  const LayerWithHits* middle,
29  const LayerWithHits* outer,
30  const edm::EventSetup& iSetup) {
31  theGenerators.push_back(std::make_unique<CosmicHitTripletGeneratorFromLayerTriplet>(inner, middle, outer, iSetup));
32 }
33 
35  OrderedHitTriplets& pairs,
36  const edm::EventSetup& iSetup) {
37  Container::const_iterator i;
38  for (i = theGenerators.begin(); i != theGenerators.end(); i++) {
39  (**i).hitTriplets(region, pairs, iSetup);
40  }
41 }
mps_fire.i
i
Definition: mps_fire.py:428
MessageLogger.h
CosmicLayerTriplets.h
CosmicHitTripletGenerator::~CosmicHitTripletGenerator
~CosmicHitTripletGenerator()
Definition: CosmicHitTripletGenerator.cc:25
CosmicLayerTriplets
Definition: CosmicLayerTriplets.h:24
SurfaceOrientation::inner
Definition: Surface.h:19
OrderedHitTriplets
Definition: OrderedHitTriplets.h:9
PVValHelper::add
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
Definition: PVValidationHelpers.cc:12
CosmicHitTripletGenerator.h
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88286
CosmicHitTripletGenerator::add
void add(const LayerWithHits *inner, const LayerWithHits *middle, const LayerWithHits *outer, const edm::EventSetup &iSetup)
add generators based on layers
Definition: CosmicHitTripletGenerator.cc:27
edm::EventSetup
Definition: EventSetup.h:58
CosmicHitTripletGenerator::hitTriplets
void hitTriplets(const TrackingRegion &reg, OrderedHitTriplets &prs, const edm::EventSetup &iSetup)
Definition: CosmicHitTripletGenerator.cc:34
std
Definition: JetResolutionObject.h:76
CosmicHitTripletGenerator::CosmicHitTripletGenerator
CosmicHitTripletGenerator(CosmicLayerTriplets &layers, const edm::EventSetup &iSetup)
Definition: CosmicHitTripletGenerator.cc:9
TrackingRegion
Definition: TrackingRegion.h:41
SurfaceOrientation::outer
Definition: Surface.h:19
LayerWithHits
Definition: LayerWithHits.h:12
hgcalTopologyTester_cfi.layers
layers
Definition: hgcalTopologyTester_cfi.py:8