Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
import FWCore.ParameterSet.Config as cms

from DQM.L1TMonitor.L1TRateParams_cff import RateParams

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
l1tRate = DQMEDAnalyzer('L1TRate',

  #-------------------------------------------------------
  #-------------------- ATTENTION-------------------------
  #-------------------------------------------------------
  # The parameter lsShiftGTRates shifts the LS number for 
  # the GT Rates taken from SCAL by a value defined by the
  # user. Right now it is set to -1 to compensate a bug 
  # in SCAL that is described in:
  # https://savannah.cern.ch/support/?122368
  # As soon as this bug is corrected this value MUST be
  # set to 0 again.
  lsShiftGTRates             = cms.untracked.int32(-1),

  verbose                    = cms.untracked.bool(False),
  dqmStore                   = cms.untracked.bool(True),
  disableROOToutput          = cms.untracked.bool(True),
  inputTagScalersResults     = cms.InputTag("scalersRawToDigi"),
  inputTagL1GtDataDaq        = cms.InputTag("gtDigis"),
  useHFDeadTimeNormalization = cms.untracked.bool(False),
  
  # Plot Parameters
  minInstantLuminosity = cms.double ( 100),
  maxInstantLuminosity = cms.double(10000),
  
  # Index for the prescale set to be used as reference
  refPrescaleSet = cms.int32(0), 

  # Test if scalLS==eventLS-1  
  testEventScalLS = cms.untracked.bool(True), # True for grid jobs

  # Categories to process
  categories = cms.PSet(
    cms.PSet(
      Mu     = cms.untracked.bool(True),
      EG     = cms.untracked.bool(True),
      IsoEG  = cms.untracked.bool(True),
      Jet    = cms.untracked.bool(True),
      CenJet = cms.untracked.bool(False), # Currently there is no unmasked trigger in this category
      ForJet = cms.untracked.bool(False), # Currently there is no unmasked trigger in this category
      TauJet = cms.untracked.bool(False), # Currently there is no unmasked trigger in this category
      ETM    = cms.untracked.bool(True),
      ETT    = cms.untracked.bool(True),
      HTT    = cms.untracked.bool(True),
      HTM    = cms.untracked.bool(False),
    ),
  ),

  # Algo XSec Fits  
  # srcAlgoXSecFit = 0 -> From WbM via OMDS
  # srcAlgoXSecFit = 1 -> From python
  srcAlgoXSecFit = cms.int32(0),

  # if srcAlgoXSecFit = 0 we need to define 
  ## Online
  oracleDB   = cms.string("oracle://CMS_OMDS_LB/CMS_TRG_R"),
  pathCondDB = cms.string("/nfshome0/centraltspro/secure/"),                

  ## Offline
  #oracleDB   = cms.string("oracle://cms_orcon_adg/CMS_COND_31X_L1T"), # For offline
  #pathCondDB = cms.string("/afs/cern.ch/cms/DB/conddb"), 

  # if srcAlgoXSecFit = 1 we need to define 
  fitParameters = RateParams

)