test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZDCMonitorModule_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from copy import deepcopy
3 
5 
6 zdcMonitor = cms.EDAnalyzer("ZDCMonitorModule",
7 
8  # GLOBAL VARIABLES
9  debug = cms.untracked.int32(0), # make debug an int so that different values can trigger different levels of messaging
10  Online = cms.untracked.bool(False), # control online/offline differences in code
11 
12  # number of luminosity blocks to check
13  Nlumiblocks = cms.untracked.int32(1000),
14  AllowedCalibTypes = cms.untracked.vint32([0,1,2,3,4,5,6,7]),
15  BadCells = cms.untracked.vstring(),
16 
17  # Determine whether or not to check individual subdetectors
18  checkZDC= cms.untracked.bool(True),
19  checkNevents = cms.untracked.int32(1000),
20  subSystemFolder = cms.untracked.string("Hcal/ZDCMonitor"), # change to "ZDC" when code is finalized
21 
22  FEDRawDataCollection = cms.untracked.InputTag("rawDataCollector"),
23 
24  # Turn on/off timing diagnostic info
25  showTiming = cms.untracked.bool(False), # shows time taken by each process
26  diagnosticPrescaleLS = cms.untracked.int32(-1),
27  diagnosticPrescaleEvt = cms.untracked.int32(-1),
28 
29  #Specify Pedestal Units
30  pedestalsInFC = cms.untracked.bool(True),
31  #Specify Digis
32  digiLabel = cms.InputTag("hcalDigis"),
33  #Specify RecHits
34  zdcRecHitLabel = cms.InputTag("zdcreco"),
35 
36  # ZDC MONITOR
37  ZDCMonitor = cms.untracked.bool(True),
38  ZDCMonitor_checkNevents = cms.untracked.int32(1000),
39  ZDCMonitor_deadthresholdrate = cms.untracked.double(0.),
40 
41  gtLabel = cms.InputTag("l1GtUnpack"),
42 
43  zdcMonitorTask = hcalZDCMonitorTask,
44  )
45 
46 def setZDCTaskValues(process):
47  # If you import this function directly, you can then set all the individual subtask values to the global settings
48  # (This is useful if you've changed the global value, and you want it to propagate everywhere)
49 
50  # set checkNevents -- soon to be deprecated in favor of checking once/lumi block
51  checkNevents = deepcopy(process.checkNevents.value())
52  process.ZDCMonitor_checkNevents = checkNevents
53 
54  # set pedestalsInFC
55  pedestalsInFC = deepcopy(process.pedestalsInFC.value())
56  return