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 - 10.07.2022
0002 # from FEVT in Express but unpack and local reco
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 Express
0019 process.GlobalTag.globaltag = '123X_dataRun3_Express_v10'
0020 
0021 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32( 5000 ) )  ## PROCESS 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         "/store/express/Run2022B/ExpressPhysics/FEVT/Express-v1/000/355/135/00000/0135acb6-75de-4798-9b1f-7fca60fa4029.root"
0026 )
0027 )
0028 
0029 process.cscValidation = cms.EDAnalyzer("CSCValidation",
0030     rootFileName = cms.untracked.string('cscv.root'),
0031     isSimulation = cms.untracked.bool(False),
0032     writeTreeToFile = cms.untracked.bool(True),
0033     useDigis = cms.untracked.bool(True),
0034     detailedAnalysis = cms.untracked.bool(False),
0035     useTriggerFilter = cms.untracked.bool(False),
0036     useQualityFilter = cms.untracked.bool(False),
0037     makeStandalonePlots = cms.untracked.bool(False),
0038     makeTimeMonitorPlots = cms.untracked.bool(True),
0039     rawDataTag = cms.InputTag("rawDataCollector"),
0040     alctDigiTag = cms.InputTag("muonCSCDigis","MuonCSCALCTDigi"),
0041     clctDigiTag = cms.InputTag("muonCSCDigis","MuonCSCCLCTDigi"),
0042     corrlctDigiTag = cms.InputTag("muonCSCDigis","MuonCSCCorrelatedLCTDigi"),
0043     stripDigiTag = cms.InputTag("muonCSCDigis","MuonCSCStripDigi"),
0044     wireDigiTag = cms.InputTag("muonCSCDigis","MuonCSCWireDigi"),
0045     compDigiTag = cms.InputTag("muonCSCDigis","MuonCSCComparatorDigi"),
0046     cscRecHitTag = cms.InputTag("csc2DRecHits"),
0047     cscSegTag = cms.InputTag("cscSegments"),
0048     saMuonTag = cms.InputTag("standAloneMuons"),
0049     l1aTag = cms.InputTag("gtDigis"),
0050     hltTag = cms.InputTag("TriggerResults::HLT"),
0051     makeHLTPlots = cms.untracked.bool(True),
0052     simHitTag = cms.InputTag("g4SimHits", "MuonCSCHits")
0053 )
0054 
0055 # From RECO (and FEVT?)
0056 ##process.p = cms.Path(process.cscValidation)
0057 
0058 # From RAW
0059 process.p = cms.Path(process.muonCSCDigis * process.csc2DRecHits * process.cscSegments * process.cscValidation)
0060 
0061 # Path and EndPath definitions
0062 ##process.raw2digi_step = cms.Path(process.RawToDigi)
0063 ##process.reconstruction_step = cms.Path(process.reconstruction)
0064 ##process.cscvalidation_step = cms.Path(process.cscValidation)
0065 process.endjob_step = cms.EndPath(process.endOfProcess)
0066 
0067 # Schedule definition
0068 ##process.schedule = cms.Schedule(process.raw2digi_step,process.reconstruction_step,process.cscvalidation_step,process.endjob_step)
0069 process.schedule = cms.Schedule(process.p,process.endjob_step)