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('ReAlignment', 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("file://output_base.root"),
0020 )
0021 
0022 # load alignment correction
0023 process.load("CalibPPS.ESProducers.ctppsRPAlignmentCorrectionsDataESSourceXML_cfi")
0024 process.ctppsRPAlignmentCorrectionsDataESSourceXML.RealFiles = cms.vstring(
0025   "RecoPPS/Local/test/re_alignment/align_corr.xml"
0026 )
0027 
0028 process.esPreferLocalAlignment = cms.ESPrefer("CTPPSRPAlignmentCorrectionsDataESSourceXML", "ctppsRPAlignmentCorrectionsDataESSourceXML")
0029 
0030 # track re-alignment module
0031 process.load("RecoPPS.Local.ppsLocalTrackLiteReAligner_cfi")
0032 
0033 # track plotter
0034 process.ctppsTrackDistributionPlotter = cms.EDAnalyzer("CTPPSTrackDistributionPlotter",
0035   tagTracks = cms.InputTag("ppsLocalTrackLiteReAligner"),
0036   outputFile = cms.string("output_tracks_corr.root")
0037 )
0038 
0039 # processing sequences
0040 process.path = cms.Path(
0041   process.ppsLocalTrackLiteReAligner
0042   * process.ctppsTrackDistributionPlotter
0043 )