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 import FWCore.ParameterSet.VarParsing as VarParsing
0004 
0005 from Configuration.Eras.Era_Run2_25ns_cff import Run2_25ns
0006 process = cms.Process('CTPPS2',Run2_25ns)
0007 
0008 # import of standard configurations
0009 process.load('Configuration.StandardSequences.Services_cff')
0010 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0011 process.load('FWCore.MessageService.MessageLogger_cfi')
0012 process.load('Configuration.EventContent.EventContent_cff')
0013 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0014 #process.load("CondFormats.PPSObjects.CTPPSPixelDAQMappingESSourceXML_cfi")
0015 
0016 process.maxEvents = cms.untracked.PSet(
0017         input = cms.untracked.int32(10000)
0018         )
0019 
0020 process.MessageLogger = cms.Service("MessageLogger",
0021     cerr = cms.untracked.PSet(
0022         enable = cms.untracked.bool(False)
0023     ),
0024     cout = cms.untracked.PSet(
0025         enable = cms.untracked.bool(True),
0026         threshold = cms.untracked.string('ERROR')
0027     )
0028 )
0029 process.source = cms.Source("EmptyIOVSource",
0030     timetype = cms.string('runnumber'),
0031     firstValue = cms.uint64(1),
0032     lastValue = cms.uint64(1),
0033     interval = cms.uint64(1)
0034 )
0035 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) )
0036 process.source = cms.Source("PoolSource",
0037     skipEvents = cms.untracked.uint32(0),
0038     fileNames = cms.untracked.vstring(
0039  '/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/44589413-F73F-E711-9E8D-02163E014337.root',
0040  '/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/4493383A-F63F-E711-A67F-02163E011870.root',
0041  '/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/5C6E42A5-0640-E711-9C3E-02163E011B62.root',
0042  '/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/98F7DD15-F93F-E711-87E1-02163E019D62.root',
0043  '/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/A01D8813-0A40-E711-A300-02163E01A211.root',
0044  '/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/B83C33DB-F63F-E711-82FC-02163E019DF3.root',
0045  '/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/D6706DD8-F93F-E711-9F6D-02163E019D7F.root',
0046  '/store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/E206A2BF-FA3F-E711-8E72-02163E01369C.root'
0047 ),
0048 duplicateCheckMode = cms.untracked.string("checkEachFile")
0049 )
0050 
0051 
0052 from Configuration.AlCa.GlobalTag import GlobalTag
0053 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_hlt_relval', '')
0054 
0055 process.load("RecoPPS.Configuration.recoCTPPS_cff")
0056 
0057 #process.patternProd = cms.EDProducer("patternProducer",
0058  #                                    label=cms.untracked.string("ctppsPixelRecHits"),
0059   #                                   RPixVerbosity = cms.untracked.int32(2)
0060 
0061 #)
0062 #process.load("RecoPPS.Local.patternProd_cfi")
0063 #process.patternProd.RPixVerbosity = cms.untracked.int32(0)
0064 
0065 ############
0066 process.o1 = cms.OutputModule("PoolOutputModule",
0067         outputCommands = cms.untracked.vstring('drop *',
0068                                                'keep CTPPSPixelClusteredmDetSetVector_ctppsPixelClusters_*_*',
0069                                                'keep CTPPSPixelRecHitedmDetSetVector_ctppsPixelRecHits_*_*',
0070                                                'keep CTPPSPixelLocalTrackedmDetSetVector_ctppsPixelLocalTracks_*_*',
0071  'keep CTPPSLocalTrackLites_ctppsLocalTrackLiteProducer_*_*'
0072         ),
0073         fileName = cms.untracked.string("RPix_RecoLocalTrack.root")
0074        )
0075 
0076 
0077 process.mixedigi_step = cms.Path(
0078 process.recoCTPPS
0079 #*process.patternProd
0080 )
0081 
0082 process.outpath = cms.EndPath(process.o1)
0083 
0084 process.schedule = cms.Schedule(process.mixedigi_step,process.outpath)
0085 
0086 # filter all path with the production filter sequence
0087 for path in process.paths:
0088   #  getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq
0089     getattr(process,path)._seq =  getattr(process,path)._seq
0090 
0091