Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:44

0001 # Auto generated configuration file
0002 # using:
0003 # Revision: 1.19
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
0005 # with command line options: debug --no_exec --conditions auto:run2_mc_25ns14e33_v4 -s DIGI:pdigi_valid,L1,DIGI2RAW,RAW2DIGI --datatier GEN-SIM-DIGI-RAW-HLTDEBUG -n 10 --era Run2_25ns --eventcontent FEVTDEBUGHLT --filein filelist:step1_dasquery.log --fileout file:step2.root
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 
0009 #from Configuration.Eras.Era_Run2_25ns_cff import Run2_25ns
0010 #process = cms.Process('L1SEQS',Run2_25ns)
0011 from Configuration.Eras.Era_Run2_2016_cff import Run2_2016
0012 process = cms.Process('HLT',Run2_2016)
0013 
0014 
0015 # import of standard configurations
0016 process.load('Configuration.StandardSequences.Services_cff')
0017 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0018 process.load('FWCore.MessageService.MessageLogger_cfi')
0019 process.load('Configuration.EventContent.EventContent_cff')
0020 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0021 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0022 process.load('Configuration.StandardSequences.MagneticField_cff')
0023 process.load('Configuration.StandardSequences.Digi_cff')
0024 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0025 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0026 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0027 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0028 
0029 #process.MessageLogger = cms.Service(
0030 #    "MessageLogger",
0031 #    destinations = cms.untracked.vstring('l1tdebug','cerr'),
0032 #    l1tdebug = cms.untracked.PSet(threshold = cms.untracked.string('DEBUG')),
0033 #    cerr = cms.untracked.PSet(threshold  = cms.untracked.string('WARNING')),
0034 #    debugModules = cms.untracked.vstring('*'))
0035 
0036 
0037 process.MessageLogger = cms.Service("MessageLogger",
0038     cerr = cms.untracked.PSet(
0039         enable = cms.untracked.bool(False)
0040     ),
0041     debugModules = cms.untracked.vstring(
0042         'hltL1TSeed', 
0043         'hltTriggerSummaryRAW'
0044     ),
0045     files = cms.untracked.PSet(
0046         critical = cms.untracked.PSet(
0047 
0048         ),
0049         detailedInfo = cms.untracked.PSet(
0050             threshold = cms.untracked.string('DEBUG')
0051         )
0052     )
0053 )
0054 
0055 #
0056 # LOCAL CONDITIONS NEEDED FOR RE-EMULATION OF GT
0057 #
0058 
0059 from L1Trigger.L1TGlobal.GlobalParameters_cff import *
0060 from L1Trigger.L1TGlobal.TriggerMenu_cff import *
0061 TriggerMenu.L1TriggerMenuFile = cms.string('L1Menu_Collisions2015_25nsStage1_v7_uGT.xml')
0062 
0063 
0064 # ####################################################
0065 # BEGIN L1T UNPACKER-EMULTATOR SEQUENCE FOR STAGE 2
0066 #
0067 
0068 process.hltGtStage2Digis = cms.EDProducer(
0069     "L1TRawToDigi",
0070     Setup           = cms.string("stage2::GTSetup"),
0071     FedIds          = cms.vint32( 1404 ),
0072 )
0073 
0074 process.hltCaloStage2Digis = cms.EDProducer(
0075     "L1TRawToDigi",
0076     Setup           = cms.string("stage2::CaloSetup"),
0077     FedIds          = cms.vint32( 1360, 1366 ),
0078 )
0079 
0080 process.hltGmtStage2Digis = cms.EDProducer(
0081     "L1TRawToDigi",
0082     Setup = cms.string("stage2::GMTSetup"),
0083     FedIds = cms.vint32(1402),
0084 )
0085 
0086 process.hltGtStage2ObjectMap = cms.EDProducer("L1TGlobalProducer",
0087     MuonInputTag = cms.InputTag("hltGmtStage2Digis","Muon"),
0088     ExtInputTag = cms.InputTag("hltGtStage2Digis"), # (external conditions are not emulated, use unpacked)
0089     EtSumInputTag = cms.InputTag("hltCaloStage2Digis", "EtSum"),
0090     EGammaInputTag = cms.InputTag("hltCaloStage2Digis", "EGamma"),
0091     TauInputTag = cms.InputTag("hltCaloStage2Digis", "Tau"),
0092     JetInputTag = cms.InputTag("hltCaloStage2Digis", "Jet"),
0093     AlgorithmTriggersUnprescaled = cms.bool(True),
0094     AlgorithmTriggersUnmasked = cms.bool(True),
0095 )
0096 
0097 process.HLTL1UnpackerSequence = cms.Sequence(
0098  process.hltGtStage2Digis +
0099  process.hltCaloStage2Digis +
0100  process.hltGmtStage2Digis +
0101  process.hltGtStage2ObjectMap)
0102 
0103 #
0104 # END L1T UNPACKER-EMULATOR SEQUENCE FOR STAGE 2
0105 # ####################################################
0106 
0107 
0108 # ####################################################
0109 # BEGIN HLT SEED SEQUENCE FOR STAGE 2
0110 #
0111 process.hltL1TSeed = cms.EDFilter( "HLTL1TSeed",
0112     L1SeedsLogicalExpression = cms.string( "L1_SingleS1Jet36 OR L1_SingleEG10 OR L1_ETT40 OR L1_ETM30 OR L1_HTT100" ),
0113     saveTags = cms.bool( True ),
0114     L1ObjectMapInputTag  = cms.InputTag("hltGtStage2ObjectMap"),
0115     L1GlobalInputTag     = cms.InputTag("hltGtStage2Digis"),
0116     L1MuonInputTag       = cms.InputTag("hltGmtStage2Digis","Muon"),
0117     L1EGammaInputTag     = cms.InputTag("hltCaloStage2Digis","EGamma"),
0118     L1JetInputTag        = cms.InputTag("hltCaloStage2Digis","Jet"),
0119     L1TauInputTag        = cms.InputTag("hltCaloStage2Digis","Tau"),
0120     L1EtSumInputTag      = cms.InputTag("hltCaloStage2Digis","EtSum"),
0121 )
0122 
0123 #process.hltTriggerSummaryAOD = cms.EDProducer( "TriggerSummaryProducerAOD",
0124     #processName = cms.string( "@" )
0125 #)
0126 process.hltTriggerSummaryRAW = cms.EDProducer( "TriggerSummaryProducerRAW",
0127     processName = cms.string( "@" )
0128 )
0129 process.HLTTesting  = cms.Sequence(
0130     process.hltL1TSeed +
0131     process.hltTriggerSummaryRAW
0132 )
0133 #
0134 # END HLT SEED SEQUENCE FOR STAGE 2
0135 # ####################################################
0136 # work-around for upstream problems with Calo packer/unpacker sequence, pending fix.
0137 process.hltL1TSeed.L1GlobalInputTag = cms.InputTag("simGtStage2Digis")
0138 process.hltL1TSeed.L1ObjectMapInputTag = cms.InputTag("simGtStage2Digis")
0139 
0140 # temp for testing
0141 # process.simGtStage2Digis.PrescaleSet = cms.uint32(4)
0142 #process.simGtStage2Digis.AlgorithmTriggersUnprescaled = cms.bool(False)
0143 
0144 
0145 
0146 
0147 process.maxEvents = cms.untracked.PSet(
0148     input = cms.untracked.int32(10)
0149 )
0150 
0151 # Input source
0152 process.source = cms.Source("PoolSource",
0153     dropDescendantsOfDroppedBranches = cms.untracked.bool(False),
0154 #     fileNames = cms.untracked.vstring('file:/afs/cern.ch/work/g/gflouris/public/SingleMuPt6180_noanti_10k_eta1.root'),
0155     fileNames = cms.untracked.vstring('/store/relval/CMSSW_7_6_0_pre7/RelValTTbar_13/GEN-SIM/76X_mcRun2_asymptotic_v9_realBS-v1/00000/0A812333-427C-E511-A80A-0025905964A2.root',
0156         '/store/relval/CMSSW_7_6_0_pre7/RelValTTbar_13/GEN-SIM/76X_mcRun2_asymptotic_v9_realBS-v1/00000/1E9D9F9B-467C-E511-85B6-0025905A6090.root',
0157         '/store/relval/CMSSW_7_6_0_pre7/RelValTTbar_13/GEN-SIM/76X_mcRun2_asymptotic_v9_realBS-v1/00000/AA4FBC07-3E7C-E511-B9FC-00261894386C.root',
0158         '/store/relval/CMSSW_7_6_0_pre7/RelValTTbar_13/GEN-SIM/76X_mcRun2_asymptotic_v9_realBS-v1/00000/E2072991-3E7C-E511-803D-002618943947.root',
0159         '/store/relval/CMSSW_7_6_0_pre7/RelValTTbar_13/GEN-SIM/76X_mcRun2_asymptotic_v9_realBS-v1/00000/FAE20D9D-467C-E511-AF39-0025905B85D8.root'),
0160     inputCommands = cms.untracked.vstring('keep *',
0161         'drop *_genParticles_*_*',
0162         'drop *_genParticlesForJets_*_*',
0163         'drop *_kt4GenJets_*_*',
0164         'drop *_kt6GenJets_*_*',
0165         'drop *_iterativeCone5GenJets_*_*',
0166         'drop *_ak4GenJets_*_*',
0167         'drop *_ak7GenJets_*_*',
0168         'drop *_ak8GenJets_*_*',
0169         'drop *_ak4GenJetsNoNu_*_*',
0170         'drop *_ak8GenJetsNoNu_*_*',
0171         'drop *_genCandidatesForMET_*_*',
0172         'drop *_genParticlesForMETAllVisible_*_*',
0173         'drop *_genMetCalo_*_*',
0174         'drop *_genMetCaloAndNonPrompt_*_*',
0175         'drop *_genMetTrue_*_*',
0176         'drop *_genMetIC5GenJs_*_*'),
0177     secondaryFileNames = cms.untracked.vstring()
0178 )
0179 
0180 process.options = cms.untracked.PSet(
0181 
0182 )
0183 
0184 # Production Info
0185 process.configurationMetadata = cms.untracked.PSet(
0186     annotation = cms.untracked.string('debug nevts:10'),
0187     name = cms.untracked.string('Applications'),
0188     version = cms.untracked.string('$Revision: 1.19 $')
0189 )
0190 
0191 # Output definition
0192 
0193 process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0194     dataset = cms.untracked.PSet(
0195         dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW-HLTDEBUG'),
0196         filterName = cms.untracked.string('')
0197     ),
0198     eventAutoFlushCompressedSize = cms.untracked.int32(1048576),
0199     fileName = cms.untracked.string('file:step2.root'),
0200     outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0201     splitLevel = cms.untracked.int32(0)
0202 )
0203 
0204 # Additional output definition
0205 
0206 # Other statements
0207 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0208 from Configuration.AlCa.GlobalTag import GlobalTag
0209 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0210 
0211 # Path and EndPath definitions
0212 process.digitisation_step = cms.Path(process.pdigi_valid)
0213 process.L1simulation_step = cms.Path(process.SimL1Emulator)
0214 process.digi2raw_step = cms.Path(process.DigiToRaw)
0215 process.hlt_step = cms.Path(process.HLTL1UnpackerSequence)
0216 process.hlt_step2 = cms.Path(process.HLTTesting)
0217 process.endjob_step = cms.EndPath(process.endOfProcess)
0218 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0219 
0220 # additional tests:
0221 process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
0222 process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")
0223 process.load('L1Trigger.L1TCommon.l1tSummaryStage2SimDigis_cfi')
0224 process.load('L1Trigger.L1TCommon.l1tSummaryStage2HltDigis_cfi')
0225 
0226 process.debug_step = cms.Path(
0227     process.dumpES +
0228     process.dumpED +
0229     process.l1tSummaryStage2SimDigis +
0230     process.l1tSummaryStage2HltDigis
0231 )
0232 
0233 # Schedule definition
0234 process.schedule = cms.Schedule(process.digitisation_step,process.L1simulation_step,process.digi2raw_step,process.hlt_step,process.hlt_step2,process.debug_step,process.endjob_step,process.FEVTDEBUGHLToutput_step)
0235 
0236 #print "L1T Emulation Sequence is:  "
0237 #print process.SimL1Emulator
0238 #print "L1T DigiToRaw Sequence is:  "
0239 #print process.L1TDigiToRaw
0240 #print "L1T RawToDigi Sequence is:  "
0241 #print process.L1TRawToDigi
0242 #print "L1T Reco Sequence is:  "
0243 #print process.L1Reco
0244 #print "DigiToRaw is:  "
0245 #print process.DigiToRaw