12 samples.names = [
'Wenu',
32 genp = cms.EDFilter(
"PdgIdAndStatusCandViewSelector",
33 status = cms.vint32(3),
34 src = cms.InputTag(
"genParticles"),
35 pdgId = cms.vint32(11)
38 fiducial = cms.EDFilter(
"EtaPtMinCandViewSelector",
39 src = cms.InputTag(
"genp"),
40 etaMin = cms.double(-2.5),
41 etaMax = cms.double(2.5),
42 ptMin = cms.double(2.0)
49 tmp = cms.SequencePlaceholder(
"tmp")
50 egammaSelectors = cms.Sequence(tmp)
53 for samplenum
in range(len(samples.names)):
56 genpartname =
"genpart"+samples.names[samplenum]
57 globals()[genpartname] = genp.clone()
58 setattr(globals()[genpartname],
"pdgId",cms.vint32(samples.pdgid[samplenum]) )
59 egammaSelectors *= globals()[genpartname]
62 fiducialname =
"fiducial"+samples.names[samplenum]
63 globals()[fiducialname] = fiducial.clone()
64 setattr(globals()[fiducialname],
"src",cms.InputTag(genpartname) )
65 egammaSelectors *= globals()[fiducialname]
67 egammaSelectors.remove(tmp)
69 dqmFeeder = cms.EDAnalyzer(
'EmDQMFeeder',
71 triggerobject = cms.InputTag(
"hltTriggerSummaryRAW",
"",
"HLT"),
72 genEtaAcc = cms.double(2.5),
73 genEtAcc = cms.double(2.0),
74 PtMax = cms.untracked.double(100.0),
75 isData = cms.bool(
False),
76 verbosity = cms.untracked.uint32(0),
77 mcMatchedOnly = cms.untracked.bool(
True),
78 noPhiPlots = cms.untracked.bool(
True),
79 noIsolationPlots = cms.untracked.bool(
True)
83 egammaValidationSequence = cms.Sequence(dqmFeeder)
84 egammaValidationSequenceFS = cms.Sequence(dqmFeeder)