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