Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-21 01:09:46

0001 # Test CSCValidation in 12_x - Tim Cox - 15.07.2022
0002 # from SingleMuon RAW
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 from Configuration.Eras.Era_Run3_cff import Run3
0007 process = cms.Process("TEST", Run3)
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 # 2022
0017 ##process.GlobalTag.globaltag = 'auto:phase1_2022_realistic' ## FAILS IN 12_3_6
0018 # 12_3_6 Prompt
0019 process.GlobalTag.globaltag = '123X_dataRun3_Prompt_v12'
0020 
0021 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32( 5000 ) )  ## UP TO 5K EVENTS
0022 process.options = cms.untracked.PSet( SkipEvent = cms.untracked.vstring('ProductNotFound') )
0023 process.source = cms.Source("PoolSource",
0024     fileNames = cms.untracked.vstring(
0025 ##     "root://eoscms.cern.ch://eos/cms/tier0/store/data/Run2022B/SingleMuon/RAW/v1/000/355/208/00000/3004d340-6e3d-4223-9eb2-7d50a65bfe57.root"
0026   "/store/data/Run2022B/SingleMuon/RAW-RECO/ZMu-PromptReco-v1/000/355/558/00000/ce02cf0e-e8f7-471c-b533-61b6f124c095.root"
0027 )
0028 )
0029 
0030 process.cscValidation = cms.EDAnalyzer("CSCValidation",
0031     rootFileName = cms.untracked.string('cscv.root'),
0032     isSimulation = cms.untracked.bool(False),
0033     writeTreeToFile = cms.untracked.bool(True),
0034     useDigis = cms.untracked.bool(True),
0035     detailedAnalysis = cms.untracked.bool(False),
0036     useTriggerFilter = cms.untracked.bool(False),
0037     useQualityFilter = cms.untracked.bool(False),
0038     makeStandalonePlots = cms.untracked.bool(False),
0039     makeTimeMonitorPlots = cms.untracked.bool(True),
0040     rawDataTag = cms.InputTag("rawDataCollector"),
0041     alctDigiTag = cms.InputTag("muonCSCDigis","MuonCSCALCTDigi"),
0042     clctDigiTag = cms.InputTag("muonCSCDigis","MuonCSCCLCTDigi"),
0043     corrlctDigiTag = cms.InputTag("muonCSCDigis","MuonCSCCorrelatedLCTDigi"),
0044     stripDigiTag = cms.InputTag("muonCSCDigis","MuonCSCStripDigi"),
0045     wireDigiTag = cms.InputTag("muonCSCDigis","MuonCSCWireDigi"),
0046     compDigiTag = cms.InputTag("muonCSCDigis","MuonCSCComparatorDigi"),
0047     cscRecHitTag = cms.InputTag("csc2DRecHits"),
0048     cscSegTag = cms.InputTag("cscSegments"),
0049     saMuonTag = cms.InputTag("standAloneMuons"),
0050     l1aTag = cms.InputTag("gtDigis"),
0051     hltTag = cms.InputTag("TriggerResults::HLT"),
0052     makeHLTPlots = cms.untracked.bool(True),
0053     simHitTag = cms.InputTag("g4SimHits", "MuonCSCHits")
0054 )
0055 
0056 # From RECO (and FEVT?)
0057 ##process.p = cms.Path(process.cscValidation)
0058 
0059 # From RAW
0060 process.p = cms.Path(process.muonCSCDigis * process.csc2DRecHits * process.cscSegments * process.cscValidation)
0061 
0062 # Path and EndPath definitions
0063 ##process.raw2digi_step = cms.Path(process.RawToDigi)
0064 ##process.reconstruction_step = cms.Path(process.reconstruction)
0065 ##process.cscvalidation_step = cms.Path(process.cscValidation)
0066 process.endjob_step = cms.EndPath(process.endOfProcess)
0067 
0068 # Schedule definition
0069 ##process.schedule = cms.Schedule(process.raw2digi_step,process.reconstruction_step,process.cscvalidation_step,process.endjob_step)
0070 process.schedule = cms.Schedule(process.p,process.endjob_step)