Making JPT jets from SisCone jets

JPT corrected jets can be made starting from IC5 jets or SisCone jets. To make the JPT jets from SisCone I edited two new configuation files in NtupleMakers /python.

ZSPJetCorrections219SisCone _cff.py

import FWCore.ParameterSet.Config as cms

# Jet corrections.
#
# Define the correction services for each algorithm.
#
ZSPJetCorrectorSisCone = cms.ESSource("ZSPJetCorrectionService",
    tagName = cms.string('ZSP_CMSSW219_Iterative_Cone_05'),
    label = cms.string('ZSPJetCorrectorSisCone')
#    tagName = cms.string('ZSP_CMSSW152_Iterative_Cone_05'),
)

#   
#   Define the producers of corrected jet collections for each algorithm.
#
ZSPJetCorJetSisCone = cms.EDProducer("CaloJetCorrectionProducer",
    src = cms.InputTag("sisCone5CaloJets"),
    correctors = cms.vstring('ZSPJetCorrectorSisCone'),
    alias = cms.untracked.string('ZSPJetCorSisCone')
)

#
#  Define a sequence to make all corrected jet collections at once.
#
ZSPJetCorrectionsSisCone = cms.Sequence(ZSPJetCorJetSisCone)

JetPlusTrackCorrectionsSisCone _cff.py

import FWCore.ParameterSet.Config as cms

# File: JetCorrections.cff
# Author: O. Kodolova
# Date: 1/24/07
#
# Jet corrections with tracks for the icone5 jets with ZSP corrections.
# ... adapted by DLE for SisCone jets ...
# 

from JetMETCorrections.Configuration.JetCorrectionsRecord_cfi import *
from RecoJets.Configuration.RecoJetAssociations_cff import *

JetPlusTrackZSPCorrectorSisCone = cms.ESSource("JetPlusTrackCorrectionService",
    JetTrackCollectionAtCalo = cms.InputTag("ZSPsisConeJetTracksAssociatorAtCaloFace"),
    respalgo = cms.int32(5),
    JetTrackCollectionAtVertex = cms.InputTag("ZSPsisConeJetTracksAssociatorAtVertex"),
    muonSrc = cms.InputTag("muons"),
    AddOutOfConeTracks = cms.bool(True),
    NonEfficiencyFile = cms.string('CMSSW_167_TrackNonEff'),
    NonEfficiencyFileResp = cms.string('CMSSW_167_TrackLeakage'),
    ResponseFile = cms.string('CMSSW_167_response'),
    label = cms.string('JetPlusTrackZSPCorrectorSisCone'),
    TrackQuality = cms.string('highPurity'),
    UseQuality = cms.bool(True)
)

JetPlusTrackZSPCorJetSisCone = cms.EDProducer("CaloJetCorrectionProducer",
    src = cms.InputTag("ZSPJetCorJetSisCone"),
    correctors = cms.vstring('JetPlusTrackZSPCorrectorSisCone'),
    alias = cms.untracked.string('JetPlusTrackZSPCorJetSisCone')
)

from RecoJets.JetAssociationProducers.iterativeCone5JTA_cff import*

ZSPsisConeJetTracksAssociatorAtVertex = iterativeCone5JetTracksAssociatorAtVertex.clone()
ZSPsisConeJetTracksAssociatorAtVertex.jets = cms.InputTag("ZSPJetCorJetSisCone")

ZSPsisConeJetTracksAssociatorAtCaloFace = iterativeCone5JetTracksAssociatorAtCaloFace.clone()
ZSPsisConeJetTracksAssociatorAtCaloFace.jets = cms.InputTag("ZSPJetCorJetSisCone")

ZSPsisConeJetExtender = iterativeCone5JetExtender.clone()
ZSPsisConeJetExtender.jets = cms.InputTag("ZSPJetCorJetSisCone")
ZSPsisConeJetExtender.jet2TracksAtCALO = cms.InputTag("ZSPsisConeJetTracksAssociatorAtCaloFace")
ZSPsisConeJetExtender.jet2TracksAtVX = cms.InputTag("ZSPsisConeJetTracksAssociatorAtVertex")


ZSPrecoJetAssociationsSisCone = cms.Sequence(ZSPsisConeJetTracksAssociatorAtVertex*ZSPsisConeJetTracksAssociatorAtCaloFace*ZSPsisConeJetExtender)

JetPlusTrackCorrectionsSisCone = cms.Sequence(ZSPrecoJetAssociationsSisCone*JetPlusTrackZSPCorJetSisCone)

Then in the cfg file

#-------------------------------------------------
# load JPT producer
#-------------------------------------------------
process.load("CMS2.NtupleMaker.JetPlusTrackCorrectionsSisCone_cff")
process.load("CMS2.NtupleMaker.ZSPJetCorrections219SisCone_cff")
#process.load("JetMETCorrections.Configuration.JetPlusTrackCorrections_cff")
#process.load("JetMETCorrections.Configuration.ZSPJetCorrections219_cff")

and change the sequence also

#process.JPTCorrection = cms.Sequence(process.ZSPJetCorrections*process.JetPlusTrackCorrections*process.jptMaker)
process.JPTCorrection = cms.Sequence(process.ZSPJetCorrectionsSisCone*process.JetPlusTrackCorrectionsSisCone*process.jptMaker)

Also need to change the python/jptMaker_cfi.py as appropriate for the jptInputTag and the calojetInputTag according to the new files above.

Validation

Ran on the following file to validate the change...

/store/mc/Summer08/ZeeJet_Pt80to120/GEN-SIM-RECO/IDEAL_V9_v1/0003/E071D34D-C2D1-DD11-915A-003048C185DC.root

Distribution of the ET of JPT corrected jets made from IC5 jets (black) compared with distribution of JPT corrected jets made from SisCone jets (red)
sis_cal_et.png

The ratio of the above with statistical errors
sis_cal_et_ratio.png

-- DaveEvans - 17 Apr 2009

Topic attachments
I Attachment Action Size Date Who Comment
pngpng sis_cal_et.png manage 13.9 K 17 Apr 2009 - 15:24 DaveEvans  
pngpng sis_cal_et_ratio.png manage 22.7 K 17 Apr 2009 - 15:25 DaveEvans  
Topic revision: r1 - 17 Apr 2009 - 15:33:10 - DaveEvans

tip TWiki Tip of the Day
Revision control
TWiki has "Soft security" anyone can change anything, but changes are logged. There is a complete ... Read on Read more

 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback