Esempio n. 1
0
import FWCore.ParameterSet.Config as cms

from DQMOffline.PFTau.PFElectronDQMAnalyzer_cfi import pfElectronDQMAnalyzer

pfElectronValidation1 = pfElectronDQMAnalyzer.clone()
pfElectronValidation1.InputCollection = cms.InputTag('pfAllElectrons') # for global Validation
pfElectronValidation1.MatchCollection = cms.InputTag('gensource') # for global Validation
pfElectronValidation1.BenchmarkLabel  = cms.string('PFElectronValidation/CompWithGenElectron')
pfElectronValidationSequence = cms.Sequence( pfElectronValidation1 )


# NoTracking
pfElectronValidation2 = pfElectronDQMAnalyzer.clone()
pfElectronValidation2.InputCollection = cms.InputTag('pfAllElectrons','','PFlowDQMnoTracking')
pfElectronValidation2.MatchCollection = cms.InputTag('gensource','','PFlowDQMnoTracking')
pfElectronValidation2.BenchmarkLabel  = cms.string('PFElectronValidation/CompWithGenElectron')
pfElectronValidationSequence_NoTracking = cms.Sequence( pfElectronValidation2 )
Esempio n. 2
0
import FWCore.ParameterSet.Config as cms

# genParticles
genParticles1 = cms.EDProducer("GenParticlePruner",
                                   src = cms.InputTag("genParticles"),
                                   select = cms.vstring('drop *',
                                                        # for miniAOD matching
                                                        'keep status == 1')
                                   )

from DQMOffline.PFTau.PFElectronDQMAnalyzer_cfi import pfElectronDQMAnalyzer

genParticlesValidation = pfElectronDQMAnalyzer.clone()
genParticlesValidation.BenchmarkLabel  = cms.string('packedGenParticlesValidation/CompWithGenParticles')
genParticlesValidation.InputCollection = cms.InputTag('packedGenParticles')
genParticlesValidation.MatchCollection = cms.InputTag('genParticles1')

miniAODValidationSequence = cms.Sequence(
                                        genParticlesValidation
					)
Esempio n. 3
0
    MatchCollection='pfMet')

slimmedMETValidation2 = pfMETDQMAnalyzer.clone(
    BenchmarkLabel='slimmedMETValidation/CompWithPFMETT1',
    InputCollection='slimmedMETs',
    MatchCollection='pfMetT1')

# muons
from DQMOffline.PFTau.PFMuonDQMAnalyzer_cfi import pfMuonDQMAnalyzer

slimmedMuonValidation1 = pfMuonDQMAnalyzer.clone(
    BenchmarkLabel='slimmedMuonValidation/CompWithRecoMuons',
    InputCollection='slimmedMuons',
    MatchCollection='muons')

# electrons
from DQMOffline.PFTau.PFElectronDQMAnalyzer_cfi import pfElectronDQMAnalyzer

slimmedElectronValidation1 = pfElectronDQMAnalyzer.clone(
    BenchmarkLabel='slimmedElectronValidation/CompWithGedGsfElectrons',
    InputCollection='slimmedElectrons',
    MatchCollection='gedGsfElectrons')

from JetMETCorrections.Type1MET.pfMETCorrectionType0_cfi import type0PFMEtCorrectionPFCandToVertexAssociationForValidationMiniAOD

miniAODDQMSequence = cms.Sequence(
    type0PFMEtCorrectionPFCandToVertexAssociationForValidationMiniAOD *
    slimmedJetValidation1 * slimmedJetValidation2 * slimmedJetResValidation1 *
    slimmedJetResValidation2 * slimmedMETValidation1 * slimmedMETValidation2 *
    slimmedMuonValidation1 * slimmedElectronValidation1)
Esempio n. 4
0
import FWCore.ParameterSet.Config as cms

# genParticles
genParticles1 = cms.EDProducer(
    "GenParticlePruner",
    src=cms.InputTag("genParticles"),
    select=cms.vstring(
        'drop *',
        # for miniAOD matching
        'keep status == 1'))

from DQMOffline.PFTau.PFElectronDQMAnalyzer_cfi import pfElectronDQMAnalyzer

genParticlesValidation = pfElectronDQMAnalyzer.clone(
    BenchmarkLabel='packedGenParticlesValidation/CompWithGenParticles',
    InputCollection='packedGenParticles',
    MatchCollection='genParticles1')

miniAODValidationSequence = cms.Sequence(genParticlesValidation)
import FWCore.ParameterSet.Config as cms

from DQMOffline.PFTau.PFElectronDQMAnalyzer_cfi import pfElectronDQMAnalyzer

pfAllElectrons = cms.EDFilter("PdgIdPFCandidateSelector",
                              pdgId=cms.vint32(11, -11),
                              src=cms.InputTag("particleFlow"))

gensource = cms.EDProducer("GenParticlePruner",
                           src=cms.InputTag("genParticles"),
                           select=cms.vstring('drop *', 'keep pdgId = 11',
                                              'keep pdgId = -11'))

pfElectronValidation1 = pfElectronDQMAnalyzer.clone()
pfElectronValidation1.BenchmarkLabel = cms.string(
    'PFElectronValidation/CompWithGenElectron')
pfElectronValidationSequence = cms.Sequence(gensource + pfElectronValidation1)

# NoTracking
pfElectronValidation2 = pfElectronDQMAnalyzer.clone()
pfElectronValidation2.InputCollection = cms.InputTag('pfAllElectrons', '',
                                                     'PFlowDQMnoTracking')
pfElectronValidation2.MatchCollection = cms.InputTag('gensource', '',
                                                     'PFlowDQMnoTracking')
pfElectronValidation2.BenchmarkLabel = cms.string(
    'PFElectronValidation/CompWithGenElectron')
pfElectronValidationSequence_NoTracking = cms.Sequence(pfElectronValidation2)
Esempio n. 6
0
import FWCore.ParameterSet.Config as cms

from DQMOffline.PFTau.PFElectronDQMAnalyzer_cfi import pfElectronDQMAnalyzer

pfAllElectrons = cms.EDFilter("PdgIdPFCandidateSelector",
                              pdgId=cms.vint32(11, -11),
                              src=cms.InputTag("particleFlow"))

gensource = cms.EDProducer("GenParticlePruner",
                           src=cms.InputTag("genParticles"),
                           select=cms.vstring('drop *', 'keep pdgId = 11',
                                              'keep pdgId = -11'))

pfElectronValidation1 = pfElectronDQMAnalyzer.clone(
    BenchmarkLabel='PFElectronValidation/CompWithGenElectron')
pfElectronValidationSequence = cms.Sequence(gensource + pfElectronValidation1)

# NoTracking
pfElectronValidation2 = pfElectronDQMAnalyzer.clone(
    InputCollection='pfAllElectrons::PFlowDQMnoTracking',
    MatchCollection='gensource::PFlowDQMnoTracking',
    BenchmarkLabel='PFElectronValidation/CompWithGenElectron')
pfElectronValidationSequence_NoTracking = cms.Sequence(pfElectronValidation2)