Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-23 03:13:46

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.load("Configuration.StandardSequences.GeometryDB_cff")
0006 process.load("Configuration/StandardSequences/MagneticField_cff")
0007 process.load("Configuration/StandardSequences/FrontierConditions_GlobalTag_cff")
0008 # for Beam
0009 #process.load("Configuration.StandardSequences.Reconstruction_cff")
0010 # for Cosmics
0011 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0012 
0013 process.load("Configuration/StandardSequences/RawToDigi_cff")
0014 process.load("CalibMuon.Configuration.getCSCConditions_frontier_cff")
0015 
0016 # if you want to look at the simDigis rather than the raw2digi digis in simulation
0017 #process.csc2DRecHits.wireDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCWireDigi")
0018 #process.csc2DRecHits.stripDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCStripDigi")
0019 
0020 # specify the global tag to use..
0021 # more info and a list of current tags can be found at
0022 # https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0023 #process.GlobalTag.globaltag = 'IDEAL_31X::All'
0024 process.GlobalTag.globaltag ='START37_V4::All'
0025 #'MC_37Y_V4::All'
0026 #'START38_V3::All'
0027 
0028 #from CondCore.DBCommon.CondDBSetup_cfi import *
0029 #process.myProcess = cms.ESSource("PoolDBESSource",
0030 #                                  CondDBSetup,
0031 #                                  connect = cms.string("sqlite_file:mySqliteFile.db"),
0032 #                                  toGet = cms.VPSet(cms.PSet(record = cms.string("CSCDBGainsRcd"),
0033 #                                                             tag = cms.string("CSCDBGains_2010_mc")
0034 #                                                             tag = cms.string("CSCDBGains_express")                                                             
0035 #                                                             ))
0036 #                                  )
0037 #process.es_prefer_mybadWires = cms.ESPrefer("PoolDBESSource","myProcess")
0038 
0039 #### to use local sqlite file
0040 process.cscConditions.connect='sqlite_file:mySqliteFile.db'
0041 process.cscConditions.toGet = cms.VPSet(
0042         cms.PSet(record = cms.string('CSCDBGainsRcd'),
0043                  tag = cms.string('CSCDBGains_ME42')),
0044         cms.PSet(record = cms.string('CSCDBNoiseMatrixRcd'),
0045                  tag = cms.string('CSCDBNoiseMatrix_ME42')),
0046         cms.PSet(record = cms.string('CSCDBCrosstalkRcd'),
0047                  tag = cms.string('CSCDBCrosstalk_ME42')),
0048         cms.PSet(record = cms.string('CSCDBPedestalsRcd'),
0049                  tag = cms.string('CSCDBPedestals_ME42'))
0050 )
0051 
0052 process.es_prefer_cscConditions = cms.ESPrefer("PoolDBESSource","cscConditions")
0053 
0054 
0055 
0056 # points to CMSSW_3_1_0_pre2 single muon (Pt = 100) relval sample.  Sim data must contain
0057 process.source = cms.Source("PoolSource",
0058   fileNames = cms.untracked.vstring(
0059 #        '/store/relval/CMSSW_3_1_0_pre6/RelValSingleMuPt100/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_31X_v1/0002/746C9E4E-D932-DE11-B1E6-001617DBCF90.root',
0060 #        '/store/relval/CMSSW_3_1_0_pre6/RelValSingleMuPt100/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_31X_v1/0002/5C7FE942-1733-DE11-880D-001617C3B77C.root',
0061 #        '/store/relval/CMSSW_3_1_0_pre6/RelValSingleMuPt100/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_31X_v1/0002/32F159D3-D832-DE11-9A86-000423D98A44.root'
0062 
0063 
0064 #         '/store/relval/CMSSW_3_8_0_pre4/RelValZMM/GEN-SIM-DIGI-RAW-HLTDEBUG/START38_V2-v1/0001/80164129-DA7A-DF11-AEFD-00304879FA4C.root'
0065                                 
0066 #          '/store/relval/CMSSW_3_7_0/RelValSingleMuPt100/GEN-SIM-RECO/MC_37Y_V4-v1/0025/BCFF63C8-5E69-DF11-B141-003048678FC4.root'
0067           '/store/relval/CMSSW_3_7_0/RelValSingleMuPt100/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_37Y_V4-v1/0025/3248FA54-5F69-DF11-A59E-0030486792BA.root'
0068 )
0069 )
0070 
0071 # recommend at least 10k events (single Muon Simulation)
0072 process.maxEvents = cms.untracked.PSet(
0073     input = cms.untracked.int32(10000)
0074 )
0075 
0076 # This is needed to avoid using RPC rechits in STA muon production
0077 #process.standAloneMuons.STATrajBuilderParameters.FilterParameters.EnableRPCMeasurement = cms.bool(False)
0078 #process.standAloneMuons.STATrajBuilderParameters.BWFilterParameters.EnableRPCMeasurement = cms.bool(False)
0079 process.cosmicMuonsEndCapsOnly.TrajectoryBuilderParameters.EnableRPCMeasurement = cms.untracked.bool(False)
0080 #process.SETMuonSeed.SETTrajBuilderParameters.FilterParameters.EnableRPCMeasurement = cms.bool(False)
0081 
0082 process.cscValidation = cms.EDAnalyzer("CSCValidation",
0083     # name of file which will contain output
0084     rootFileName = cms.untracked.string('valHists_sim.root'),
0085     # basically turns on/off residual plots which use simhits
0086     isSimulation = cms.untracked.bool(False),
0087     # stores a tree of info for the first 1.5M rechits and 2M segments
0088     # used to make 2D scatter plots of global positions.  Significantly increases
0089     # size of output root file, so beware...
0090     writeTreeToFile = cms.untracked.bool(True),
0091     # mostly for MC and RECO files which may have dropped the digis
0092     useDigis = cms.untracked.bool(False),
0093     # lots of extra, more detailed plots
0094     detailedAnalysis = cms.untracked.bool(False),
0095     # set to true to only look at events with CSC L1A
0096     useTriggerFilter = cms.untracked.bool(False),
0097     # set to true to only look at events with clean muon (based on STA muon)
0098     useQualityFilter = cms.untracked.bool(False),
0099     alctDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCALCTDigi"),
0100     clctDigiTag = cms.InputTag("simMuonCSCDigis","MuonCSCCLCTDigi"),
0101     corrlctDigiTag =  cms.InputTag("simMuonCSCDigis","MuonCSCCorrelatedLCTDigi"),
0102     # Input tags for various collections CSCValidation looks at
0103     stripDigiTag = cms.InputTag("muonCSCDigis","MuonCSCStripDigi"),
0104     wireDigiTag = cms.InputTag("muonCSCDigis","MuonCSCWireDigi"),
0105     compDigiTag = cms.InputTag("muonCSCDigis","MuonCSCComparatorDigi"),
0106     cscRecHitTag = cms.InputTag("csc2DRecHits"),
0107     cscSegTag = cms.InputTag("cscSegments"),
0108     saMuonTag = cms.InputTag("cosmicMuonsEndCapsOnly"),
0109     l1aTag = cms.InputTag("gtDigis"),
0110     simHitTag = cms.InputTag("g4SimHits", "MuonCSCHits")
0111 )
0112 
0113 # for RECO or SIM  (if digis were not saved, make sure to set useDigis = False)
0114 #process.p = cms.Path(process.cscValidation)
0115 # to look at raw2digi digis + standard reconstruction (semi-hack, requires 2 file solution, mainly for looking at relvals)
0116 ###process.p = cms.Path(process.muonCSCDigis * process.cscValidation)
0117 process.p = cms.Path( process.muonCSCDigis *process.csc2DRecHits * process.cscSegments* process.cscValidation)
0118 # for RAW (Cosmics) if you want to look at Trigger and Standalone info
0119 #process.p = cms.Path(process.gtDigis *
0120 #                     process.muonCSCDigis * process.csc2DRecHits * process.cscSegments *
0121 #                     process.offlineBeamSpot * process.CosmicMuonSeedEndCapsOnly*process.cosmicMuonsEndCapsOnly *
0122 #                     process.cscValidation)
0123 #process.p = cms.Path(process.muonCSCDigis * process.csc2DRecHits * process.cscSegments *
0124 #                     process.offlineBeamSpot * process.CosmicMuonSeedEndCapsOnly * process.cosmicMuonsEndCapsOnly *
0125 #                     process.cscValidation)
0126