Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 ## Process  100  events in CSC segment builder - Tim Cox - 22.01.2015
0002 ## This version runs in  74X  on a Real RAW relval sample in 730 
0003 ## Now testing on FullSim+PU TTbar sample in 730
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("TEST")
0008 
0009 process.load("Configuration/StandardSequences/Geometry_cff")
0010 process.load("Configuration/StandardSequences/MagneticField_cff")
0011 process.load("Configuration/StandardSequences/FrontierConditions_GlobalTag_cff")
0012 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0013 process.load("Configuration.StandardSequences.Reconstruction_cff")
0014 process.load("Configuration.StandardSequences.EndOfProcess_cff")
0015 
0016 # --- MATCH GT TO RELEASE AND DATA SAMPLE
0017 
0018 # Tag for 730 Real Data relvals
0019 ##process.GlobalTag.globaltag = "GR_P_V43D::All"
0020 
0021 # Tag for 730 Sim relvals
0022 process.GlobalTag.globaltag = "MCRUN2_73_V5::All"
0023 
0024 
0025 # --- NUMBER OF EVENTS --- 
0026 
0027 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0028 
0029 process.options   = cms.untracked.PSet( SkipEvent = cms.untracked.vstring("ProductNotFound") )
0030 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0031 process.source    = cms.Source("PoolSource",
0032     fileNames = cms.untracked.vstring(
0033 ##       "/store/relval/CMSSW_7_3_0/SingleMu/RAW/GR_H_V43A_RelVal_zMu2012D-v1/00000/1ED9BE30-8481-E411-8AE9-002618943874.root"
0034          "/store/relval/CMSSW_7_3_0/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_73_V7_71XGENSIM-v1/00000/044157C8-A181-E411-AC04-002354EF3BD2.root"
0035     )
0036 )
0037 
0038 # -- ACCESSING 'DEEP' PARAMETERS OF THE ALGO IS TRICKY
0039 # THE FOLLOWING FOUND BY EXPLORING CONFIG WITH python -i
0040 # '3' is 4th algo CSCSegAlgoST; '0' and '1' are for ST_ME1234 and ST_ME1A configs
0041 process.cscSegments.algo_psets[3].algo_psets[0].CSCDebug = cms.untracked.bool(True)
0042 process.cscSegments.algo_psets[3].algo_psets[1].CSCDebug = cms.untracked.bool(True)
0043 
0044 
0045 # --- Activate LogVerbatim IN CSCSegment
0046 process.MessageLogger.cerr.enable = False
0047 process.MessageLogger.cout = cms.untracked.PSet(
0048     enable    = cms.untracked.bool(True),
0049     threshold = cms.untracked.string("INFO"),
0050     default   = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0051     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0052     CSCSegment = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0053 )    
0054 
0055 ### --- ACTIVATE LogTrace IN VARIOUS MODULES - NEED TO COMPILE *EACH MODULE* WITH 
0056 ### scram b -j8 USER_CXXFLAGS="-DEDM_ML_DEBUG"
0057 ### LogTrace output goes to cout; all other output to "junk.log"
0058 
0059 #process.load("FWCore.MessageLogger.MessageLogger_cfi")
0060 #process.MessageLogger.CSCRecHit=dict()
0061 #process.MessageLogger.CSCSegment=dict()
0062 #process.MessageLogger.CSCSegAlgoST=dict()
0063 
0064 ###  module label is something like "muonCSCDigis"...
0065 #process.MessageLogger.debugModules = cms.untracked.vstring("*")
0066 #process.MessageLogger.cerr.enable = False
0067 #process.MessageLogger.files.junk = dict()
0068 #process.MessageLogger.cout = cms.untracked.PSet(
0069 #    enable    = cms.untracked.bool(True),
0070 #    threshold = cms.untracked.string("DEBUG"),
0071 #    default   = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0072 #    FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0073 #    CSCRecHit = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0074 #    CSCSegment = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0075 #  , CSCSegAlgoST = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0076 #)
0077 
0078 # Path and EndPath def
0079 process.unpack = cms.Path(process.muonCSCDigis)
0080 process.reco = cms.Path(process.csc2DRecHits * process.cscSegments)
0081 process.endjob = cms.EndPath(process.endOfProcess)
0082 
0083 # Schedule definition
0084 process.schedule = cms.Schedule(process.unpack, process.reco, process.endjob)