Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 ## Dump  10  events in CSC rechit builder - Tim Cox - 07.11.2012
0002 ## This version runs in 6_0_1_PostLS1 on a simulated data DIGI sample.
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 process = cms.Process("TEST")
0007 
0008 process.load("Configuration/StandardSequences/Geometry_cff")
0009 process.load("Configuration/StandardSequences/MagneticField_cff")
0010 process.load("Configuration/StandardSequences/FrontierConditions_GlobalTag_cff")
0011 ##process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0012 process.load("Configuration.StandardSequences.Reconstruction_cff")
0013 process.load("Configuration.StandardSequences.EndOfProcess_cff")
0014 
0015 # --- MATCH GT TO RELEASE AND DATA SAMPLE
0016 
0017 process.GlobalTag.globaltag = "POSTLS161_V11::All"
0018 
0019 # --- NUMBER OF EVENTS
0020 
0021 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
0022 
0023 process.options   = cms.untracked.PSet( SkipEvent = cms.untracked.vstring("ProductNotFound") )
0024 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0025 process.source    = cms.Source("PoolSource",
0026     fileNames = cms.untracked.vstring(
0027          "/store/relval/CMSSW_6_0_1_PostLS1v1-PU_POSTLS161_V10/RelValSingleMuPt100_UPGpostls1/GEN-SIM-DIGI-RAW/v1/00000/38F76FF5-0126-E211-BAA2-002618943971.root"
0028     )
0029 )
0030 
0031 # ME1/1A is  u n g a n g e d  Post-LS1
0032 
0033 process.CSCGeometryESModule.useGangedStripsInME1a = False
0034 ##process.CSCGeometryESModule.debugV = True
0035 ##process.idealForDigiCSCGeometry.useGangedStripsInME1a = False
0036 
0037 # Turn off some flags for CSCRecHitD that are turned ON in default config
0038 
0039 process.csc2DRecHits.readBadChannels = cms.bool(False)
0040 ##process.csc2DRecHits.CSCUseTimingCorrections = cms.bool(False)
0041 process.csc2DRecHits.CSCUseGasGainCorrection = cms.bool(False)
0042 
0043 # Switch input for CSCRecHitD to  s i m u l a t e d  digis
0044 
0045 process.csc2DRecHits.wireDigiTag  = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi")
0046 process.csc2DRecHits.stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi")
0047 
0048 
0049 # --- TO ACTIVATE LogTrace IN CSCRecHitD NEED TO COMPILE IT WITH scram b -j8 USER_CXXFLAGS="-DEDM_ML_DEBUG"
0050 # LogTrace output goes to cout; all other output to "junk.log"
0051 
0052 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0053 # module label is something like "muonCSCDigis"...
0054 process.MessageLogger.debugModules = cms.untracked.vstring("*")
0055 process.MessageLogger.cerr.enable = False
0056 process.MessageLogger.files.junk = dict()
0057 process.MessageLogger.cout = cms.untracked.PSet(
0058     enable    = cms.untracked.bool(True),
0059     threshold = cms.untracked.string("DEBUG"),
0060     default   = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0061     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0062 ##    , CSCGeometry = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0063     , CSCRecHit = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0064 ##    , CSCRecHitDBuilder = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0065 ##    , CSCMake2DRecHit = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0066 ##    , CSCHitFromStripOnly = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0067 ##    , CSCRecoConditions = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0068 )
0069 
0070 
0071 
0072 # Path and EndPath def
0073 process.reco = cms.Path(process.csc2DRecHits)
0074 process.endjob = cms.EndPath(process.endOfProcess)
0075 
0076 # Schedule definition
0077 process.schedule = cms.Schedule(process.reco, process.endjob)