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 - 19.02.2015
0002 ## This version runs in 75X IBs 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 from Configuration.AlCa.autoCond import autoCond
0008 
0009 process = cms.Process("TEST")
0010 
0011 ## Accesses both Reco & Sim geometries from database
0012 process.load("Configuration.StandardSequences.GeometryDB_cff")
0013 
0014 ## Use the magic of autoCond instead of an explicit global tag
0015 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0016 process.GlobalTag.globaltag = autoCond["run2_mc"]
0017 
0018 process.load("Configuration.StandardSequences.MagneticField_cff")
0019 process.load("Configuration.StandardSequences.Reconstruction_cff")
0020 process.load("Configuration.StandardSequences.EndOfProcess_cff")
0021 
0022 ## Explicit configuration of CSC for postls1 = run2
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 # --- NUMBER OF EVENTS
0029 
0030 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0031 
0032 process.options   = cms.untracked.PSet( SkipEvent = cms.untracked.vstring("ProductNotFound") )
0033 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0034 
0035 ## ttbar+pu is 200 events per file so need 5 for 1000 events
0036 process.source    = cms.Source("PoolSource",
0037     fileNames = cms.untracked.vstring(
0038             "/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"
0039  ,
0040 "/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",
0041 "/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",
0042 "/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",
0043 "/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"
0044     )
0045 )
0046 
0047 # ME1/1A is  u n g a n g e d  postls1
0048 
0049 process.CSCGeometryESModule.useGangedStripsInME1a = False
0050 ##process.CSCGeometryESModule.debugV = True
0051 ##process.idealForDigiCSCGeometry.useGangedStripsInME1a = False
0052 
0053 # Turn off some flags for CSCRecHitD that are turned ON in default config
0054 
0055 process.csc2DRecHits.readBadChannels = cms.bool(False)
0056 process.csc2DRecHits.CSCUseGasGainCorrections = cms.bool(False)
0057 # Already defaults OFF...
0058 ## process.csc2DRecHits.CSCUseTimingCorrections = cms.bool(False)
0059 
0060 # Switch input for CSCRecHitD to  s i m u l a t e d  digis
0061 
0062 process.csc2DRecHits.wireDigiTag  = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi")
0063 process.csc2DRecHits.stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi")
0064 
0065 # -- ACCESSING "DEEP" PARAMETERS OF THE ALGO IS TRICKY                                                                          
0066 # THE FOLLOWING FOUND BY EXPLORING CONFIG WITH python -i                                                                   
0067 
0068 # activate dump of segments     
0069 # "3" is 4th algo CSCSegAlgoST; "0" and "1" are for ST_ME1234 and ST_ME1A configs       
0070 process.cscSegments.algo_psets[3].algo_psets[0].CSCDebug = cms.untracked.bool(True)
0071 process.cscSegments.algo_psets[3].algo_psets[1].CSCDebug = cms.untracked.bool(True)
0072 
0073 # activate the special shower code
0074 process.cscSegments.algo_psets[3].algo_psets[0].useShowering = cms.bool(True)
0075 process.cscSegments.algo_psets[3].algo_psets[1].useShowering = cms.bool(True)
0076 
0077 # --- Activate LogVerbatim IN CSCSegment                                                                                         
0078 process.MessageLogger.cout.enable = False
0079 process.MessageLogger.cout = cms.untracked.PSet(
0080     enable    = cms.untracked.bool(True),
0081     threshold = cms.untracked.string("INFO"),
0082     default   = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0083     FwkReport = cms.untracked.PSet( limit = cms.untracked.int32(-1) ),
0084     CSCSegment = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0085 )
0086 
0087 # Path and EndPath def
0088 process.reco = cms.Path(process.csc2DRecHits * process.cscSegments)
0089 process.endjob = cms.EndPath(process.endOfProcess)
0090 
0091 # Schedule definition
0092 process.schedule = cms.Schedule(process.reco, process.endjob)