CMS 3D CMS Logo

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