1 import FWCore.ParameterSet.Config
as cms
12 samples.names = [
'Wenu',
32 genp = cms.EDFilter(
"CandViewSelector",
33 src = cms.InputTag(
"genParticles"),
34 cut = cms.string(
"isPromptFinalState() & abs(pdgId) = 11")
37 fiducial = cms.EDFilter(
"EtaPtMinCandViewSelector",
38 src = cms.InputTag(
"genp"),
39 etaMin = cms.double(-2.5),
40 etaMax = cms.double(2.5),
41 ptMin = cms.double(2.0)
48 tmp = cms.SequencePlaceholder(
"tmp")
49 egammaSelectors = cms.Sequence(tmp)
52 for samplenum
in range(len(samples.names)):
55 genpartname =
"genpart"+samples.names[samplenum]
56 globals()[genpartname] = genp.clone()
57 setattr(globals()[genpartname],
"cut",cms.string(
"isPromptFinalState() & abs(pdgId) = "+
str(samples.pdgid[samplenum])) )
58 egammaSelectors *= globals()[genpartname]
61 fiducialname =
"fiducial"+samples.names[samplenum]
62 globals()[fiducialname] = fiducial.clone()
63 setattr(globals()[fiducialname],
"src",cms.InputTag(genpartname) )
64 egammaSelectors *= globals()[fiducialname]
66 egammaSelectors.remove(tmp)
68 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
71 autoConfMode = cms.untracked.bool(
True),
72 triggerobject = cms.InputTag(
"hltTriggerSummaryRAW",
"",
"HLT"),
73 genEtaAcc = cms.double(2.5),
74 genEtAcc = cms.double(2.0),
75 PtMax = cms.untracked.double(100.0),
76 isData = cms.bool(
False),
77 verbosity = cms.untracked.uint32(0),
78 mcMatchedOnly = cms.untracked.bool(
True),
79 noPhiPlots = cms.untracked.bool(
True),
80 noIsolationPlots = cms.untracked.bool(
True)
84 egammaValidationSequence = cms.Sequence(emdqm)