Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-30 04:06:14

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(6000) )
0013 
0014 process.load("FWCore.MessageService.MessageLogger_cfi")
0015 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0016 
0017 
0018 # using: CMSSW_12_3_0_pre4__fullsim_noPU_2021_14TeV-TTbar_14TeV-00001
0019 process.source = cms.Source("PoolSource",
0020     #fileNames = cms.untracked.vstring("root://cmsxrootd.fnal.gov//store/mc/RunIISummer20UL18RECO/TTToSemiLeptonic_TuneCP5_13TeV-powheg-pythia8/AODSIM/106X_upgrade2018_realistic_v11_L1v1-v2/00000/B4A06248-D09E-314A-ACD7-F157B86109E6.root")
0021     fileNames = cms.untracked.vstring(
0022     "root://cmsxrootd.fnal.gov//store/relval/CMSSW_12_3_0_pre4/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/123X_mcRun3_2021_realistic_v4-v1/2580000/07f08321-b24c-4397-b019-18c8ba54696c.root",
0023     "root://cmsxrootd.fnal.gov//store/relval/CMSSW_12_3_0_pre4/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/123X_mcRun3_2021_realistic_v4-v1/2580000/22cc5971-134c-4a49-94b6-a3f96de01d94.root",
0024     "root://cmsxrootd.fnal.gov//store/relval/CMSSW_12_3_0_pre4/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/123X_mcRun3_2021_realistic_v4-v1/2580000/2d20a2a4-b411-4124-bf1d-93db155b76e8.root",
0025     "root://cmsxrootd.fnal.gov//store/relval/CMSSW_12_3_0_pre4/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/123X_mcRun3_2021_realistic_v4-v1/2580000/5f762599-4ddb-4c5f-8975-0229b54cae07.root",
0026     "root://cmsxrootd.fnal.gov//store/relval/CMSSW_12_3_0_pre4/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/123X_mcRun3_2021_realistic_v4-v1/2580000/7964789d-c81b-4927-abaf-73acbd202abc.root",
0027     "root://cmsxrootd.fnal.gov//store/relval/CMSSW_12_3_0_pre4/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/123X_mcRun3_2021_realistic_v4-v1/2580000/9cfca190-28f6-43af-b300-e3af7dbbfdd2.root",
0028     "root://cmsxrootd.fnal.gov//store/relval/CMSSW_12_3_0_pre4/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/123X_mcRun3_2021_realistic_v4-v1/2580000/d22883fe-df35-48f3-ad2b-dbad44c8eaa4.root",
0029     "root://cmsxrootd.fnal.gov//store/relval/CMSSW_12_3_0_pre4/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/123X_mcRun3_2021_realistic_v4-v1/2580000/f8ee9482-41e8-4126-ae00-bf07ef019d66.root",
0030     "root://cmsxrootd.fnal.gov//store/relval/CMSSW_12_3_0_pre4/RelValTTbar_14TeV/GEN-SIM-DIGI-RAW/123X_mcRun3_2021_realistic_v4-v1/2580000/fe617389-a652-418d-b24e-55ea0ccacd7e.root",
0031     )
0032 )
0033 
0034 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)
0035 ptBinsHT=cms.vdouble(0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950, 1000, 1050, 1100, 1150, 1200, 1300)
0036 ptBinsJet=cms.vdouble(0, 100, 200, 300, 350, 375, 400, 425, 450, 475, 500, 550, 600, 700, 800, 900, 1000)
0037 etaBins=cms.vdouble(-4,-3, -2.5, -2, -1.5, -1, -0.5, 0, 0.5, 1, 1.5, 2, 2.5, 3, 4)
0038 
0039 etaCut=cms.PSet(
0040     rangeVar=cms.string("eta"),
0041     allowedRanges=cms.vstring("-2.4:2.4")
0042 )
0043 ptCut=cms.PSet(
0044     rangeVar=cms.string("pt"),
0045     allowedRanges=cms.vstring("40:9999")
0046 )
0047 
0048 process.HLTGenValSourceHT = cms.EDProducer('HLTGenValSource',
0049     # these are the only one the user needs to specify
0050     objType = cms.string("AK4HT"),
0051     hltPathsToCheck = cms.vstring(
0052       "HLT_PFHT1050_v",
0053     ),
0054     doOnlyLastFilter = cms.bool(False),
0055     histConfigs = cms.VPSet(
0056         cms.PSet(
0057             vsVar = cms.string("pt"),
0058             binLowEdges = ptBinsHT,
0059         ),
0060         cms.PSet(
0061             vsVar = cms.string("eta"),
0062             binLowEdges = etaBins,
0063         ),
0064     ),
0065 )
0066 
0067 process.HLTGenValSourceHT = cms.EDProducer('HLTGenValSource',
0068     # these are the only one the user needs to specify
0069     objType = cms.string("AK8HT"),
0070     hltPathsToCheck = cms.vstring(
0071       "HLT_AK8PFHT800_TrimMass50"
0072     ),
0073     doOnlyLastFilter = cms.bool(False),
0074     histConfigs = cms.VPSet(
0075         cms.PSet(
0076             vsVar = cms.string("pt"),
0077             binLowEdges = ptBinsHT,
0078         ),
0079         cms.PSet(
0080             vsVar = cms.string("eta"),
0081             binLowEdges = etaBins,
0082         ),
0083     ),
0084 )
0085 
0086 
0087 process.HLTGenValSourceMU = cms.EDProducer('HLTGenValSource',
0088     # these are the only one the user needs to specify
0089     objType = cms.string("mu"),
0090     hltPathsToCheck = cms.vstring(
0091       "HLT_Mu50_v:absEtaCut=1.2",
0092       "HLT_IsoMu24_v"
0093     ),
0094     doOnlyLastFilter = cms.bool(False),
0095     histConfigs = cms.VPSet(
0096         cms.PSet(
0097             vsVar = cms.string("pt"),
0098             binLowEdges = ptBins,
0099             rangeCuts = cms.VPSet(etaCut)
0100         ),
0101         cms.PSet(
0102             vsVar = cms.string("eta"),
0103             binLowEdges = etaBins,
0104         ),
0105     ),
0106 )
0107 
0108 process.HLTGenValSourceELE = cms.EDProducer('HLTGenValSource',
0109     # these are the only one the user needs to specify
0110     objType = cms.string("ele"),
0111     hltPathsToCheck = cms.vstring(
0112       "HLT_Ele35_WPTight_Gsf_v",
0113       "HLT_Ele35_WPTight_Gsf_v:bins=ptBinsJet",
0114       "HLT_Ele115_CaloIdVT_GsfTrkIdT_v:region=EB",
0115       "HLT_Ele115_CaloIdVT_GsfTrkIdT_v:region=EE",
0116       "HLT_Photon200_v"
0117     ),
0118     binnings = cms.VPSet(
0119         cms.PSet(
0120             name = cms.string("ptBinsJet"),
0121             vsVar = cms.string("pt"),
0122             binLowEdges = ptBinsJet
0123         )
0124     ),
0125     doOnlyLastFilter = cms.bool(False),
0126     histConfigs = cms.VPSet(
0127         cms.PSet(
0128             vsVar = cms.string("pt"),
0129             binLowEdges = ptBins,
0130             rangeCuts = cms.VPSet(etaCut)
0131         ),
0132         cms.PSet(
0133             vsVar = cms.string("eta"),
0134             binLowEdges = etaBins,
0135         ),
0136     ),
0137 )
0138 
0139 process.HLTGenValSourceAK4 = cms.EDProducer('HLTGenValSource',
0140     # these are the only one the user needs to specify
0141     objType = cms.string("AK4jet"),
0142     hltPathsToCheck = cms.vstring(
0143       "HLT_PFJet500",
0144     ),
0145     doOnlyLastFilter = cms.bool(False),
0146     histConfigs = cms.VPSet(
0147         cms.PSet(
0148             vsVar = cms.string("pt"),
0149             binLowEdges = ptBinsJet,
0150             rangeCuts = cms.VPSet(etaCut)
0151         ),
0152         cms.PSet(
0153             vsVar = cms.string("eta"),
0154             binLowEdges = etaBins,
0155         ),
0156     ),
0157 )
0158 
0159 process.HLTGenValSourceAK8 = cms.EDProducer('HLTGenValSource',
0160     # these are the only one the user needs to specify
0161     objType = cms.string("AK8jet"),
0162     hltPathsToCheck = cms.vstring(
0163       "HLT_AK8PFJet500",
0164       "HLT_AK8PFJet400_TrimMass30",
0165     ),
0166     doOnlyLastFilter = cms.bool(False),
0167     histConfigs = cms.VPSet(
0168         cms.PSet(
0169             vsVar = cms.string("pt"),
0170             binLowEdges = ptBinsJet,
0171             rangeCuts = cms.VPSet(etaCut)
0172         ),
0173         cms.PSet(
0174             vsVar = cms.string("eta"),
0175             binLowEdges = etaBins,
0176         ),
0177     ),
0178 )
0179 
0180 process.HLTGenValSourceMET = cms.EDProducer('HLTGenValSource',
0181     # these are the only one the user needs to specify
0182     objType = cms.string("MET"),
0183     hltPathsToCheck = cms.vstring(
0184       "HLT_PFMET120_PFMHT120_IDTight",
0185     ),
0186     doOnlyLastFilter = cms.bool(False),
0187     histConfigs = cms.VPSet(
0188         cms.PSet(
0189             vsVar = cms.string("pt"),
0190             binLowEdges = ptBins,
0191             rangeCuts = cms.VPSet(etaCut)
0192         ),
0193         cms.PSet(
0194             vsVar = cms.string("eta"),
0195             binLowEdges = etaBins,
0196         ),
0197     ),
0198 )
0199 
0200 process.p = cms.Path(
0201         process.HLTGenValSourceMU *
0202         process.HLTGenValSourceELE *
0203         process.HLTGenValSourceHT *
0204         process.HLTGenValSourceAK4 *
0205         process.HLTGenValSourceAK8
0206         #process.HLTGenValSourceMET
0207         )
0208 
0209 # the harvester
0210 process.harvester = DQMEDHarvester("HLTGenValClient",
0211     outputFileName = cms.untracked.string('output.root'),
0212     subDirs        = cms.untracked.vstring("HLTGenVal"),
0213 )
0214 
0215 process.outpath = cms.EndPath(process.harvester)