File indexing completed on 2024-04-06 12:24:02
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('/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')
0009 )
0010
0011
0012 process.MessageLogger = cms.Service("MessageLogger")
0013
0014 process.maxEvents = cms.untracked.PSet(
0015 input = cms.untracked.int32(100)
0016 )
0017
0018
0019 process.load("Configuration.StandardSequences.GeometryDB_cff")
0020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0021 process.GlobalTag.globaltag = cms.string( autoCond[ 'phase1_2022_realistic' ] )
0022 process.load("Configuration.StandardSequences.MagneticField_cff")
0023
0024
0025
0026 process.load("PhysicsTools.PatAlgos.patLayer0_cff")
0027 process.load("PhysicsTools.PatAlgos.patLayer1_cff")
0028
0029
0030 process.TFileService = cms.Service("TFileService",
0031 fileName = cms.string('btagpatanalyzerpy.root')
0032 )
0033
0034
0035 process.options = cms.untracked.PSet(
0036 wantSummary = cms.untracked.bool(True)
0037 )
0038
0039
0040 process.PatBTagAnalyzerTC2 = cms.EDAnalyzer("PatBTagAnalyzer",
0041 BJetOperatingPointsParameters,
0042 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0043 BjetTag = cms.PSet(
0044 verbose = cms.untracked.bool(True),
0045 tagger = cms.untracked.string('TC2'),
0046 purity = cms.string('Loose'),
0047 discriminator = cms.string('trackCountingHighEffBJetTags'),
0048 maxdiscriminatorcut = cms.untracked.double(30.0),
0049 mindiscriminatorcut = cms.untracked.double(-10.0)
0050 )
0051 )
0052
0053
0054 process.PatBTagAnalyzerTC3 = cms.EDAnalyzer("PatBTagAnalyzer",
0055 BJetOperatingPointsParameters,
0056 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0057 BjetTag = cms.PSet(
0058 verbose = cms.untracked.bool(False),
0059 tagger = cms.untracked.string('TC3'),
0060 purity = cms.string('Loose'),
0061 discriminator = cms.string('trackCountingHighPurBJetTags'),
0062 maxdiscriminatorcut = cms.untracked.double(30.0),
0063 mindiscriminatorcut = cms.untracked.double(-10.0)
0064 )
0065 )
0066
0067 process.PatBTagAnalyzerTP = cms.EDAnalyzer("PatBTagAnalyzer",
0068 BJetOperatingPointsParameters,
0069 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0070 BjetTag = cms.PSet(
0071 verbose = cms.untracked.bool(False),
0072 tagger = cms.untracked.string('TP'),
0073 purity = cms.string('Loose'),
0074 discriminator = cms.string('jetProbabilityBJetTags'),
0075 maxdiscriminatorcut = cms.untracked.double(2.6),
0076 mindiscriminatorcut = cms.untracked.double(-0.1)
0077 )
0078 )
0079
0080 process.PatBTagAnalyzerBTP = cms.EDAnalyzer("PatBTagAnalyzer",
0081 BJetOperatingPointsParameters,
0082 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0083 BjetTag = cms.PSet(
0084 verbose = cms.untracked.bool(False),
0085 tagger = cms.untracked.string('BTP'),
0086 purity = cms.string('Loose'),
0087 discriminator = cms.string('jetBProbabilityBJetTags'),
0088 maxdiscriminatorcut = cms.untracked.double(8.1),
0089 mindiscriminatorcut = cms.untracked.double(-0.1)
0090 )
0091 )
0092 process.PatBTagAnalyzerSSV = cms.EDAnalyzer("PatBTagAnalyzer",
0093 BJetOperatingPointsParameters,
0094 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0095 BjetTag = cms.PSet(
0096 verbose = cms.untracked.bool(False),
0097 tagger = cms.untracked.string('SSV'),
0098 purity = cms.string('Loose'),
0099 discriminator = cms.string('simpleSecondaryVertexBJetTags'),
0100 maxdiscriminatorcut = cms.untracked.double(8.0),
0101 mindiscriminatorcut = cms.untracked.double(0.0)
0102 )
0103 )
0104
0105 process.PatBTagAnalyzerCSV = cms.EDAnalyzer("PatBTagAnalyzer",
0106 BJetOperatingPointsParameters,
0107 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0108 BjetTag = cms.PSet(
0109 verbose = cms.untracked.bool(False),
0110 tagger = cms.untracked.string('CSV'),
0111 purity = cms.string('Loose'),
0112 discriminator = cms.string('combinedSecondaryVertexBJetTags'),
0113 maxdiscriminatorcut = cms.untracked.double(1.1),
0114 mindiscriminatorcut = cms.untracked.double(-0.1)
0115 )
0116 )
0117
0118 process.PatBTagAnalyzerMSV = cms.EDAnalyzer("PatBTagAnalyzer",
0119 BJetOperatingPointsParameters,
0120 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0121 BjetTag = cms.PSet(
0122 verbose = cms.untracked.bool(False),
0123 tagger = cms.untracked.string('MSV'),
0124 purity = cms.string('Loose'),
0125 discriminator = cms.string('combinedSecondaryVertexMVABJetTags'),
0126 maxdiscriminatorcut = cms.untracked.double(1.1),
0127 mindiscriminatorcut = cms.untracked.double(-0.1)
0128 )
0129 )
0130
0131 process.PatBTagAnalyzerIPM = cms.EDAnalyzer("PatBTagAnalyzer",
0132 BJetOperatingPointsParameters,
0133 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0134 BjetTag = cms.PSet(
0135 verbose = cms.untracked.bool(False),
0136 tagger = cms.untracked.string('IPM'),
0137 purity = cms.string('Loose'),
0138 discriminator = cms.string('impactParameterMVABJetTags'),
0139 maxdiscriminatorcut = cms.untracked.double(1.1),
0140 mindiscriminatorcut = cms.untracked.double(-0.1)
0141 )
0142 )
0143
0144 process.PatBTagAnalyzerSET = cms.EDAnalyzer("PatBTagAnalyzer",
0145 BJetOperatingPointsParameters,
0146 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0147 BjetTag = cms.PSet(
0148 verbose = cms.untracked.bool(False),
0149 tagger = cms.untracked.string('SET'),
0150 purity = cms.string('Loose'),
0151 discriminator = cms.string('softElectronBJetTags'),
0152 maxdiscriminatorcut = cms.untracked.double(1.1),
0153 mindiscriminatorcut = cms.untracked.double(-0.1)
0154 )
0155 )
0156
0157 process.PatBTagAnalyzerSMT = cms.EDAnalyzer("PatBTagAnalyzer",
0158 BJetOperatingPointsParameters,
0159 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0160 BjetTag = cms.PSet(
0161 verbose = cms.untracked.bool(False),
0162 tagger = cms.untracked.string('SMT'),
0163 purity = cms.string('Loose'),
0164 discriminator = cms.string('softMuonBJetTags'),
0165 maxdiscriminatorcut = cms.untracked.double(1.1),
0166 mindiscriminatorcut = cms.untracked.double(-0.1)
0167 )
0168 )
0169
0170 process.PatBTagAnalyzerSMNIPT = cms.EDAnalyzer("PatBTagAnalyzer",
0171 BJetOperatingPointsParameters,
0172 jetTag = cms.untracked.InputTag("selectedLayer1Jets"),
0173 BjetTag = cms.PSet(
0174 verbose = cms.untracked.bool(False),
0175 tagger = cms.untracked.string('SMNIPT'),
0176 purity = cms.string('Loose'),
0177 discriminator = cms.string('softMuonNoIPBJetTags'),
0178 maxdiscriminatorcut = cms.untracked.double(1.1),
0179 mindiscriminatorcut = cms.untracked.double(-0.1)
0180 )
0181 )
0182
0183
0184 process.p = cms.Path(
0185 process.patLayer0 *
0186 process.patLayer1 *
0187 process.PatBTagAnalyzerTC2 *
0188 process.PatBTagAnalyzerTC3 *
0189 process.PatBTagAnalyzerBTP *
0190 process.PatBTagAnalyzerSSV *
0191 process.PatBTagAnalyzerCSV *
0192 process.PatBTagAnalyzerMSV *
0193 process.PatBTagAnalyzerIPM *
0194 process.PatBTagAnalyzerSET *
0195 process.PatBTagAnalyzerSMT *
0196 process.PatBTagAnalyzerSMNIPT *
0197 process.PatBTagAnalyzerTP
0198 )
0199