Ejemplo n.º 1
0
#default values for MiniAODs
muonTag = 'slimmedMuons'
metTag = 'slimmedMETs'
#redo jets to adjust b-tagging/JEC info
from RecoJets.JetProducers.ak4PFJets_cfi import ak4PFJets
from RecoJets.JetProducers.ak4GenJets_cfi import ak4GenJets
process.pfCHS = cms.EDFilter("CandPtrSelector",
                             src=cms.InputTag("packedPFCandidates"),
                             cut=cms.string("fromPV"))
process.ak4PFJetsCHS = ak4PFJets.clone(src='pfCHS', doAreaFastjet=True)

###########################################################################
# Electron IDs are calculated in a function
import TopAnalysis.Configuration.objectDefinitions13Tev.electron_cff as electron
electron.electron(process)

####################################################################
## Use SwitchJetCollection in order to rerun the btagging

## b-tag infos
#bTagInfos = ['impactParameterTagInfos','secondaryVertexTagInfos']
## b-tag discriminators
bTagDiscriminators = ['pfCombinedInclusiveSecondaryVertexV2BJetTags']
## Jets, tracks, and vertices
jetSource = 'ak4PFJetsCHS'
pfCandidates = 'packedPFCandidates'
pvSource = opt.primaryVertexOptions['outputCollection']
svSource = cms.InputTag('slimmedSecondaryVertices')
electronSource = cms.InputTag(opt.electronOptions['inputCollectionMiniAod'])
muonSource = cms.InputTag(opt.muonOptions['inputCollectionMiniAod'])
Ejemplo n.º 2
0
    metTag = 'slimmedMETs'

    #redo jets to adjust b-tagging/JEC info  
    from RecoJets.JetProducers.ak4PFJets_cfi import ak4PFJets
    from RecoJets.JetProducers.ak4GenJets_cfi import ak4GenJets
    process.pfCHS = cms.EDFilter("CandPtrSelector", 
                                 src = cms.InputTag("packedPFCandidates"), 
                                 cut = cms.string("fromPV"))
    process.ak4PFJetsCHS = ak4PFJets.clone(src = 'pfCHS', doAreaFastjet = True)
    
    

###########################################################################
# Electron IDs are calculated in a function
import TopAnalysis.Configuration.objectDefinitions13Tev.electron_cff as electron
electron.electron(process)

#################################################################### 
## Use SwitchJetCollection in order to rerun the btagging


## b-tag infos
#bTagInfos = ['impactParameterTagInfos','secondaryVertexTagInfos']
## b-tag discriminators
bTagDiscriminators = ['pfCombinedInclusiveSecondaryVertexV2BJetTags'
                      ]
## Jets, tracks, and vertices 
if runOnAOD:
    jetSource = 'pfJets'+pfpostfix
    pfCandidates = 'particleFlow'
    pvSource = 'offlinePrimaryVertices'