Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:02

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