Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:22:34

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.StandardSequences.Eras import eras
0003 
0004 #process = cms.Process("CTPPSRawToDigiTestPixelsOnly",eras.Run2_2017)
0005 process = cms.Process("CTPPSRawToDigiTestPixelsOnly",eras.Run3)
0006 # minimum of logs
0007 process.MessageLogger = cms.Service("MessageLogger",
0008     statistics = cms.untracked.vstring(),
0009     destinations = cms.untracked.vstring('cerr'),
0010     cerr = cms.untracked.PSet( threshold = cms.untracked.string('DEBUG') )
0011 )
0012 
0013 # raw data source
0014 process.source = cms.Source("PoolSource",
0015   fileNames = cms.untracked.vstring(
0016 #    'file:/afs/cern.ch/user/f/fabferro/WORKSPACE/public/Unpacking/CMSSW_11_3_0/src/IORawData/SiPixelInputSources/test/PixelAlive_1463_548.root'
0017       'file:/eos/cms/store/group/dpg_ctpps/comm_ctpps/PixelAlive_562_RAW.root'
0018   ),
0019 labelRawDataLikeMC = cms.untracked.bool(False), # for testing H8 data
0020 duplicateCheckMode = cms.untracked.string("checkEachFile")
0021 )
0022 
0023 process.maxEvents = cms.untracked.PSet(
0024     input = cms.untracked.int32(-1)
0025 )
0026 
0027 #process.load("CalibPPS.ESProducers.CTPPSPixelDAQMappingESSourceXML_cfi")
0028 
0029 #ctppsPixelDAQMappingESSourceXML = cms.ESSource("CTPPSPixelDAQMappingESSourceXML",
0030 #                                               verbosity = cms.untracked.uint32(2),
0031 #                                               subSystem= cms.untracked.string("RPix"),
0032 #                                               configuration = cms.VPSet(
0033         # example configuration block:
0034 #        cms.PSet(
0035 #            validityRange = cms.EventRange("1:min - 999999999:max"),
0036 #            mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/rpix_tests_2021.xml"),
0037 #            maskFileNames = cms.vstring("CondFormats/PPSObjects/xml/rpix_channel_mask_220_far.xml")
0038 #            )
0039 #        )
0040 #                      
0041 #)
0042 
0043 # raw-to-digi conversion
0044 process.load("EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff")
0045 process.ctppsPixelDigis.inputLabel = cms.InputTag("source")
0046 
0047  
0048 
0049                        
0050 
0051 #process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0052 #from Configuration.AlCa.GlobalTag import GlobalTag
0053 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0054 
0055 
0056 process.load("CondCore.CondDB.CondDB_cfi")
0057 # input database (in this case the local sqlite file)
0058 process.CondDB.connect = 'sqlite_file:/eos/cms/store/group/dpg_ctpps/comm_ctpps/CTPPSPixel_DAQMapping_AnalysisMask.db'
0059 
0060 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0061     process.CondDB,
0062     DumpStat=cms.untracked.bool(True),
0063     toGet = cms.VPSet(cms.PSet(
0064         record = cms.string('CTPPSPixelDAQMappingRcd'),
0065         tag = cms.string("PixelDAQMapping")
0066     )),
0067 )
0068 
0069 process.p = cms.Path(
0070   process.ctppsPixelDigis
0071 #    process.ctppsRawToDigi
0072 )
0073 
0074 # output configuration
0075 process.output = cms.OutputModule("PoolOutputModule",
0076   fileName = cms.untracked.string("file:./_digi_PixelAlive_562.root"),
0077   outputCommands = cms.untracked.vstring(
0078     'keep *'
0079  )
0080 )
0081 
0082 process.outpath = cms.EndPath(process.output)