Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-08 06:27:59

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.StandardSequences.Eras import eras
0004 
0005 process = cms.Process("Demo",eras.run3_GEM)
0006 
0007 
0008 
0009 process.load('Configuration.StandardSequences.GeometryDB_cff')
0010 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0011 process.load('CondCore.CondDB.CondDB_cfi')
0012 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0013 process.XMLFromDBSource.label = cms.string('Extended')
0014 from Configuration.AlCa.GlobalTag import GlobalTag
0015 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2021', '')
0016 
0017 from Configuration.AlCa.autoCond import autoCond
0018 process.load('Geometry.MuonNumbering.muonNumberingInitialization_cfi')
0019 
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(1)
0022 )
0023 
0024 process.load("Alignment.CommonAlignmentProducer.FakeAlignmentSource_cfi")
0025 process.preferFakeAlign = cms.ESPrefer("FakeAlignmentSource") 
0026 
0027 process.source = cms.Source("EmptySource")
0028 
0029 
0030 
0031 process.maxEvents = cms.untracked.PSet(
0032     input = cms.untracked.int32(1)
0033     )
0034 
0035 process.CondDB.timetype = cms.untracked.string('runnumber')
0036 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0037 process.PoolDBESSourceGeometry = cms.ESSource("PoolDBESSource",
0038                                           process.CondDB,
0039                                           toGet = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),tag = cms.string('XMLFILE_Geometry_TagXX_Extended2021_mc')),
0040                                           cms.PSet(record = cms.string('IdealGeometryRecord'),tag = cms.string('TKRECO_Geometry_TagXX')),
0041                                           cms.PSet(record = cms.string('PEcalBarrelRcd'),   tag = cms.string('EBRECO_Geometry_TagXX')),
0042                                           cms.PSet(record = cms.string('PEcalEndcapRcd'),   tag = cms.string('EERECO_Geometry_TagXX')),
0043                                           cms.PSet(record = cms.string('PEcalPreshowerRcd'),tag = cms.string('EPRECO_Geometry_TagXX')),
0044                                           cms.PSet(record = cms.string('PHcalRcd'),         tag = cms.string('HCALRECO_Geometry_TagXX')),
0045                                           cms.PSet(record = cms.string('PCaloTowerRcd'),    tag = cms.string('CTRECO_Geometry_TagXX')),
0046                                           cms.PSet(record = cms.string('PZdcRcd'),          tag = cms.string('ZDCRECO_Geometry_TagXX')),
0047                                           cms.PSet(record = cms.string('PCastorRcd'),       tag = cms.string('CASTORRECO_Geometry_TagXX')),
0048                                           cms.PSet(record = cms.string('CSCRecoGeometryRcd'),tag = cms.string('CSCRECO_Geometry_TagXX')),
0049                                           cms.PSet(record = cms.string('CSCRecoDigiParametersRcd'),tag = cms.string('CSCRECODIGI_Geometry_TagXX')),
0050                                           cms.PSet(record = cms.string('DTRecoGeometryRcd'),tag = cms.string('DTRECO_Geometry_TagXX')),
0051                                           cms.PSet(record = cms.string('RPCRecoGeometryRcd'),tag = cms.string('RPCRECO_Geometry_TagXX')),
0052                                           cms.PSet(record = cms.string('GEMRecoGeometryRcd'),tag = cms.string('GEMRECO_Geometry_TagXX'))
0053                                           )
0054                                         )
0055 process.es_prefer_geometry = cms.ESPrefer( "PoolDBESSource", "PoolDBESSourceGeometry" )
0056 
0057 
0058 process.test = cms.EDAnalyzer("GEMGeometryAnalyzer")
0059 
0060 process.p = cms.Path(process.test)
0061 
0062 ### TO ACTIVATE LogTrace NEED TO COMPILE IT WITH:
0063 ### -----------------------------------------------------------
0064 ### --> scram b -j8 USER_CXXFLAGS="-DEDM_ML_DEBUG"
0065 ### Make sure that you first cleaned your CMSSW version:
0066 ### --> scram b clean
0067 ### before issuing the scram command above
0068 ###############################################################
0069 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0070 # 
0071 # 
0072 process.MessageLogger.debugModules = cms.untracked.vstring("*")
0073 process.MessageLogger.cerr.enable = False
0074 process.MessageLogger.files.junk = dict()
0075 process.MessageLogger.cout = cms.untracked.PSet(
0076     enable = cms.untracked.bool(True),
0077     threshold = cms.untracked.string("DEBUG"),
0078     default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0079     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0080     # GEMGeometryBuilderFromDDD   = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0081     # GEMNumberingScheme            = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0082 )