Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("GEMSegmentRECO")
0004 
0005 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10))
0006 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0007 
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('FWCore.MessageService.MessageLogger_cfi')
0010 process.load('Configuration.EventContent.EventContent_cff')
0011 # process.load('Configuration.Geometry.GeometryExtended2019Reco_cff')
0012 # process.load('Configuration.Geometry.GeometryExtended2019_cff')
0013 # process.load('Configuration.Geometry.GeometryExtended2023Reco_cff')
0014 # process.load('Configuration.Geometry.GeometryExtended2023_cff')
0015 process.load('Configuration.Geometry.GeometryExtended2015MuonGEMDevReco_cff')
0016 process.load('Configuration.Geometry.GeometryExtended2015MuonGEMDev_cff')
0017 process.load('Configuration.StandardSequences.MagneticField_cff')
0018 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0019 
0020 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0021 # process.GlobalTag.globaltag = 'auto:upgrade2019'
0022 # process.GlobalTag.globaltag = 'DES19_62_V7::All'
0023 # process.GlobalTag.globaltag = 'POSTLS161_V12::All'
0024 # from Configuration.AlCa.GlobalTag import GlobalTag
0025 # process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2019', '')
0026 # from Configuration.AlCa.GlobalTag import GlobalTag
0027 # process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '')
0028 from Configuration.AlCa.GlobalTag import GlobalTag
0029 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0030 
0031 
0032 process.load('RecoLocalMuon.GEMSegment.me0Segments_cfi')
0033 
0034 ### TO ACTIVATE LogTrace IN GEMSegment NEED TO COMPILE IT WITH:
0035 ### -----------------------------------------------------------
0036 ### --> scram b -j8 USER_CXXFLAGS="-DEDM_ML_DEBUG"             
0037 ### Make sure that you first cleaned your CMSSW version:       
0038 ### --> scram b clean                                          
0039 ### before issuing the scram command above                     
0040 ### -----------------------------------------------------------
0041 ### LogTrace output goes to cout; all other output to "junk.log"
0042 ### Code/Configuration with thanks to Tim Cox                   
0043 ### -----------------------------------------------------------
0044 ### to have a handle on the loops inside RPCSimSetup           
0045 ### I have split the LogDebug stream in several streams        
0046 ### that can be activated independentl                         
0047 ###############################################################
0048 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0049 process.MessageLogger.debugModules = cms.untracked.vstring("*")
0050 process.MessageLogger.cerr.enable = False
0051 process.MessageLogger.files.junk = dict()
0052 process.MessageLogger.cout = cms.untracked.PSet(
0053     enable = cms.untracked.bool(True),
0054     threshold = cms.untracked.string("DEBUG"),
0055     default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0056     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0057     ME0Segment          = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0058     ME0SegmentBuilder   = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0059     # ME0SegAlgoMM      = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0060     # ME0SegFit         = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0061 )
0062 
0063 ### Input and Output Files
0064 ##########################
0065 process.source = cms.Source("PoolSource",
0066     fileNames = cms.untracked.vstring(
0067         'file:out_local_reco.root'
0068     )
0069 )
0070 
0071 process.output = cms.OutputModule("PoolOutputModule",
0072     fileName = cms.untracked.string( 
0073         'file:out_local_reco_me0segment.root'
0074     ),
0075     outputCommands = cms.untracked.vstring(
0076         'keep  *_*_*_*',
0077     ),
0078     SelectEvents = cms.untracked.PSet(
0079         SelectEvents = cms.vstring('me0segment_step')
0080     )
0081 )
0082 
0083 ### Paths and Schedules
0084 #######################
0085 process.me0segment_step  = cms.Path(process.me0Segments)
0086 process.endjob_step  = cms.Path(process.endOfProcess)
0087 process.out_step     = cms.EndPath(process.output)
0088 
0089 
0090 process.schedule = cms.Schedule(
0091     process.me0segment_step,
0092     process.endjob_step,
0093     process.out_step
0094 )
0095