Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('L1')
0004 
0005 # import of standard configurations
0006 process.load('Configuration.StandardSequences.Services_cff')
0007 process.load('FWCore.MessageService.MessageLogger_cfi')
0008 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0009 process.load('Configuration.Geometry.GeometryDB_cff')
0010 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0011 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0012 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0013 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0014 
0015 process.maxEvents = cms.untracked.PSet(
0016     input = cms.untracked.int32(1)
0017 )
0018 
0019 # Input source
0020 process.source = cms.Source(
0021         "PoolSource",
0022         fileNames = cms.untracked.vstring([
0023             "/store/data/Run2015A/MinimumBias/RAW/v1/000/247/215/00000/04D76DE1-3C0C-E511-9821-02163E011DD9.root",
0024             "/store/data/Run2015A/MinimumBias/RAW/v1/000/247/215/00000/2E9F5DD9-2B0C-E511-A51D-02163E01467B.root",
0025             "/store/data/Run2015A/MinimumBias/RAW/v1/000/247/215/00000/30634843-2F0C-E511-9AB3-02163E0144C3.root",
0026             "/store/data/Run2015A/MinimumBias/RAW/v1/000/247/215/00000/4825AFD3-2B0C-E511-93A8-02163E013496.root",
0027             "/store/data/Run2015A/MinimumBias/RAW/v1/000/247/215/00000/9ED5038A-2E0C-E511-B66B-02163E0144F1.root",
0028             "/store/data/Run2015A/MinimumBias/RAW/v1/000/247/215/00000/A826FAC5-3C0C-E511-A4CA-02163E013653.root",
0029             "/store/data/Run2015A/MinimumBias/RAW/v1/000/247/215/00000/AE2CA338-3D0C-E511-9547-02163E0143EB.root",
0030             "/store/data/Run2015A/MinimumBias/RAW/v1/000/247/215/00000/C81E3707-240C-E511-97CA-02163E01207D.root",
0031             "/store/data/Run2015A/MinimumBias/RAW/v1/000/247/215/00000/E66FC716-3D0C-E511-8F99-02163E014204.root"
0032         ]),
0033         eventsToProcess = cms.untracked.VEventRange('247215:1-247215:MAX')
0034 )
0035 
0036 process.options = cms.untracked.PSet(
0037     SkipEvent = cms.untracked.vstring('ProductNotFound')
0038 )
0039 
0040 
0041 # Output definition
0042 
0043 process.output = cms.OutputModule(
0044     "PoolOutputModule",
0045     splitLevel = cms.untracked.int32(0),
0046     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0047     outputCommands = cms.untracked.vstring("keep *",
0048                        "drop *_mix_*_*"),
0049     fileName = cms.untracked.string('L1T_EDM.root'),
0050     dataset = cms.untracked.PSet(
0051         filterName = cms.untracked.string(''),
0052         dataTier = cms.untracked.string('')
0053     )
0054 )
0055 
0056 # Additional output definition
0057 
0058 # Other statements
0059 from Configuration.AlCa.GlobalTag import GlobalTag
0060 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '')
0061 
0062 # enable debug message logging for our modules
0063 process.MessageLogger = cms.Service("MessageLogger",
0064     debugModules = cms.untracked.vstring('*'),
0065     threshold = cms.untracked.string('DEBUG')
0066 )
0067 
0068 # TTree output file
0069 process.load("CommonTools.UtilAlgos.TFileService_cfi")
0070 process.TFileService.fileName = cms.string('l1t.root')
0071 
0072 
0073 # user stuff
0074 
0075 # raw data from MP card
0076 # process.load('EventFilter.L1TRawToDigi.amc13DumpToRaw_cfi')
0077 # process.amc13DumpToRaw.filename = cms.untracked.string("../data/stage1_amc13_example.txt")
0078 # process.amc13DumpToRaw.fedId = cms.untracked.int32(1352)
0079 
0080 # dump raw data
0081 process.dumpRaw = cms.EDAnalyzer( 
0082     "DumpFEDRawDataProduct",
0083     label = cms.untracked.string("rawDataCollector"),
0084     feds = cms.untracked.vint32 ( 1352 ),
0085     dumpPayload = cms.untracked.bool ( True )
0086 )
0087 
0088 # raw to digi
0089 process.load('EventFilter.L1TRawToDigi.caloStage1Digis_cfi')
0090 process.caloStage1Digis.InputLabel = cms.InputTag('rawDataCollector')
0091 process.caloStage1Digis.debug = cms.untracked.bool(True)
0092 
0093 # Path and EndPath definitions
0094 process.path = cms.Path(
0095     # process.amc13DumpToRaw
0096     # +process.dumpRaw
0097     process.dumpRaw
0098     +process.caloStage1Digis
0099 )
0100 
0101 process.out = cms.EndPath(
0102     process.output
0103 )