Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-29 22:16:06

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.AlCa.autoCond import autoCond
0003 
0004 process = cms.Process("GeometryTest")
0005 
0006 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0007 process.GlobalTag.globaltag = autoCond['run1_mc']
0008 
0009 process.source = cms.Source("EmptyIOVSource",
0010                             lastValue = cms.uint64(3),
0011                             timetype = cms.string('runnumber'),
0012                             firstValue = cms.uint64(1),
0013                             interval = cms.uint64(1)
0014                             )
0015 
0016 process.GlobalTag.toGet = cms.VPSet(
0017     cms.PSet(record = cms.string("PHGCalRcd"),
0018              tag = cms.string("HGCALRECO_Geometry_Test01"),
0019              connect = cms.string("sqlite_file:myfile.db")
0020              )
0021     )
0022 
0023 process.load('FWCore.MessageService.MessageLogger_cfi')
0024 if hasattr(process,'MessageLogger'):
0025     process.MessageLogger.HGCalGeom=dict()
0026     process.MessageLogger.HGCalGeomX=dict()
0027 process.MessageLogger = cms.Service("MessageLogger",
0028     cerr = cms.untracked.PSet(
0029         enable = cms.untracked.bool(False)
0030     ),
0031     cout = cms.untracked.PSet(
0032         HGCalGeom = cms.untracked.PSet(
0033             limit = cms.untracked.int32(0)
0034         ),
0035         default = cms.untracked.PSet(
0036             limit = cms.untracked.int32(0)
0037         ),
0038         enable = cms.untracked.bool(True),
0039         threshold = cms.untracked.string('DEBUG')
0040     ),
0041     debugModules = cms.untracked.vstring('*')
0042 )
0043 
0044 process.load('FWCore.MessageService.MessageLogger_cfi')
0045 if hasattr(process,'MessageLogger'):
0046     process.MessageLogger.HGCalGeom=dict()
0047     process.MessageLogger.HGCalGeomX=dict()
0048 
0049 process.maxEvents = cms.untracked.PSet(
0050     input = cms.untracked.int32(1)
0051 )
0052 
0053 process.prodEE = cms.EDAnalyzer("HGCalGeometryTester",
0054                                 Detector   = cms.string("HGCalEESensitive"),
0055                                 SquareCell = cms.bool(True),
0056                                 )
0057 
0058 process.prodHEF = process.prodEE.clone(
0059     Detector   = "HGCalHESiliconSensitive",
0060     SquareCell = True
0061 )
0062 
0063 process.prodHEB = process.prodEE.clone(
0064     Detector   = "HGCalHEScintillatorSensitive",
0065     SquareCell = True
0066 )
0067 
0068 process.p1 = cms.Path(process.prodEE+process.prodHEF+process.prodHEB)