Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:28

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('L1SEQS',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 # LOCAL CONDITIONS NEEDED FOR RE-EMULATION OF GT
0038 #
0039 
0040 from L1Trigger.L1TGlobal.GlobalParameters_cff import *
0041 from L1Trigger.L1TGlobal.TriggerMenu_cff import *
0042 TriggerMenu.L1TriggerMenuFile = cms.string('L1Menu_Collisions2015_25nsStage1_v7_uGT.xml')
0043 
0044 #
0045 # BEGIN HLT UNPACKER SEQUENCE FOR STAGE 2
0046 #
0047 
0048 process.hltGtStage2Digis = cms.EDProducer(
0049     "L1TRawToDigi",
0050     Setup           = cms.string("stage2::GTSetup"),
0051     FedIds          = cms.vint32( 1404 ),
0052 )
0053 
0054 process.hltCaloStage2Digis = cms.EDProducer(
0055     "L1TRawToDigi",
0056     Setup           = cms.string("stage2::CaloSetup"),
0057     FedIds          = cms.vint32( 1360, 1366 ),
0058 )
0059 
0060 process.hltGmtStage2Digis = cms.EDProducer(
0061     "L1TRawToDigi",
0062     Setup = cms.string("stage2::GMTSetup"),
0063     FedIds = cms.vint32(1402),
0064 )
0065 
0066 process.hltGtStage2ObjectMap = cms.EDProducer("L1TGlobalProducer",
0067     MuonInputTag = cms.InputTag("hltGmtStage2Digis", "Muon"),
0068     ExtInputTag = cms.InputTag("hltGtStage2Digis"), # (external conditions are not emulated, use unpacked)
0069     EtSumInputTag = cms.InputTag("hltCaloStage2Digis", "EtSum"),
0070     EGammaInputTag = cms.InputTag("hltCaloStage2Digis", "EGamma"),
0071     TauInputTag = cms.InputTag("hltCaloStage2Digis", "Tau"),
0072     JetInputTag = cms.InputTag("hltCaloStage2Digis", "Jet"),
0073     AlgorithmTriggersUnprescaled = cms.bool(True),
0074     AlgorithmTriggersUnmasked = cms.bool(True),
0075 )
0076 
0077 process.HLTL1UnpackerSequence = cms.Sequence(
0078  process.hltGtStage2Digis +
0079  process.hltCaloStage2Digis +
0080  process.hltGmtStage2Digis +
0081  process.hltGtStage2ObjectMap
0082 )
0083 
0084 #
0085 # END HLT UNPACKER SEQUENCE FOR STAGE 2
0086 #
0087 
0088 #
0089 # BEGIN L1T SEEDS EXAMPLE FOR STAGE 2
0090 #
0091 
0092 
0093 process.hltL1TSeed = cms.EDFilter( "HLTL1TSeed",
0094     L1SeedsLogicalExpression = cms.string( "L1_SingleS1Jet36 AND L1_SingleEG10" ),
0095     SaveTags             = cms.bool( True ),
0096     L1ObjectMapInputTag  = cms.InputTag("hltGtStage2ObjectMap"),
0097     L1GlobalInputTag     = cms.InputTag("hltGtStage2Digis"),
0098     L1MuonInputTag       = cms.InputTag("hltGmtStage2Digis","Muon"),
0099     L1EGammaInputTag     = cms.InputTag("hltCaloStage2Digis","EGamma"),
0100     L1JetInputTag        = cms.InputTag("hltCaloStage2Digis","Jet"),
0101     L1TauInputTag        = cms.InputTag("hltCaloStage2Digis","Tau"),
0102     L1EtSumInputTag      = cms.InputTag("hltCaloStage2Digis","EtSum"),
0103 )
0104 
0105 # HLT testing sequence
0106 process.HLTTesting  = cms.Sequence(
0107     process.hltL1TSeed
0108 )
0109 
0110 #
0111 # END L1T SEEDS EXAMPLE FOR STAGE 2
0112 #
0113 
0114 process.maxEvents = cms.untracked.PSet(
0115     input = cms.untracked.int32(10)
0116 )
0117 
0118 # Input source
0119 process.source = cms.Source("PoolSource",
0120     dropDescendantsOfDroppedBranches = cms.untracked.bool(False),
0121 #     fileNames = cms.untracked.vstring('file:/afs/cern.ch/work/g/gflouris/public/SingleMuPt6180_noanti_10k_eta1.root'),
0122     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',
0123         '/store/relval/CMSSW_7_6_0_pre7/RelValTTbar_13/GEN-SIM/76X_mcRun2_asymptotic_v9_realBS-v1/00000/1E9D9F9B-467C-E511-85B6-0025905A6090.root',
0124         '/store/relval/CMSSW_7_6_0_pre7/RelValTTbar_13/GEN-SIM/76X_mcRun2_asymptotic_v9_realBS-v1/00000/AA4FBC07-3E7C-E511-B9FC-00261894386C.root',
0125         '/store/relval/CMSSW_7_6_0_pre7/RelValTTbar_13/GEN-SIM/76X_mcRun2_asymptotic_v9_realBS-v1/00000/E2072991-3E7C-E511-803D-002618943947.root',
0126         '/store/relval/CMSSW_7_6_0_pre7/RelValTTbar_13/GEN-SIM/76X_mcRun2_asymptotic_v9_realBS-v1/00000/FAE20D9D-467C-E511-AF39-0025905B85D8.root'),
0127     inputCommands = cms.untracked.vstring('keep *',
0128         'drop *_genParticles_*_*',
0129         'drop *_genParticlesForJets_*_*',
0130         'drop *_kt4GenJets_*_*',
0131         'drop *_kt6GenJets_*_*',
0132         'drop *_iterativeCone5GenJets_*_*',
0133         'drop *_ak4GenJets_*_*',
0134         'drop *_ak7GenJets_*_*',
0135         'drop *_ak8GenJets_*_*',
0136         'drop *_ak4GenJetsNoNu_*_*',
0137         'drop *_ak8GenJetsNoNu_*_*',
0138         'drop *_genCandidatesForMET_*_*',
0139         'drop *_genParticlesForMETAllVisible_*_*',
0140         'drop *_genMetCalo_*_*',
0141         'drop *_genMetCaloAndNonPrompt_*_*',
0142         'drop *_genMetTrue_*_*',
0143         'drop *_genMetIC5GenJs_*_*'),
0144     secondaryFileNames = cms.untracked.vstring()
0145 )
0146 
0147 process.options = cms.untracked.PSet(
0148 
0149 )
0150 
0151 # Production Info
0152 process.configurationMetadata = cms.untracked.PSet(
0153     annotation = cms.untracked.string('debug nevts:10'),
0154     name = cms.untracked.string('Applications'),
0155     version = cms.untracked.string('$Revision: 1.19 $')
0156 )
0157 
0158 # Output definition
0159 
0160 process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0161     dataset = cms.untracked.PSet(
0162         dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW-HLTDEBUG'),
0163         filterName = cms.untracked.string('')
0164     ),
0165     eventAutoFlushCompressedSize = cms.untracked.int32(1048576),
0166     fileName = cms.untracked.string('file:step2.root'),
0167     outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0168     splitLevel = cms.untracked.int32(0)
0169 )
0170 
0171 # Additional output definition
0172 
0173 # Other statements
0174 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0175 from Configuration.AlCa.GlobalTag import GlobalTag
0176 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0177 
0178 # Path and EndPath definitions
0179 process.digitisation_step = cms.Path(process.pdigi_valid)
0180 process.L1simulation_step = cms.Path(process.SimL1Emulator)
0181 process.digi2raw_step = cms.Path(process.DigiToRaw)
0182 process.hlt_step = cms.Path(process.HLTL1UnpackerSequence)
0183 process.hlt_step2 = cms.Path(process.HLTTesting)
0184 process.endjob_step = cms.EndPath(process.endOfProcess)
0185 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0186 
0187 # additional tests:
0188 process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
0189 process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")
0190 process.load('L1Trigger.L1TCommon.l1tSummaryStage2SimDigis_cfi')
0191 process.load('L1Trigger.L1TCommon.l1tSummaryStage2HltDigis_cfi')
0192 
0193 process.debug_step = cms.Path(
0194     process.dumpES +
0195 #    process.dumpES +
0196     process.dumpED +
0197     process.l1tSummaryStage2SimDigis +
0198     process.l1tSummaryStage2HltDigis
0199 )
0200 
0201 # Schedule definition
0202 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)
0203 
0204 #print "L1T Emulation Sequence is:  "
0205 #print process.SimL1Emulator
0206 #print "L1T DigiToRaw Sequence is:  "
0207 #print process.L1TDigiToRaw
0208 #print "L1T RawToDigi Sequence is:  "
0209 #print process.L1TRawToDigi
0210 #print "L1T Reco Sequence is:  "
0211 #print process.L1Reco
0212 #print "DigiToRaw is:  "
0213 #print process.DigiToRaw