Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:35

0001 
0002 #
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("simTest")
0006 
0007 process.maxEvents = cms.untracked.PSet(
0008     input = cms.untracked.int32(-1)
0009 )
0010 
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('ERROR')
0018     ),
0019     debugModules = cms.untracked.vstring('PixelSimHitsTest')
0020 )
0021 
0022 process.source = cms.Source("PoolSource",
0023     fileNames =  cms.untracked.vstring(
0024 #    '/store/user/kotlinski/mu100/simhits/simHits.root',
0025 #    'file:simHits.root'
0026     'file:/afs/cern.ch/work/d/dkotlins/public//MC/mu/pt100/simhits/simHits1.root'
0027     )
0028 )
0029 
0030 process.TFileService = cms.Service("TFileService",
0031     fileName = cms.string('sim_histos.root')
0032 )
0033 
0034 process.load("Configuration.Geometry.GeometryIdeal_cff")
0035 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0036 
0037 # needed for global transformation
0038 # process.load("Configuration.StandardSequences.FakeConditions_cff")
0039 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")# Choose the global tag here:
0040 #process.GlobalTag.globaltag = 'MC_53_V15::All'
0041 #process.GlobalTag.globaltag = 'DESIGN53_V15::All'
0042 #process.GlobalTag.globaltag = 'START53_V15::All'
0043 # ideal
0044 process.GlobalTag.globaltag = 'MC_70_V1::All'
0045 # realistiv alignment and calibrations 
0046 #process.GlobalTag.globaltag = 'START70_V1::All'
0047 
0048 process.analysis =  cms.EDAnalyzer("PixelSimHitsTest",
0049     src = cms.string("g4SimHits"),
0050 #   list = cms.string("TrackerHitsPixelBarrelLowTof"),
0051 #   list = cms.string("TrackerHitsPixelBarrelHighTof"),
0052     list = cms.string("TrackerHitsPixelEndcapLowTof"),
0053 #   list = cms.string("TrackerHitsPixelEndcapHighTof"),
0054         Verbosity = cms.untracked.bool(False),
0055 #        mode = cms.untracked.string("bpix"),
0056         mode = cms.untracked.string("fpix"),
0057 )
0058 
0059 process.p = cms.Path(process.analysis)
0060