Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:08

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from PhysicsTools.PatUtils.bJetOperatingPointsParameters_cfi import *
0004 
0005 process = cms.Process("PatBTagAnalyzer")
0006 
0007 process.source = cms.Source("PoolSource",
0008     #fileNames = cms.untracked.vstring('file:PATLayer1_Output.fromAOD_full_ttbar.root')
0009     fileNames = cms.untracked.vstring('/store/relval/2008/7/21/RelVal-RelValTTbar-1216579481-IDEAL_V5-2nd/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG-RECO/CMSSW_2_1_0_pre9-RelVal-1216579481-IDEAL_V5-2nd-unmerged/0000/00BCD825-6E57-DD11-8C1F-000423D98EA8.root')
0010 )
0011 
0012 
0013 process.MessageLogger = cms.Service("MessageLogger")
0014 
0015 process.maxEvents = cms.untracked.PSet(
0016     input = cms.untracked.int32(100)
0017 )
0018 
0019 
0020 process.load("Configuration.StandardSequences.Geometry_cff")
0021 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0022 process.GlobalTag.globaltag = cms.string('IDEAL_V5::All')
0023 process.load("Configuration.StandardSequences.MagneticField_cff")
0024 
0025 
0026 # PAT Layer 1
0027 process.load("PhysicsTools.PatAlgos.patLayer0_cff") # need to load this
0028 process.load("PhysicsTools.PatAlgos.patLayer1_cff") # even if we run only layer 1
0029 
0030 
0031 process.TFileService = cms.Service("TFileService",
0032     fileName = cms.string('btagpatanalyzerpy.root')
0033 )
0034  
0035 # request a summary at the end of the file
0036 process.options = cms.untracked.PSet(
0037      wantSummary = cms.untracked.bool(True)
0038 )
0039 
0040 
0041 process.PatBTagAnalyzerTC2 = cms.EDAnalyzer("PatBTagAnalyzer",
0042     BJetOperatingPointsParameters,
0043     jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0044     BjetTag = cms.PSet(
0045         verbose = cms.untracked.bool(True),
0046         tagger = cms.untracked.string('TC2'),
0047         purity = cms.string('Loose'),
0048         discriminator = cms.string('trackCountingHighEffBJetTags'),
0049         maxdiscriminatorcut = cms.untracked.double(30.0),
0050         mindiscriminatorcut = cms.untracked.double(-10.0)
0051     )
0052 )
0053 
0054 
0055 process.PatBTagAnalyzerTC3 = cms.EDAnalyzer("PatBTagAnalyzer",
0056     BJetOperatingPointsParameters,
0057     jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0058     BjetTag = cms.PSet(
0059         verbose = cms.untracked.bool(False),
0060         tagger = cms.untracked.string('TC3'),
0061         purity = cms.string('Loose'),
0062         discriminator = cms.string('trackCountingHighPurBJetTags'),
0063         maxdiscriminatorcut = cms.untracked.double(30.0),
0064         mindiscriminatorcut = cms.untracked.double(-10.0)
0065     )
0066 )
0067 
0068 process.PatBTagAnalyzerTP = cms.EDAnalyzer("PatBTagAnalyzer",
0069     BJetOperatingPointsParameters,
0070     jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0071     BjetTag = cms.PSet(
0072         verbose = cms.untracked.bool(False),
0073         tagger = cms.untracked.string('TP'),
0074         purity = cms.string('Loose'),
0075         discriminator = cms.string('jetProbabilityBJetTags'),
0076         maxdiscriminatorcut = cms.untracked.double(2.6),
0077         mindiscriminatorcut = cms.untracked.double(-0.1)
0078     )
0079 )
0080 
0081 process.PatBTagAnalyzerBTP = cms.EDAnalyzer("PatBTagAnalyzer",
0082     BJetOperatingPointsParameters,
0083     jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0084     BjetTag = cms.PSet(
0085         verbose = cms.untracked.bool(False),
0086         tagger = cms.untracked.string('BTP'),
0087         purity = cms.string('Loose'),
0088         discriminator = cms.string('jetBProbabilityBJetTags'),
0089         maxdiscriminatorcut = cms.untracked.double(8.1),
0090         mindiscriminatorcut = cms.untracked.double(-0.1)
0091     )
0092 )
0093 process.PatBTagAnalyzerSSV = cms.EDAnalyzer("PatBTagAnalyzer",
0094     BJetOperatingPointsParameters,
0095     jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0096     BjetTag = cms.PSet(
0097         verbose = cms.untracked.bool(False),
0098         tagger = cms.untracked.string('SSV'),
0099         purity = cms.string('Loose'),
0100         discriminator = cms.string('simpleSecondaryVertexBJetTags'),
0101         maxdiscriminatorcut = cms.untracked.double(8.0),
0102         mindiscriminatorcut = cms.untracked.double(0.0)
0103     )
0104 )
0105 
0106 process.PatBTagAnalyzerCSV = cms.EDAnalyzer("PatBTagAnalyzer",
0107     BJetOperatingPointsParameters,
0108    jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0109     BjetTag = cms.PSet(
0110         verbose = cms.untracked.bool(False),
0111         tagger = cms.untracked.string('CSV'),
0112         purity = cms.string('Loose'),
0113         discriminator = cms.string('combinedSecondaryVertexBJetTags'),
0114         maxdiscriminatorcut = cms.untracked.double(1.1),
0115         mindiscriminatorcut = cms.untracked.double(-0.1)
0116     )
0117 )
0118 
0119 process.PatBTagAnalyzerMSV = cms.EDAnalyzer("PatBTagAnalyzer",
0120     BJetOperatingPointsParameters,
0121     jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0122     BjetTag = cms.PSet(
0123         verbose = cms.untracked.bool(False),
0124         tagger = cms.untracked.string('MSV'),
0125         purity = cms.string('Loose'),
0126         discriminator = cms.string('combinedSecondaryVertexMVABJetTags'),
0127         maxdiscriminatorcut = cms.untracked.double(1.1),
0128         mindiscriminatorcut = cms.untracked.double(-0.1)
0129     )
0130 )
0131 
0132 process.PatBTagAnalyzerIPM = cms.EDAnalyzer("PatBTagAnalyzer",
0133     BJetOperatingPointsParameters,
0134     jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0135     BjetTag = cms.PSet(
0136         verbose = cms.untracked.bool(False),
0137         tagger = cms.untracked.string('IPM'),
0138         purity = cms.string('Loose'),
0139         discriminator = cms.string('impactParameterMVABJetTags'),
0140         maxdiscriminatorcut = cms.untracked.double(1.1),
0141         mindiscriminatorcut = cms.untracked.double(-0.1)
0142     )
0143 )
0144 
0145 process.PatBTagAnalyzerSET = cms.EDAnalyzer("PatBTagAnalyzer",
0146     BJetOperatingPointsParameters,
0147     jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0148     BjetTag = cms.PSet(
0149         verbose = cms.untracked.bool(False),
0150         tagger = cms.untracked.string('SET'),
0151         purity = cms.string('Loose'),
0152         discriminator = cms.string('softElectronBJetTags'),
0153         maxdiscriminatorcut = cms.untracked.double(1.1),
0154         mindiscriminatorcut = cms.untracked.double(-0.1)
0155     )
0156 )
0157 
0158 process.PatBTagAnalyzerSMT = cms.EDAnalyzer("PatBTagAnalyzer",
0159     BJetOperatingPointsParameters,
0160     jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0161     BjetTag = cms.PSet(
0162         verbose = cms.untracked.bool(False),
0163         tagger = cms.untracked.string('SMT'),
0164         purity = cms.string('Loose'),
0165         discriminator = cms.string('softMuonBJetTags'),
0166         maxdiscriminatorcut = cms.untracked.double(1.1),
0167         mindiscriminatorcut = cms.untracked.double(-0.1)
0168     )
0169 )
0170 
0171 process.PatBTagAnalyzerSMNIPT = cms.EDAnalyzer("PatBTagAnalyzer",
0172     BJetOperatingPointsParameters,
0173     jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0174     BjetTag = cms.PSet(
0175         verbose = cms.untracked.bool(False),
0176         tagger = cms.untracked.string('SMNIPT'),
0177         purity = cms.string('Loose'),
0178         discriminator = cms.string('softMuonNoIPBJetTags'),
0179         maxdiscriminatorcut = cms.untracked.double(1.1),
0180         mindiscriminatorcut = cms.untracked.double(-0.1)
0181     )
0182 )
0183 
0184 
0185 process.p = cms.Path(
0186     process.patLayer0 *
0187     process.patLayer1 *
0188     process.PatBTagAnalyzerTC2 *
0189     process.PatBTagAnalyzerTC3 *
0190     process.PatBTagAnalyzerBTP *
0191     process.PatBTagAnalyzerSSV *
0192     process.PatBTagAnalyzerCSV *
0193     process.PatBTagAnalyzerMSV *
0194     process.PatBTagAnalyzerIPM *
0195     process.PatBTagAnalyzerSET *
0196     process.PatBTagAnalyzerSMT *
0197     process.PatBTagAnalyzerSMNIPT *
0198     process.PatBTagAnalyzerTP
0199     )
0200