Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-13 23:39:11

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