Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-07 04:53:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("worker")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.load('RecoPPS.Local.totemTimingLocalReconstruction_cff')
0007 process.source = cms.Source("EmptySource")
0008 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10000) )
0009 
0010 process.load('Configuration.StandardSequences.Services_cff')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0013 from Configuration.AlCa.GlobalTag import GlobalTag
0014 process.GlobalTag = GlobalTag(process.GlobalTag, '113X_dataRun3_Prompt_PPStestSampicPCL_v1')
0015 
0016 ################
0017 #digi converter
0018 ################
0019 process.totemTimingRawToDigi = cms.EDProducer('DiamondSampicDigiProducer',
0020     #input path of the testbeam data
0021     sampicFilesVec=cms.vstring("/eos/cms/store/group/dpg_ctpps/comm_ctpps/201905_DesyTestbeam/MergedDev/Ntuple_runsampic_159_runtelescope_636.root"),
0022     ################
0023     #channel mapping
0024     ################
0025     idsMapping = cms.VPSet(
0026         cms.PSet(detId = cms.vuint32(2054160384,2054553600,2056257536,2056650752), treeChId = cms.uint32(8)),
0027         cms.PSet(detId = cms.vuint32(2054164480,2054557696,2056261632,2056654848), treeChId = cms.uint32(9)),
0028         cms.PSet(detId = cms.vuint32(2054168576,2054561792,2056265728,2056658944), treeChId = cms.uint32(10)),
0029         cms.PSet(detId = cms.vuint32(2054172672,2054565888,2056269824,2056663040), treeChId = cms.uint32(11)),
0030         cms.PSet(detId = cms.vuint32(2054176768,2054569984,2056273920,2056667136), treeChId = cms.uint32(12)),
0031         cms.PSet(detId = cms.vuint32(2054180864,2054574080,2056278016,2056671232), treeChId = cms.uint32(13)),
0032         cms.PSet(detId = cms.vuint32(2054184960,2054578176,2056282112,2056675328), treeChId = cms.uint32(14)),
0033         cms.PSet(detId = cms.vuint32(2054189056,2054582272,2056286208,2056679424), treeChId = cms.uint32(15)),
0034         cms.PSet(detId = cms.vuint32(2054193152,2054586368,2056290304,2056683520), treeChId = cms.uint32(16)),
0035         cms.PSet(detId = cms.vuint32(2054197248,2054590464,2056294400,2056687616), treeChId = cms.uint32(17)),
0036         cms.PSet(detId = cms.vuint32(2054201344,2054594560,2056298496,2056691712), treeChId = cms.uint32(18)),
0037         cms.PSet(detId = cms.vuint32(2054205440,2054598656,2056302592,2056695808), treeChId = cms.uint32(19)),
0038 
0039         cms.PSet(detId = cms.vuint32(2054291456,2054422528,2056388608,2056519680), treeChId = cms.uint32(20)),
0040         cms.PSet(detId = cms.vuint32(2054295552,2054426624,2056392704,2056523776), treeChId = cms.uint32(21)),
0041         cms.PSet(detId = cms.vuint32(2054299648,2054430720,2056396800,2056527872), treeChId = cms.uint32(22)),
0042         cms.PSet(detId = cms.vuint32(2054303744,2054434816,2056400896,2056531968), treeChId = cms.uint32(23)),
0043         cms.PSet(detId = cms.vuint32(2054307840,2054438912,2056404992,2056536064), treeChId = cms.uint32(24)),
0044         cms.PSet(detId = cms.vuint32(2054311936,2054443008,2056409088,2056540160), treeChId = cms.uint32(25)),
0045         cms.PSet(detId = cms.vuint32(2054316032,2054447104,2056413184,2056544256), treeChId = cms.uint32(26)),
0046         cms.PSet(detId = cms.vuint32(2054320128,2054451200,2056417280,2056548352), treeChId = cms.uint32(27)),
0047         cms.PSet(detId = cms.vuint32(2054324224,2054455296,2056421376,2056552448), treeChId = cms.uint32(28)),
0048         cms.PSet(detId = cms.vuint32(2054328320,2054459392,2056425472,2056556544), treeChId = cms.uint32(29)),
0049         cms.PSet(detId = cms.vuint32(2054332416,2054463488,2056429568,2056560640), treeChId = cms.uint32(30)),
0050         cms.PSet(detId = cms.vuint32(2054336512,2054467584,2056433664,2056564736), treeChId = cms.uint32(31))
0051 
0052     )
0053 )
0054 
0055 process.totemTimingRecHits.mergeTimePeaks= cms.bool(False)
0056 process.totemTimingRecHits.timingCalibrationTag= cms.string('GlobalTag:DiamondSampicCalibration')
0057 ################
0058 #geometry
0059 ################
0060 process.load('Geometry.VeryForwardGeometry.geometryRPFromDD_2021_cfi')
0061 
0062 process.load("CalibPPS.TimingCalibration.PPSDiamondSampicTimingCalibrationPCLWorker_cfi")
0063 process.DQMStore = cms.Service("DQMStore")
0064 
0065 process.dqmOutput = cms.OutputModule("DQMRootOutputModule",
0066     fileName = cms.untracked.string("worker_output.root")
0067 )
0068 
0069 
0070 process.path = cms.Path(
0071     process.totemTimingRawToDigi*
0072     process.diamondSampicLocalReconstruction*
0073     process.PPSDiamondSampicTimingCalibrationPCLWorker
0074 )
0075 
0076 process.end_path = cms.EndPath(
0077     process.dqmOutput
0078 )
0079 
0080 process.schedule = cms.Schedule(
0081     process.path,
0082     process.end_path
0083 )