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("CTPPSRawToDigiTestPixelsOnly")
0004 
0005 # minimum of logs
0006 process.MessageLogger = cms.Service("MessageLogger",
0007     statistics = cms.untracked.vstring(),
0008     destinations = cms.untracked.vstring('cerr'),
0009     cerr = cms.untracked.PSet( threshold = cms.untracked.string('DEBUG') )
0010 )
0011 
0012 # raw data source
0013 process.source = cms.Source("PoolSource",
0014   fileNames = cms.untracked.vstring(
0015     #'file:/afs/cern.ch/user/j/jkaspar/public/run273062_ls0001-2_stream.root'
0016    # '/store/express/Run2016H/ExpressPhysics/FEVT/Express-v2/000/283/877/00000/4EE44B0E-2499-E611-A155-02163E011938.root'
0017 #'file:/afs/cern.ch/work/k/kas/public/PXtrees/PixelAlive_1294_151_RAW_v2.root'
0018 #'root://eoscms//eos/cms/store/user/jjhollar/012017_PixelDAQTests/PixelAlive_1294_151_RAW_v2.root'
0019 'root://eoscms//eos/cms/store/user/jjhollar/012017_PixelDAQTests/PixelAlive_1462_2_RAW.root',
0020 'root://eoscms//eos/cms/store/user/jjhollar/012017_PixelDAQTests/PixelAlive_1463_2_RAW.root'
0021   ),
0022 labelRawDataLikeMC = cms.untracked.bool(False), # for testing H8 data
0023 duplicateCheckMode = cms.untracked.string("checkEachFile")
0024 )
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027   input = cms.untracked.int32(-1)
0028 )
0029 
0030 # raw-to-digi conversion
0031 process.load("EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff")
0032  
0033 process.ctppsPixelDAQMappingESSourceXML.configuration = cms.VPSet(
0034     # example configuration block:
0035     cms.PSet(
0036         validityRange = cms.EventRange("1:min - 999999999:max"),
0037         mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/rpix_mapping_220_far.xml"),
0038         maskFileNames = cms.vstring("CondFormats/PPSObjects/xml/rpix_channel_mask_220_far.xml")
0039         )
0040 
0041     )
0042 
0043 process.p = cms.Path(
0044   process.ctppsPixelDigis
0045 )
0046 
0047 # output configuration
0048 process.output = cms.OutputModule("PoolOutputModule",
0049   fileName = cms.untracked.string("file:./ctpps_pixel_digi.root"),
0050   outputCommands = cms.untracked.vstring(
0051     'keep *'
0052  )
0053 )
0054 
0055 process.outpath = cms.EndPath(process.output)