Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-23 10:17:42

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("HLTGenValSource")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.load("DQMServices.Core.DQM_cfg")
0007 process.load("DQMServices.Core.DQMStore_cfg")
0008 process.load("DQMServices.Components.DQMEnvironment_cfi")
0009 process.load("DQMServices.Components.MEtoEDMConverter_cff")
0010 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0011 
0012 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0013 
0014 process.load("FWCore.MessageService.MessageLogger_cfi")
0015 #process.MessageLogger.cerr.FwkReport.reportEvery = 100
0016 
0017 
0018 process.source = cms.Source("PoolSource",
0019     fileNames = cms.untracked.vstring(
0020         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/03a15a72-f9e3-4488-b0ca-3c9367d94e03.root",
0021         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/262f6750-5888-47c8-9ec1-89a6e19232a7.root",
0022         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/2ffe551c-6d4a-4852-9730-a2bb9c7aa1d3.root",
0023         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/37b3f169-2152-4485-80d7-cf415847712d.root",
0024         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/56ac8b93-2d72-4e30-b7fb-a82d70ae02b9.root",
0025         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/614a0f55-2502-4d27-90e3-b6cada9c25c5.root",
0026         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/678f6818-986e-4486-8c56-efbe080fca6a.root",
0027         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/6883cf9f-db51-4b54-9a87-2f35aa87c140.root",
0028         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/6b321170-7d05-4eab-84e5-a6b3bd244b41.root",
0029         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/7db7cf3d-01d5-4068-ae1e-5212a9acd2e2.root",
0030         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/8c3487e5-dc7c-45e6-955c-40972e7585dc.root",
0031         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/8ca081bf-b616-465a-a3a6-313a1f6323ed.root",
0032         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/8fe32e18-9e98-4cd7-96a8-9e8c2b8624f6.root",
0033         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/acbf7935-4c19-4618-888e-2bfb751e07a2.root",
0034         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/bd0c5382-f9ab-4299-815a-2c7d6c902fdd.root",
0035         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/c0c69b4c-c7f7-4023-8a21-1e0002672b19.root",
0036         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/ca441daf-c921-4276-be9b-20e5dc8d30c8.root",
0037         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/cb9cb297-5e11-4ae9-8b9f-be3b81043764.root",
0038         "/store/relval/CMSSW_14_1_0_pre2/RelValSMS-T1tttt_14TeV/GEN-SIM-RECO/140X_mcRun4_realistic_v3_STD_2026D98_noPU-v6/2580000/d906f6d6-fdb7-4a10-8c17-0f31b00d6140.root"
0039     )
0040 )
0041 
0042 ptBins = cms.vdouble(0, 10, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95 , 100, 105, 110, 115 , 120, 125, 130, 135, 140, 145, 150, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1500, 1700, 2000)
0043 ptBinsHT = cms.vdouble(0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950, 1000, 1050, 1100, 1150, 1200, 1300, 1300, 1500, 1700, 2000)
0044 ptBinsMET = cms.vdouble(0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1500, 1700, 2000)
0045 ptBinsJet = cms.vdouble(0, 100, 200, 300, 350, 375, 400, 425, 450, 475, 500, 550, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1500, 1700, 2000)
0046 etaBins = cms.vdouble(-4, -3, -2.5, -2, -1.5, -1, -0.5, 0, 0.5, 1, 1.5, 2, 2.5, 3, 4)
0047 
0048 etaCut = cms.PSet(
0049     rangeVar=cms.string("eta"),
0050     allowedRanges=cms.vstring("-2.4:2.4")
0051 )
0052 ptCut = cms.PSet(
0053     rangeVar=cms.string("pt"),
0054     allowedRanges=cms.vstring("40:9999")
0055 )
0056 
0057 hltProcessName = cms.string("HLT")
0058 doOnlyLastFilter = cms.bool(True)
0059 
0060 # Photons pass electron paths too
0061 # Hence the same sample can be used to validate both electrons and photons
0062 process.HLTGenValSourceELE = cms.EDProducer('HLTGenValSource',
0063     # these are the only one the user needs to specify
0064     objType = cms.string("ele"),
0065     hltProcessName = hltProcessName,
0066     hltPathsToCheck = cms.vstring(
0067         "HLT_DoubleEle23_12_Iso_L1Seeded",
0068         "HLT_DoubleEle25_CaloIdL_PMS2_L1Seeded",
0069         "HLT_DoubleEle25_CaloIdL_PMS2_Unseeded",
0070         "HLT_Ele115_NonIso_L1Seeded",
0071         "HLT_Ele26_WP70_L1Seeded",
0072         "HLT_Ele26_WP70_Unseeded",
0073         "HLT_Ele32_WPTight_L1Seeded",
0074         "HLT_Ele32_WPTight_Unseeded",
0075         "HLT_Diphoton30_23_IsoCaloId_L1Seeded",
0076         "HLT_Diphoton30_23_IsoCaloId_Unseeded",
0077         "HLT_Photon108EB_TightID_TightIso_L1Seeded",
0078         "HLT_Photon108EB_TightID_TightIso_Unseeded",
0079         "HLT_Photon187_L1Seeded",
0080         "HLT_Photon187_Unseeded"
0081     ),
0082     doOnlyLastFilter = doOnlyLastFilter,
0083     histConfigs = cms.VPSet(
0084         cms.PSet(
0085             vsVar = cms.string("pt"),
0086             binLowEdges = ptBins,
0087             rangeCuts = cms.VPSet(etaCut)
0088         ),
0089         cms.PSet(
0090             vsVar = cms.string("eta"),
0091             binLowEdges = etaBins
0092         ),
0093     ),
0094 )
0095 
0096 # To enable or not: TBD
0097 #process.HLTGenValSourcePHO = cms.EDProducer('HLTGenValSource',
0098 #    # these are the only one the user needs to specify
0099 #    objType = cms.string("pho"),
0100 #    hltProcessName = hltProcessName,
0101 #    hltPathsToCheck = cms.vstring(
0102 #        "HLT_Diphoton30_23_IsoCaloId_L1Seeded",
0103 #        "HLT_Diphoton30_23_IsoCaloId_Unseeded",
0104 #        "HLT_Photon108EB_TightID_TightIso_L1Seeded",
0105 #        "HLT_Photon108EB_TightID_TightIso_Unseeded",
0106 #        "HLT_Photon187_L1Seeded",
0107 #        "HLT_Photon187_Unseeded",
0108 #    ),
0109 #    doOnlyLastFilter = doOnlyLastFilter,
0110 #    histConfigs = cms.VPSet(
0111 #        cms.PSet(
0112 #            vsVar = cms.string("pt"),
0113 #            binLowEdges = ptBins,
0114 #            rangeCuts = cms.VPSet(etaCut)
0115 #        ),
0116 #        cms.PSet(
0117 #            vsVar = cms.string("eta"),
0118 #            binLowEdges = etaBins,
0119 #        ),
0120 #    ),
0121 #)
0122 
0123 process.HLTGenValSourceMU = cms.EDProducer('HLTGenValSource',
0124     # these are the only one the user needs to specify
0125     objType = cms.string("mu"),
0126     hltProcessName = hltProcessName,
0127     hltPathsToCheck = cms.vstring(
0128         "HLT_IsoMu24_FromL1TkMuon",
0129         "HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_FromL1TkMuon",
0130         "HLT_Mu37_Mu27_FromL1TkMuon",
0131         "HLT_Mu50_FromL1TkMuon",
0132         "HLT_TriMu_10_5_5_DZ_FromL1TkMuon"
0133     ),
0134     doOnlyLastFilter = doOnlyLastFilter,
0135     histConfigs = cms.VPSet(
0136         cms.PSet(
0137             vsVar = cms.string("pt"),
0138             binLowEdges = ptBins,
0139             rangeCuts = cms.VPSet(etaCut)
0140         ),
0141         cms.PSet(
0142             vsVar = cms.string("eta"),
0143             binLowEdges = etaBins
0144         ),
0145     ),
0146 )
0147 
0148 process.HLTGenValSourceTAU = cms.EDProducer('HLTGenValSource',
0149     # these are the only one the user needs to specify
0150     objType = cms.string("tau"),
0151     hltProcessName = hltProcessName,
0152     hltPathsToCheck = cms.vstring(
0153         "HLT_DoubleMediumChargedIsoPFTauHPS40_eta2p1",
0154         "HLT_DoubleMediumDeepTauPFTauHPS35_eta2p1"
0155     ),
0156     doOnlyLastFilter = doOnlyLastFilter,
0157     histConfigs = cms.VPSet(
0158         cms.PSet(
0159             vsVar = cms.string("pt"),
0160             binLowEdges = ptBins,
0161             rangeCuts = cms.VPSet(etaCut)
0162         ),
0163         cms.PSet(
0164             vsVar = cms.string("eta"),
0165             binLowEdges = etaBins
0166         ),
0167     ),
0168 )
0169 
0170 process.HLTGenValSourceJET = cms.EDProducer('HLTGenValSource',
0171     # these are the only one the user needs to specify
0172     objType = cms.string("AK4jet"),
0173     hltProcessName = hltProcessName,
0174     hltPathsToCheck = cms.vstring(
0175         "HLT_AK4PFPuppiJet520"
0176     ),
0177     inputCollections = cms.PSet(
0178         ak4GenJets = cms.InputTag("ak4GenJetsNoNu"),
0179     ),
0180     doOnlyLastFilter = doOnlyLastFilter,
0181     histConfigs = cms.VPSet(
0182         cms.PSet(
0183             vsVar = cms.string("pt"),
0184             binLowEdges = ptBinsJet
0185         ),
0186     ),
0187 )
0188 
0189 process.HLTGenValSourceHT = cms.EDProducer('HLTGenValSource',
0190     # these are the only one the user needs to specify
0191     objType = cms.string("AK4HT"),
0192     hltProcessName = hltProcessName,
0193     hltPathsToCheck = cms.vstring(
0194         "HLT_PFPuppiHT1070"
0195     ),
0196     inputCollections = cms.PSet(
0197         ak4GenJets = cms.InputTag("ak4GenJetsNoNu"),
0198     ),
0199     doOnlyLastFilter = doOnlyLastFilter,
0200     histConfigs = cms.VPSet(
0201         cms.PSet(
0202             vsVar = cms.string("pt"),
0203             binLowEdges = ptBinsHT
0204         ),
0205     ),
0206 )
0207 
0208 process.HLTGenValSourceMET = cms.EDProducer('HLTGenValSource',
0209     # these are the only one the user needs to specify
0210     objType = cms.string("MET"),
0211     hltProcessName = hltProcessName,
0212     hltPathsToCheck = cms.vstring(
0213         "HLT_PFPuppiMETTypeOne140_PFPuppiMHT140"
0214     ),
0215     doOnlyLastFilter = doOnlyLastFilter,
0216     histConfigs = cms.VPSet(
0217         cms.PSet(
0218             vsVar = cms.string("pt"),
0219             binLowEdges = ptBinsMET
0220         ),
0221     ),
0222 )
0223 
0224 
0225 
0226 process.p = cms.Path(
0227     process.HLTGenValSourceELE *
0228     #process.HLTGenValSourcePHO *
0229     process.HLTGenValSourceMU *
0230     process.HLTGenValSourceTAU *
0231     process.HLTGenValSourceJET *
0232     process.HLTGenValSourceHT *
0233     process.HLTGenValSourceMET
0234 )
0235 
0236 # the harvester
0237 process.harvester = DQMEDHarvester("HLTGenValClient",
0238     outputFileName = cms.untracked.string('Phase2_HLT_validation_output.root'),
0239     subDirs        = cms.untracked.vstring("HLTGenVal")
0240 )
0241 
0242 process.outpath = cms.EndPath(process.harvester)