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(2))
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 
0050 process.MessageLogger.debugModules = cms.untracked.vstring("*")
0051 process.MessageLogger.cerr.enable = False
0052 process.MessageLogger.files.junk = dict()
0053 process.MessageLogger.cout = cms.untracked.PSet(
0054     enable = cms.untracked.bool(True),
0055     threshold = cms.untracked.string("DEBUG"),
0056     default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
0057     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0058     ME0Segment          = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0059     ME0SegmentBuilder   = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0060     ME0SegAlgoMM      = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0061     ME0SegFit         = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0062 )
0063 
0064 ### Input and Output Files
0065 ##########################
0066 process.source = cms.Source("PoolSource",
0067     fileNames = cms.untracked.vstring(
0068         'file:out_local_reco.root'
0069     )
0070 )
0071 
0072 process.output = cms.OutputModule("PoolOutputModule",
0073     fileName = cms.untracked.string( 
0074         'file:out_local_reco_me0segment.root'
0075     ),
0076     outputCommands = cms.untracked.vstring(
0077         'keep  *_*_*_*',
0078     ),
0079     SelectEvents = cms.untracked.PSet(
0080         SelectEvents = cms.vstring('me0segment_step')
0081     )
0082 )
0083 
0084 ### Paths and Schedules
0085 #######################
0086 process.me0segment_step  = cms.Path(process.me0Segments)
0087 process.endjob_step  = cms.Path(process.endOfProcess)
0088 process.out_step     = cms.EndPath(process.output)
0089 
0090 
0091 process.schedule = cms.Schedule(
0092     process.me0segment_step,
0093     process.endjob_step,
0094     process.out_step
0095 )
0096