Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:00

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.StandardSequences.Eras import eras
0004 process = cms.Process('TEST', eras.Run2_2018)
0005 
0006 # minimum of logs
0007 process.MessageLogger = cms.Service("MessageLogger",
0008     cerr = cms.untracked.PSet(
0009         enable = cms.untracked.bool(False)
0010     ),
0011     cout = cms.untracked.PSet(
0012         enable = cms.untracked.bool(True),
0013         threshold = cms.untracked.string('WARNING')
0014     )
0015 )
0016 
0017 # raw data source
0018 process.source = cms.Source("PoolSource",
0019   fileNames = cms.untracked.vstring("/store/data/Run2018D/ZeroBias/RAW/v1/000/320/688/00000/601A721D-AD95-E811-B21A-FA163E28A50A.root"),
0020   #fileNames = cms.untracked.vstring("root://eoscms.cern.ch//eos/cms/store/group/phys_pps/sw_test_input/601A721D-AD95-E811-B21A-FA163E28A50A.root"),
0021 
0022   inputCommands = cms.untracked.vstring(
0023     'drop *',
0024     'keep FEDRawDataCollection_*_*_*'
0025   )
0026 )
0027 
0028 process.maxEvents = cms.untracked.PSet(
0029   input = cms.untracked.int32(1000)
0030 )
0031 
0032 # raw-to-digi conversion
0033 process.load("EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff")
0034 
0035 # local RP reconstruction chain with standard settings
0036 process.load("RecoPPS.Configuration.recoCTPPS_cff")
0037 
0038 # define GT
0039 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0040 from Configuration.AlCa.GlobalTag import GlobalTag
0041 process.GlobalTag = GlobalTag(process.GlobalTag, "106X_dataRun2_v26")
0042 
0043 # override alignment settings
0044 process.load("CalibPPS.ESProducers.ctppsRPAlignmentCorrectionsDataESSourceXML_cfi")
0045 process.ctppsRPAlignmentCorrectionsDataESSourceXML.RealFiles = cms.vstring(
0046   "RecoPPS/Local/test/re_alignment/align_base.xml",
0047   "RecoPPS/Local/test/re_alignment/align_corr.xml"
0048 )
0049 
0050 process.esPreferLocalAlignment = cms.ESPrefer("CTPPSRPAlignmentCorrectionsDataESSourceXML", "ctppsRPAlignmentCorrectionsDataESSourceXML")
0051 
0052 # track plotter
0053 process.ctppsTrackDistributionPlotter = cms.EDAnalyzer("CTPPSTrackDistributionPlotter",
0054   tagTracks = cms.InputTag("ctppsLocalTrackLiteProducer"),
0055   outputFile = cms.string("output_tracks_full.root")
0056 )
0057 
0058 # processing sequences
0059 process.path = cms.Path(
0060   process.ctppsRawToDigi
0061   * process.recoCTPPS
0062   * process.ctppsTrackDistributionPlotter
0063 )