RecoTracker
TkHitPairs
src
CosmicHitPairGenerator.cc
Go to the documentation of this file.
1
//#include "RecoTracker/TkHitPairs/interface/LayerWithHits.h"
2
#include "
RecoTracker/TkHitPairs/interface/CosmicHitPairGenerator.h
"
3
#include "
RecoTracker/TkHitPairs/interface/SeedLayerPairs.h
"
4
#include "
RecoTracker/TkHitPairs/interface/CosmicHitPairGeneratorFromLayerPair.h
"
5
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
6
7
using namespace
std
;
8
9
CosmicHitPairGenerator::CosmicHitPairGenerator
(
SeedLayerPairs
&
layers
,
const
edm::EventSetup
& iSetup) {
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
17
CosmicHitPairGenerator::~CosmicHitPairGenerator
() {}
18
19
void
CosmicHitPairGenerator::add
(
const
LayerWithHits
*
inner
,
20
const
LayerWithHits
*
outer
,
21
const
edm::EventSetup
& iSetup) {
22
theGenerators.push_back(std::make_unique<CosmicHitPairGeneratorFromLayerPair>(
inner
,
outer
, iSetup));
23
}
24
25
void
CosmicHitPairGenerator::hitPairs
(
const
TrackingRegion
&
region
,
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:355
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
edm::EventSetup
Definition:
EventSetup.h:57
std
Definition:
JetResolutionObject.h:76
CosmicHitPairGenerator::~CosmicHitPairGenerator
~CosmicHitPairGenerator()
Definition:
CosmicHitPairGenerator.cc:17
HLT_2018_cff.region
region
Definition:
HLT_2018_cff.py:81479
TrackingRegion
Definition:
TrackingRegion.h:40
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 ®, OrderedHitPairs &prs, const edm::EventSetup &iSetup)
form base class
Definition:
CosmicHitPairGenerator.cc:25
Generated for CMSSW Reference Manual by
1.8.16