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