Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-14 22:36:03

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