Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("myCTPPSRawToDigi")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 
0007 process.load("CondFormats.PPSObjects.CTPPSPixelDAQMappingESSourceXML_cfi")
0008 process.ctppsPixelDAQMappingESSourceXML.configuration = cms.VPSet(
0009     # example configuration block:
0010     cms.PSet(
0011         validityRange = cms.EventRange("1:min - 999999999:max"),
0012         mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/rpix_mapping_220_far.xml"),
0013         maskFileNames = cms.vstring("CondFormats/PPSObjects/xml/rpix_channel_mask_220_far.xml")
0014         )
0015     )
0016 
0017 process.load("Configuration.StandardSequences.Services_cff")
0018 
0019 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1))
0020 
0021 process.source = cms.Source("PoolSource",
0022 # fileNames =  cms.untracked.vstring('file:rawdata.root')
0023 labelRawDataLikeMC = cms.untracked.bool(False),
0024 fileNames =  cms.untracked.vstring(
0025 #"file:./PixelAlive_1294_153_RAW_v3.root"
0026 #"file:/afs/cern.ch/work/k/kas/public/PXtrees/PixelAlive_1294_151_RAW_v2.root"
0027 'root://eoscms//eos/cms/store/user/jjhollar/012017_PixelDAQTests/PixelAlive_1462_2_RAW.root',
0028 'root://eoscms//eos/cms/store/user/jjhollar/012017_PixelDAQTests/PixelAlive_1463_2_RAW.root'
0029  ),
0030 duplicateCheckMode = cms.untracked.string("checkEachFile")
0031 )
0032 
0033 process.load("EventFilter.CTPPSRawToDigi.ctppsPixelRawToDigi_cfi")
0034 
0035 process.ctppsPixelDigis.inputLabel = 'source'
0036 
0037 process.MessageLogger = cms.Service("MessageLogger",
0038     debugModules = cms.untracked.vstring('ctppsPixelDigis'),
0039     destinations = cms.untracked.vstring('r2d'),
0040     r2d = cms.untracked.PSet( threshold = cms.untracked.string('DEBUG'))
0041 )
0042 
0043 process.out = cms.OutputModule("PoolOutputModule",
0044 #    fileName =  cms.untracked.string('file:digis_PixelAlive_1462_2_RAW.root'),
0045     fileName =  cms.untracked.string('file:digis_PixelAlive_P5_2_RAW.root'),
0046 
0047     outputCommands = cms.untracked.vstring("keep *")
0048 )
0049 
0050 process.p = cms.Path(process.ctppsPixelDigis)
0051 process.ep = cms.EndPath(process.out)