Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:09

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: SingleElectronPt10_cfi.py -s GEN,SIM,DIGI,L1 --pileup=NoPileUp --geometry DB --conditions=auto:startup -n 1 --no_exec
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 import FWCore.ParameterSet.VarParsing as VarParsing
0009 options = VarParsing.VarParsing('analysis')
0010 options.register('skipEvents',
0011                  0,
0012                  VarParsing.VarParsing.multiplicity.singleton,
0013                  VarParsing.VarParsing.varType.int,
0014                  "Number of events to skip")
0015 options.register('dumpRaw',
0016                  False,
0017                  VarParsing.VarParsing.multiplicity.singleton,
0018                  VarParsing.VarParsing.varType.bool,
0019                  "Print RAW data")
0020 options.register('dumpDigis',
0021                  False,
0022                  VarParsing.VarParsing.multiplicity.singleton,
0023                  VarParsing.VarParsing.varType.bool,
0024                  "Print digis")
0025 options.register('histos',
0026                  False,
0027                  VarParsing.VarParsing.multiplicity.singleton,
0028                  VarParsing.VarParsing.varType.bool,
0029                  "Produce standard histograms")
0030 options.register('debug',
0031                  False,
0032                  VarParsing.VarParsing.multiplicity.singleton,
0033                  VarParsing.VarParsing.varType.bool,
0034                  "More verbose output")
0035 options.register('edm',
0036                  False,
0037                  VarParsing.VarParsing.multiplicity.singleton,
0038                  VarParsing.VarParsing.varType.bool,
0039                  "Produce EDM file")
0040 options.parseArguments()
0041 
0042 process = cms.Process('Digi2Raw2Digi')
0043 
0044 # import of standard configurations
0045 process.load('Configuration.StandardSequences.Services_cff')
0046 process.load('FWCore.MessageService.MessageLogger_cfi')
0047 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0048 process.load('Configuration.Geometry.GeometryDB_cff')
0049 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0050 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0051 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0052 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0053 
0054 process.source = cms.Source (
0055     "PoolSource",
0056     fileNames = cms.untracked.vstring (options.inputFiles),
0057     skipEvents=cms.untracked.uint32(options.skipEvents)
0058 )
0059 
0060 process.maxEvents = cms.untracked.PSet(
0061     input = cms.untracked.int32(options.maxEvents)
0062 )
0063 
0064 
0065 # Output definition
0066 process.output = cms.OutputModule(
0067     "PoolOutputModule",
0068     splitLevel = cms.untracked.int32(0),
0069     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0070     outputCommands = cms.untracked.vstring("keep *",
0071         "drop *_mix_*_*"),
0072     fileName = cms.untracked.string('L1T_PACK_stage1_EDM.root'),
0073     dataset = cms.untracked.PSet(
0074         filterName = cms.untracked.string(''),
0075         dataTier = cms.untracked.string('')
0076     )
0077 )
0078 
0079 # Additional output definition
0080 
0081 # Other statements
0082 from Configuration.AlCa.GlobalTag import GlobalTag
0083 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '')
0084 
0085 process.dumpRaw = cms.EDAnalyzer(
0086     "DumpFEDRawDataProduct",
0087     label = cms.untracked.string("caloStage1Raw"),
0088     feds = cms.untracked.vint32 ( 1352 ),
0089     dumpPayload = cms.untracked.bool ( options.dumpRaw )
0090 )
0091 
0092 # enable debug message logging for our modules
0093 process.MessageLogger = cms.Service(
0094     "MessageLogger",
0095     threshold  = cms.untracked.string('INFO'),
0096     categories = cms.untracked.vstring('L1T', 'L1TCaloEvents'),
0097 #    debugModules = cms.untracked.vstring(
0098 #        'mp7BufferDumpToRaw',
0099 #        'l1tDigis',
0100 #        'caloStage1Digis'
0101 #    )
0102 )
0103 
0104 
0105 # user stuff
0106 process.load('EventFilter.L1TRawToDigi.caloStage1Raw_cfi')
0107 process.load('EventFilter.L1TRawToDigi.caloStage1Digis_cfi')
0108 process.newCaloStage1Digis = process.caloStage1Digis.clone()
0109 process.newCaloStage1Digis.InputLabel = cms.InputTag('caloStage1Raw')
0110 process.newCaloStage1Digis.debug = cms.untracked.bool(options.debug)
0111 
0112 # Path and EndPath definitions
0113 process.path = cms.Path(
0114     process.caloStage1Raw
0115     +process.dumpRaw
0116     +process.newCaloStage1Digis
0117 )
0118 
0119 process.out = cms.EndPath(
0120     process.output
0121 )