CMS 3D CMS Logo

ecalSelectiveReadoutValidation_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 ecalSelectiveReadoutValidation = DQMEDAnalyzer('EcalSelectiveReadoutValidation',
5  #Input collection names:
6  EbDigiCollection = cms.InputTag("simEcalDigis","ebDigis"),
7  EeDigiCollection = cms.InputTag("simEcalDigis","eeDigis"),
8  EbUnsuppressedDigiCollection = cms.InputTag("simEcalUnsuppressedDigis"),
9  EeUnsuppressedDigiCollection = cms.InputTag("simEcalUnsuppressedDigis"),
10  EbSrFlagCollection = cms.InputTag("simEcalDigis","ebSrFlags"),
11  EeSrFlagCollection = cms.InputTag("simEcalDigis","eeSrFlags"),
12  EbSrFlagFromTTCollection = cms.InputTag("simEcalDigis","ebSrFlagsFromTT"),
13  EeSrFlagFromTTCollection = cms.InputTag("simEcalDigis","eeSrFlagsFromTT"),
14 
15  EbSimHitCollection = cms.InputTag("g4SimHits","EcalHitsEB"),
16  EeSimHitCollection = cms.InputTag("g4SimHits","EcalHitsEE"),
17  TrigPrimCollection = cms.InputTag("simEcalTriggerPrimitiveDigis"),
18  EbRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
19  EeRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
20  FEDRawCollection = cms.InputTag("source"),
21  EventHeaderCollection = cms.InputTag("ecalEBunpacker"),
22 
23  #Versbose mode switch:
24  verbose = cms.untracked.bool(False),
25 
26  #Name of the output histrogram root file. If empty histogram are not
27  #to a file (for DQM mode).
28  outputFile = cms.untracked.string(''),
29 
30  #Switch to enable local amplitude reconstruction from digis instead
31  #of RecHit's:
32  LocalReco = cms.bool(True),
33 
34  #Weights used for the local reconstruction of the signal amplitude:
35  weights = cms.vdouble(-0.295252, -0.295252, -0.295252, -0.286034, 0.240376,
36  0.402839, 0.322126, 0.172504, 0.0339461, 0.0),
37 
38  # Index of time sample (starting from 1) the first DCC weights is implied.
39  # Used for histogram of DCC filter output.
40  ecalDccZs1stSample = cms.int32(2),
41 
42  #DCC ZS FIR weights: weights are rounded in such way that in Hw
43  #representation (weigth*1024 rounded to nearest integer) the sum is null.
44  #Used for the histogram of DCC filter output.
45  dccWeights = cms.vdouble(-0.374, -0.374, -0.3629, 0.2721,
46  0.4681, 0.3707),
47 
48  #ZS threshold used to validate ZS application in EB
49  #Threshold in ADC count. Resolution of 1/4th ADC count.
50  ebZsThrADCCount = cms.double(9./4.),
51 
52  #ZS threshold used to validate ZS application in EE
53  #Threshold in ADC count. Resolution of 1/4th ADC count.
54  eeZsThrADCCount = cms.double(15./4.),
55 
56  #Switch to express TP in GeV for the histograms:
57  tpInGeV = cms.bool(True),
58 
59  #ROOT/DQM directory where to store the histograms
60  histDir = cms.string('EcalDigisV/EcalDigiTask'),
61 
62  #Switch to fill histograms with event rate instead of event count.
63  #Applies only to some histograms.
64  useEventRate = cms.bool(True),
65 
66  #List of histograms to produce. Run the module once with LogInfo enabled
67  #in order to get the list of available histograms. If the list contains
68  #the keyword "all", every available histogram is produced.
69  histograms = cms.untracked.vstring('all'),
70 
71 
72  #List of FEDs to exclude in comparison of data with emulation
73  excludedFeds = cms.vint32(),
74 
75  #File to log SRP algorithm errors (differences between SRF from
76  #data file and SRF from SRP emulation). If empty logging
77  #is disabled:
78  srpAlgoErrorLogFile = cms.untracked.string(''),
79 
80  #File to log SRP decission application errors. If empty logging
81  #is disabled:
82  srApplicationErrorLogFile = cms.untracked.string(''),
83 )
84 
85 
86 
87 from Configuration.Eras.Modifier_fastSim_cff import fastSim
88 fastSim.toModify(ecalSelectiveReadoutValidation,
89  EbSimHitCollection = "fastSimProducer:EcalHitsEB",
90  EeSimHitCollection = "fastSimProducer:EcalHitsEE"
91 )
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1