Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:26

0001 #
0002 # rechits are not persisent anymore, so one should run one of the CPEs
0003 # on clusters ot do the track fitting. 11/08 d.k.
0004 #
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("recHitsTest")
0008 
0009 process.maxEvents = cms.untracked.PSet(
0010     input = cms.untracked.int32(100)
0011 )
0012 
0013 process.MessageLogger = cms.Service("MessageLogger",
0014     debugModules = cms.untracked.vstring('ReadPixelRecHit'),
0015     destinations = cms.untracked.vstring('cout'),
0016 #    destinations = cms.untracked.vstring("log","cout"),
0017     cout = cms.untracked.PSet(
0018         threshold = cms.untracked.string('ERROR')
0019     )
0020 #    log = cms.untracked.PSet(
0021 #        threshold = cms.untracked.string('DEBUG')
0022 #    )
0023 )
0024 
0025 process.source = cms.Source("PoolSource",
0026 #    fileNames =  cms.untracked.vstring('file:/scratch/dkotlins/digis.root')
0027    fileNames =  cms.untracked.vstring(
0028     'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100_71_pre7/rechits/rechits2_postls171.root'
0029    )
0030 )
0031 
0032 
0033 # a service to use root histos
0034 process.TFileService = cms.Service("TFileService",
0035     fileName = cms.string('histo.root')
0036 )
0037 
0038 process.load("Configuration.StandardSequences.GeometryDB_cff")
0039 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0040 # process.load("Configuration.StandardSequences.Services_cff")
0041 
0042 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")# Choose the global tag here:
0043 # 2022
0044 process.GlobalTag.globaltag = 'auto:phase1_2022_realistic'
0045 
0046 # read rechits
0047 process.analysis = cms.EDAnalyzer("ReadPixelRecHit",
0048     Verbosity = cms.untracked.bool(True),
0049     src = cms.InputTag("siPixelRecHits"),
0050 )
0051 
0052 process.p = cms.Path(process.analysis)
0053 
0054 # test the DB object, works
0055 #process.load("RecoLocalTracker.SiPixelRecHits.PixelCPEESProducers_cff")
0056 ##process.load("RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi")
0057 ##process.load("CalibTracker.SiPixelESProducers.SiPixelFakeTemplateDBObjectESSource_cfi"
0058 ##process.load("CalibTracker.SiPixelESProducers.SiPixelFakeCPEGenericErrorParmESSource_cfi"
0059 #process.test = cms.EDAnalyzer("CPEAccessTester",
0060 ##    PixelCPE = cms.string('PixelCPEGeneric'),
0061 #    PixelCPE = cms.string('PixelCPETemplateReco'),
0062 #)
0063 #process.p = cms.Path(process.test)
0064 
0065 
0066 
0067 
0068