Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 ## Process sim digi events with CSC rechit & segment builders - Tim Cox - 11.02.2015
0002 ## This version runs in 7_4_0_preX on a 7_3_0 simulated data DIGI relval sample.
0003 ## Run on  1000  events of a 25ns PU TTbar sample
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("TEST")
0008 
0009 # Geometry access changed after Yana hypernews post 10.02.2015
0010 # had been using...
0011 ##process.load("Configuration.StandardSequences.Geometry_cff")
0012 # which just points to...
0013 ##process.load("Configuration.Geometry.GeometryIdeal_cff")
0014 # yana wants...
0015 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0016 
0017 process.load("Configuration.StandardSequences.MagneticField_cff")
0018 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0019 ##process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0020 process.load("Configuration.StandardSequences.Reconstruction_cff")
0021 process.load("Configuration.StandardSequences.EndOfProcess_cff")
0022 
0023 process.load("CalibMuon.CSCCalibration.CSCChannelMapper_cfi")
0024 process.load("CalibMuon.CSCCalibration.CSCIndexer_cfi")
0025 process.CSCIndexerESProducer.AlgoName = cms.string("CSCIndexerPostls1")
0026 process.CSCChannelMapperESProducer.AlgoName = cms.string("CSCChannelMapperPostls1")
0027 
0028 # --- MATCH GT TO RELEASE AND DATA SAMPLE
0029 
0030 process.GlobalTag.globaltag = "MCRUN2_73_V5::All"
0031 
0032 # --- NUMBER OF EVENTS
0033 
0034 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0035 
0036 process.options   = cms.untracked.PSet( SkipEvent = cms.untracked.vstring("ProductNotFound") )
0037 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0038 
0039 ## ttbar+pu is 200 events per file so need 5 for 1000 events
0040 process.source    = cms.Source("PoolSource",
0041     fileNames = cms.untracked.vstring(
0042             "/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"
0043  ,
0044 "/store/relval/CMSSW_7_3_0/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_73_V7_71XGENSIM-v1/00000/0A963931-A181-E411-B4C5-0026189438DC.root",
0045 "/store/relval/CMSSW_7_3_0/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_73_V7_71XGENSIM-v1/00000/145BE1DC-A181-E411-816D-0025905A609E.root",
0046 "/store/relval/CMSSW_7_3_0/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_73_V7_71XGENSIM-v1/00000/14DDEDD0-A181-E411-9476-0026189438F8.root",
0047 "/store/relval/CMSSW_7_3_0/RelValTTbar_13/GEN-SIM-DIGI-RAW-HLTDEBUG/PU25ns_MCRUN2_73_V7_71XGENSIM-v1/00000/18F85F36-A181-E411-8AF4-0025905B85D6.root"
0048     )
0049 )
0050 
0051 # ME1/1A is  u n g a n g e d  postls1
0052 
0053 process.CSCGeometryESModule.useGangedStripsInME1a = False
0054 ##process.CSCGeometryESModule.debugV = True
0055 ##process.idealForDigiCSCGeometry.useGangedStripsInME1a = False
0056 
0057 # Turn off some flags for CSCRecHitD that are turned ON in default config
0058 
0059 process.csc2DRecHits.readBadChannels = cms.bool(False)
0060 process.csc2DRecHits.CSCUseGasGainCorrections = cms.bool(False)
0061 # Already defaults OFF...
0062 ## process.csc2DRecHits.CSCUseTimingCorrections = cms.bool(False)
0063 
0064 # Switch input for CSCRecHitD to  s i m u l a t e d  digis
0065 
0066 process.csc2DRecHits.wireDigiTag  = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi")
0067 process.csc2DRecHits.stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi")
0068 
0069 # -- ACCESSING "DEEP" PARAMETERS OF THE ALGO IS TRICKY                                                                          
0070 # THE FOLLOWING FOUND BY EXPLORING CONFIG WITH python -i                                                                        
0071 # "3" is 4th algo CSCSegAlgoST; "0" and "1" are for ST_ME1234 and ST_ME1A configs       
0072 # activate dump of segments  
0073 process.cscSegments.algo_psets[3].algo_psets[0].CSCDebug = cms.untracked.bool(True)
0074 process.cscSegments.algo_psets[3].algo_psets[1].CSCDebug = cms.untracked.bool(True)
0075 
0076 # activate the special shower code
0077 process.cscSegments.algo_psets[3].algo_psets[0].useShowering = cms.bool(True)
0078 process.cscSegments.algo_psets[3].algo_psets[1].useShowering = cms.bool(True)
0079 
0080 # --- Activate LogVerbatim IN CSCSegment                                                                                         
0081 process.MessageLogger.cerr.enable = False
0082 process.MessageLogger.cout = cms.untracked.PSet(
0083     enable    = cms.untracked.bool(True),
0084     threshold = cms.untracked.string("INFO"),
0085     default   = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0086     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0087     CSCSegment = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0088 )
0089 
0090 # Path and EndPath def
0091 process.reco = cms.Path(process.csc2DRecHits * process.cscSegments)
0092 process.endjob = cms.EndPath(process.endOfProcess)
0093 
0094 # Schedule definition
0095 process.schedule = cms.Schedule(process.reco, process.endjob)