Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:55

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(100)
0017 )
0018 
0019 # Input source
0020 process.source = cms.Source(
0021         "PoolSource",
0022         fileNames = cms.untracked.vstring([
0023             "/store/hidata/HIRun2023A/HIMinimumBias1/RAW/v1/000/374/345/00000/1332e7ef-bf52-4bc4-b6e2-aae1be281411.root",
0024             "/store/hidata/HIRun2023A/HIMinimumBias1/RAW/v1/000/374/345/00000/6b72b001-db9b-4490-aec8-29eb1de07108.root",
0025             "/store/hidata/HIRun2023A/HIMinimumBias1/RAW/v1/000/374/345/00000/1859b208-0daf-4382-a2fc-444a8e7628aa.root",
0026             "/store/hidata/HIRun2023A/HIMinimumBias1/RAW/v1/000/374/345/00000/77101f68-bc1b-4ca6-a8ba-f48bef24b8de.root",
0027             "/store/hidata/HIRun2023A/HIMinimumBias1/RAW/v1/000/374/345/00000/1fc90d44-5798-4eb1-a3c0-2c2e2e9a9df6.root"
0028         ]),
0029         eventsToProcess = cms.untracked.VEventRange('374345:1-374345:MAX')
0030 )
0031 
0032 process.options = cms.untracked.PSet(
0033     SkipEvent = cms.untracked.vstring('ProductNotFound')
0034 )
0035 
0036 
0037 # Output definition
0038 
0039 process.output = cms.OutputModule(
0040     "PoolOutputModule",
0041     splitLevel = cms.untracked.int32(0),
0042     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0043     outputCommands = cms.untracked.vstring("keep *",
0044                        "drop *_mix_*_*"),
0045     fileName = cms.untracked.string('L1T_EDM.root'),
0046     dataset = cms.untracked.PSet(
0047         filterName = cms.untracked.string(''),
0048         dataTier = cms.untracked.string('')
0049     )
0050 )
0051 
0052 # Additional output definition
0053 
0054 # Other statements
0055 from Configuration.AlCa.GlobalTag import GlobalTag
0056 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '')
0057 
0058 
0059 # # TTree output file
0060 # process.load("CommonTools.UtilAlgos.TFileService_cfi")
0061 # process.TFileService.fileName = cms.string('l1t.root')
0062 
0063 
0064 process.load('EventFilter.L1TRawToDigi.gtStage2Digis_cfi')
0065 process.gtStage2Digis.InputLabel = cms.InputTag('rawDataRepacker')
0066 process.gtStage2Digis.debug = cms.untracked.bool(False)
0067 
0068 process.load('EventFilter.L1TRawToDigi.gtStage2Raw_cfi')
0069 process.gtStage2Raw.InputLabel = cms.InputTag("gtStage2Digis","GT")
0070 
0071 process.gtStage2Raw.GtInputTag = cms.InputTag("gtStage2Digis","")
0072 process.gtStage2Raw.ExtInputTag = cms.InputTag("gtStage2Digis")
0073 process.gtStage2Raw.MuonInputTag   = cms.InputTag("gtStage2Digis","Muon")
0074 process.gtStage2Raw.EGammaInputTag = cms.InputTag("gtStage2Digis","EGamma")
0075 process.gtStage2Raw.TauInputTag    = cms.InputTag("gtStage2Digis","Tau")
0076 process.gtStage2Raw.JetInputTag    = cms.InputTag("gtStage2Digis","Jet")
0077 process.gtStage2Raw.EtSumInputTag  = cms.InputTag("gtStage2Digis","EtSum")  
0078 process.gtStage2Raw.EtSumZDCInputTag  = cms.InputTag("gtStage2Digis","EtSumZDC")  
0079 
0080 
0081 # dump raw data
0082 process.dumpRaw = cms.EDAnalyzer( 
0083     "DumpFEDRawDataProduct",
0084     token = cms.untracked.InputTag('gtStage2Raw'),
0085     label = cms.untracked.InputTag('gtStage2Raw'),
0086     feds = cms.untracked.vint32 ( 1404 ),
0087     dumpPayload = cms.untracked.bool ( False )
0088 )
0089 process.unpackGtStage2 = process.gtStage2Digis.clone()
0090 process.unpackGtStage2.InputLabel = cms.InputTag('gtStage2Raw')
0091 process.unpackGtStage2.debug = cms.untracked.bool(False)
0092 
0093 
0094 # Path and EndPath definitions
0095 process.path = cms.Path(
0096     process.gtStage2Digis
0097     + process.gtStage2Raw
0098     # + process.dumpRaw
0099     + process.unpackGtStage2
0100 )
0101 
0102 process.out = cms.EndPath(
0103     process.output
0104 )