Skip to content

Commit 75cf943

Browse files
committed
Drop type specs in RecoB and RecoEgamma
1 parent 90eb7d4 commit 75cf943

File tree

6 files changed

+46
-43
lines changed

6 files changed

+46
-43
lines changed

Validation/RecoB/python/BDHadronTrackMonitoring_cfi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919

2020

2121
BDHadronTrackMonitoringHarvest = DQMEDHarvester("BDHadronTrackMonitoringHarvester"
22-
)
22+
)

Validation/RecoB/python/BDHadronTrackValidation_cff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# and rerun PAT (because sometimes validation is ran without PAT sequence enables)
55
from PhysicsTools.PatAlgos.producersLayer1.jetProducer_cff import *
66
patJetsBDHadron = patJets.clone(
7-
tagInfoSources = cms.VInputTag(cms.InputTag('pfImpactParameterTagInfos')),
8-
addTagInfos = cms.bool(True)
7+
tagInfoSources = cms.VInputTag('pfImpactParameterTagInfos'),
8+
addTagInfos = True
99
)
1010

1111
# my analyzer

Validation/RecoEgamma/python/electronIsoFromDeps_cff.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
eleIsoDepositEcalFromHitsFull = eleIsoDepositEcalFromHits.clone()
1111
eleIsoDepositEcalFromHitsReduced = eleIsoDepositEcalFromHits.clone()
1212

13-
eleIsoDepositEcalFromHitsFull.ExtractorPSet.barrelEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEB")
14-
eleIsoDepositEcalFromHitsFull.ExtractorPSet.endcapEcalHits = cms.InputTag("ecalRecHit","EcalRecHitsEE")
15-
eleIsoDepositEcalFromHitsReduced.ExtractorPSet.barrelEcalHits = cms.InputTag("reducedEcalRecHitsEB")
16-
eleIsoDepositEcalFromHitsReduced.ExtractorPSet.endcapEcalHits = cms.InputTag("reducedEcalRecHitsEE")
13+
eleIsoDepositEcalFromHitsFull.ExtractorPSet.barrelEcalHits = "ecalRecHit : EcalRecHitsEB"
14+
eleIsoDepositEcalFromHitsFull.ExtractorPSet.endcapEcalHits = "ecalRecHit : EcalRecHitsEE"
15+
eleIsoDepositEcalFromHitsReduced.ExtractorPSet.barrelEcalHits = "reducedEcalRecHitsEB"
16+
eleIsoDepositEcalFromHitsReduced.ExtractorPSet.endcapEcalHits = "reducedEcalRecHitsEE"
17+
1718

1819
# clone the value map producers for each DR
1920

@@ -57,4 +58,4 @@
5758
eleIsoFromDepsEcalFromHitsByCrystalReduced04*
5859
eleIsoFromDepsHcalFromTowers03*
5960
eleIsoFromDepsHcalFromTowers04
60-
)
61+
)

Validation/RecoEgamma/python/electronValidationSequenceMiniAOD_cff.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
from RecoParticleFlow.PFProducer.particleFlowEGamma_cff import egmElectronIsolationCITK as _egmElectronIsolationCITK
99
from RecoParticleFlow.PFProducer.particleFlowEGamma_cff import *
1010

11-
miniAODElectronIsolation = _egmElectronIsolationCITK.clone()
12-
miniAODElectronIsolation.srcToIsolate = cms.InputTag("slimmedElectrons")
13-
miniAODElectronIsolation.srcForIsolationCone = cms.InputTag("packedPFCandidates")
11+
miniAODElectronIsolation = _egmElectronIsolationCITK.clone(
12+
srcToIsolate = "slimmedElectrons",
13+
srcForIsolationCone = "packedPFCandidates"
14+
)
1415

1516
electronValidationTaskMiniAOD = cms.Task(egmElectronIsolationCITK, miniAODElectronIsolation, ElectronIsolation)
1617
electronValidationSequenceMiniAOD = cms.Sequence(electronMcSignalValidatorMiniAOD, electronValidationTaskMiniAOD)

Validation/RecoEgamma/python/tkConvValidator_cfi.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@
1010
trackAssociatorByHitsForConversionValidation.Cut_RecoToSim = 0.5
1111

1212
from CommonTools.RecoAlgos.trackingParticleRefSelector_cfi import trackingParticleRefSelector as _trackingParticleRefSelector
13-
tpSelecForEfficiency = _trackingParticleRefSelector.clone()
14-
tpSelecForEfficiency.chargedOnly = True
15-
# trackingParticleSelector.pdgId = cms.vint32()
16-
tpSelecForEfficiency.tip = 120
17-
tpSelecForEfficiency.lip = 280
18-
tpSelecForEfficiency.signalOnly = False
19-
tpSelecForEfficiency.minRapidity = -2.5
20-
tpSelecForEfficiency.ptMin = 0.3
21-
tpSelecForEfficiency.maxRapidity = 2.5
22-
tpSelecForEfficiency.minHit = 0
23-
24-
25-
tpSelecForFakeRate = _trackingParticleRefSelector.clone()
26-
tpSelecForFakeRate.chargedOnly = True
27-
# trackingParticleSelector.pdgId = cms.vint32()
28-
tpSelecForFakeRate.tip = 120
29-
tpSelecForFakeRate.lip = 280
30-
tpSelecForFakeRate.signalOnly = False
31-
tpSelecForFakeRate.minRapidity = -2.5
32-
tpSelecForFakeRate.ptMin = 0.
33-
tpSelecForFakeRate.maxRapidity = 2.5
34-
tpSelecForFakeRate.minHit = 0
13+
tpSelecForEfficiency = _trackingParticleRefSelector.clone(
14+
chargedOnly = True,
15+
# trackingParticleSelector.pdgId = cms.vint32()
16+
tip = 120,
17+
lip = 280,
18+
signalOnly = False,
19+
minRapidity = -2.5,
20+
ptMin = 0.3,
21+
maxRapidity = 2.5,
22+
minHit = 0
23+
)
3524

25+
tpSelecForFakeRate = _trackingParticleRefSelector.clone(
26+
chargedOnly = True,
27+
# trackingParticleSelector.pdgId = cms.vint32()
28+
tip = 120,
29+
lip = 280,
30+
signalOnly = False,
31+
minRapidity = -2.5,
32+
ptMin = 0.0,
33+
maxRapidity = 2.5,
34+
minHit = 0
35+
)
3636

3737

3838
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import FWCore.ParameterSet.Config as cms
22

33
import PhysicsTools.RecoAlgos.trackingParticleSelector_cfi
4-
tpSelection = PhysicsTools.RecoAlgos.trackingParticleSelector_cfi.trackingParticleSelector.clone()
5-
tpSelection.chargedOnly = True
6-
# trackingParticleSelector.pdgId = cms.vint32()
7-
tpSelection.tip = 120
8-
tpSelection.lip = 280
9-
tpSelection.signalOnly = False
10-
tpSelection.minRapidity = -2.5
11-
tpSelection.ptMin = 1.
12-
tpSelection.maxRapidity = 2.5
13-
tpSelection.minHit = 0
4+
tpSelection = PhysicsTools.RecoAlgos.trackingParticleSelector_cfi.trackingParticleSelector.clone(
5+
chargedOnly = True,
6+
# trackingParticleSelector.pdgId = cms.vint32()
7+
tip = 120,
8+
lip = 280,
9+
signalOnly = False,
10+
minRapidity = -2.5,
11+
ptMin = 1.0,
12+
maxRapidity = 2.5,
13+
minHit = 0
1414

15+
)
1516

0 commit comments

Comments
 (0)