Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:20

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 # define global tag
0006 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0007 from Configuration.AlCa.GlobalTag import GlobalTag
0008 process.GlobalTag = GlobalTag(process.GlobalTag, '132X_dataRun3_Prompt_v2', '')
0009 
0010 # minimum of logs
0011 process.MessageLogger = cms.Service("MessageLogger",
0012     cerr = cms.untracked.PSet(
0013         enable = cms.untracked.bool(False)
0014     ),
0015     cout = cms.untracked.PSet(
0016         enable = cms.untracked.bool(True),
0017         threshold = cms.untracked.string('WARNING')
0018     )
0019 )
0020 
0021 # data source
0022 process.source = cms.Source("PoolSource",
0023   fileNames = cms.untracked.vstring("/store/data/Run2023D/AlCaPPSPrompt/ALCARECO/PPSCalMaxTracks-PromptReco-v2/000/370/772/00000/00f29e79-bf03-4a59-b396-46accaa03bfc.root")
0024 )
0025 
0026 #process.maxEvents = cms.untracked.PSet(
0027 #  input = cms.untracked.int32(1000)
0028 #)
0029 
0030 # filter
0031 process.xangleBetaStarFilter = cms.EDFilter("XangleBetaStarFilter",
0032   lhcInfoLabel = cms.string(""),
0033   lhcInfoPerLSLabel = cms.string(""),
0034   lhcInfoPerFillLabel = cms.string(""),
0035 
0036   useNewLHCInfo = cms.bool(True),
0037 
0038   xangle_min = cms.double(150),
0039   xangle_max = cms.double(170)
0040   
0041 )
0042 
0043 # plotters
0044 process.plotterBefore = cms.EDAnalyzer("CTPPSLHCInfoPlotter",
0045   lhcInfoLabel = cms.string(""),
0046   useNewLHCInfo = cms.bool(True),
0047   outputFile = cms.string("output_before_filter.root")
0048 )
0049 
0050 process.plotterAfter = cms.EDAnalyzer("CTPPSLHCInfoPlotter",
0051   lhcInfoLabel = cms.string(""),
0052   useNewLHCInfo = cms.bool(True),
0053   outputFile = cms.string("output_after_filter.root")
0054 )
0055 
0056 # path
0057 process.p = cms.Path(
0058     process.plotterBefore
0059     * process.xangleBetaStarFilter
0060     * process.plotterAfter
0061 )