Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-19 23:19:58

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import sys
0004 if 'runkey=hi_run' in sys.argv:
0005   from Configuration.Eras.Era_Run3_pp_on_PbPb_approxSiStripClusters_cff import Run3_pp_on_PbPb_approxSiStripClusters
0006   process = cms.Process("DQM", Run3_pp_on_PbPb_approxSiStripClusters)
0007 else:
0008   from Configuration.Eras.Era_Run3_cff import Run3
0009   process = cms.Process("DQM", Run3)
0010 
0011 unitTest = False
0012 if 'unitTest=True' in sys.argv:
0013     unitTest=True
0014 
0015 if unitTest:
0016   process.load("DQM.Integration.config.unittestinputsource_cfi")
0017   from DQM.Integration.config.unittestinputsource_cfi import options
0018 else:
0019   # for live online DQM in P5
0020   process.load("DQM.Integration.config.inputsource_cfi")
0021   from DQM.Integration.config.inputsource_cfi import options
0022 # used in the old input source
0023 #process.DQMEventStreamHttpReader.SelectHLTOutput = cms.untracked.string('hltOutputHLTDQM')
0024 
0025 # for testing in lxplus
0026 #process.load("DQM.Integration.config.fileinputsource_cfi")
0027 #from DQM.Integration.config.fileinputsource_cfi import options
0028 
0029 #process.maxEvents = cms.untracked.PSet(
0030 #    input = cms.untracked.int32(100)
0031 #)
0032 
0033 process.load("DQM.Integration.config.environment_cfi")
0034 
0035 process.dqmEnv.subSystemFolder = 'HLT'
0036 process.dqmSaver.tag = 'HLT'
0037 process.dqmSaver.runNumber = options.runNumber
0038 # process.dqmSaverPB.tag = 'HLT'
0039 # process.dqmSaverPB.runNumber = options.runNumber
0040 
0041 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0042 process.load("Configuration.StandardSequences.MagneticField_cff")
0043 process.GlobalTrackingGeometryESProducer = cms.ESProducer( "GlobalTrackingGeometryESProducer" ) # for muon hlt dqm
0044 process.HLTSiStripClusterChargeCutNone = cms.PSet(  value = cms.double( -1.0 ) )
0045 process.ClusterShapeHitFilterESProducer = cms.ESProducer( "ClusterShapeHitFilterESProducer",
0046     ComponentName = cms.string( "ClusterShapeHitFilter" ),
0047     PixelShapeFileL1 = cms.string( "RecoTracker/PixelLowPtUtilities/data/pixelShapePhase1_loose.par" ),
0048     clusterChargeCut = cms.PSet(  refToPSet_ = cms.string( "HLTSiStripClusterChargeCutNone" ) ),
0049     PixelShapeFile = cms.string( "RecoTracker/PixelLowPtUtilities/data/pixelShapePhase1_noL1.par" )
0050 )
0051 #SiStrip Local Reco
0052 process.load("CalibTracker.SiStripCommon.TkDetMapESProducer_cfi")
0053 #Track refitters
0054 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0055 
0056 #---- for P5 (online) DB access
0057 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0058 # Condition for lxplus: change and possibly customise the GT
0059 #from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
0060 #process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run3_data', '')
0061 
0062 process.hltESSHcalSeverityLevel = cms.ESSource( "EmptyESSource",
0063     iovIsRunNotTime = cms.bool( True ),
0064     recordName = cms.string( "HcalSeverityLevelComputerRcd" ),
0065     firstValid = cms.vuint32( 1 )
0066 )
0067 process.hcalRecAlgos = cms.ESProducer( "HcalRecAlgoESProducer",
0068   RecoveredRecHitBits = cms.vstring( 'TimingAddedBit',
0069     'TimingSubtractedBit' ),
0070   SeverityLevels = cms.VPSet(
0071     cms.PSet(  ChannelStatus = cms.vstring(  ),
0072       RecHitFlags = cms.vstring(  ),
0073       Level = cms.int32( 0 )
0074     ),
0075     cms.PSet(  ChannelStatus = cms.vstring( 'HcalCellCaloTowerProb' ),
0076       RecHitFlags = cms.vstring(  ),
0077       Level = cms.int32( 1 )
0078     ),
0079     cms.PSet(  ChannelStatus = cms.vstring( 'HcalCellExcludeFromHBHENoiseSummary' ),
0080       RecHitFlags = cms.vstring( 'HSCP_R1R2',
0081         'HSCP_FracLeader',
0082         'HSCP_OuterEnergy',
0083         'HSCP_ExpFit',
0084         'ADCSaturationBit',
0085         'HBHEIsolatedNoise',
0086         'AddedSimHcalNoise' ),
0087       Level = cms.int32( 5 )
0088     ),
0089     cms.PSet(  ChannelStatus = cms.vstring(  ),
0090       RecHitFlags = cms.vstring( 'HBHEHpdHitMultiplicity',
0091         'HBHEPulseShape',
0092         'HOBit',
0093         'HFInTimeWindow',
0094         'ZDCBit',
0095         'CalibrationBit',
0096         'TimingErrorBit',
0097         'HBHETriangleNoise',
0098         'HBHETS4TS5Noise' ),
0099       Level = cms.int32( 8 )
0100     ),
0101     cms.PSet(  ChannelStatus = cms.vstring(  ),
0102       RecHitFlags = cms.vstring( 'HFLongShort',
0103         'HFPET',
0104         'HFS8S1Ratio',
0105         'HFDigiTime' ),
0106       Level = cms.int32( 11 )
0107     ),
0108     cms.PSet(  ChannelStatus = cms.vstring( 'HcalCellCaloTowerMask' ),
0109       RecHitFlags = cms.vstring( 'HBHEFlatNoise',
0110         'HBHESpikeNoise' ),
0111       Level = cms.int32( 12 )
0112     ),
0113     cms.PSet(  ChannelStatus = cms.vstring( 'HcalCellHot' ),
0114       RecHitFlags = cms.vstring(  ),
0115       Level = cms.int32( 15 )
0116     ),
0117     cms.PSet(  ChannelStatus = cms.vstring( 'HcalCellOff',
0118   'HcalCellDead' ),
0119       RecHitFlags = cms.vstring(  ),
0120       Level = cms.int32( 20 )
0121     )
0122   ),
0123   DropChannelStatusBits = cms.vstring( 'HcalCellMask',
0124     'HcalCellOff',
0125     'HcalCellDead' )
0126 )
0127 
0128 ### for pp collisions
0129 process.load("DQM.HLTEvF.HLTObjectMonitor_cff")
0130 
0131 ### for Proton-Lead collisions only (2016 Proton-Lead Era)
0132 #process.load("DQM.HLTEvF.HLTObjectMonitorProtonLead_cff")
0133 
0134 process.load("DQM.HLTEvF.HLTObjectMonitor_Client_cff")
0135 
0136 #process.p = cms.EndPath(process.hlts+process.hltsClient)
0137 
0138 process.pp = cms.Path(process.dqmEnv+process.dqmSaver)#+process.dqmSaverPB)
0139 #process.hltResults.plotAll = True
0140 
0141 
0142 ### process customizations included here
0143 from DQM.Integration.config.online_customizations_cfi import *
0144 process = customise(process)
0145 print("Final Source settings:", process.source)