Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:04

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0004 ecalSelectiveReadoutValidation = DQMEDAnalyzer('EcalSelectiveReadoutValidation',
0005     #Input collection names:
0006     EbDigiCollection = cms.InputTag("simEcalDigis","ebDigis"),
0007     EeDigiCollection = cms.InputTag("simEcalDigis","eeDigis"),
0008     EbUnsuppressedDigiCollection = cms.InputTag("simEcalUnsuppressedDigis"),
0009     EeUnsuppressedDigiCollection = cms.InputTag("simEcalUnsuppressedDigis"),
0010     EbSrFlagCollection = cms.InputTag("simEcalDigis","ebSrFlags"),
0011     EeSrFlagCollection = cms.InputTag("simEcalDigis","eeSrFlags"),
0012     EbSrFlagFromTTCollection = cms.InputTag("simEcalDigis","ebSrFlagsFromTT"),
0013     EeSrFlagFromTTCollection = cms.InputTag("simEcalDigis","eeSrFlagsFromTT"),
0014 
0015     EbSimHitCollection = cms.InputTag("g4SimHits","EcalHitsEB"),
0016     EeSimHitCollection = cms.InputTag("g4SimHits","EcalHitsEE"),
0017     TrigPrimCollection = cms.InputTag("simEcalTriggerPrimitiveDigis"),
0018     EbRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
0019     EeRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
0020     FEDRawCollection = cms.InputTag("source"),
0021     EventHeaderCollection = cms.InputTag("ecalEBunpacker"),
0022 
0023     #Versbose mode switch:
0024     verbose = cms.untracked.bool(False),
0025 
0026     #Name of the output histrogram root file. If empty histogram are not
0027     #to a file (for DQM mode).
0028     outputFile = cms.untracked.string(''),
0029 
0030     #Switch to enable local amplitude reconstruction from digis instead
0031     #of RecHit's:
0032     LocalReco = cms.bool(True),
0033 
0034     #Weights used for the local reconstruction of the signal amplitude:
0035     weights = cms.vdouble(-0.295252, -0.295252, -0.295252, -0.286034, 0.240376,
0036                           0.402839, 0.322126, 0.172504, 0.0339461, 0.0),
0037 
0038     # Index of time sample (starting from 1) the first DCC weights is implied.
0039     # Used for histogram of DCC filter output.
0040     ecalDccZs1stSample = cms.int32(2),
0041 
0042     #DCC ZS FIR weights: weights are rounded in such way that in Hw
0043     #representation (weigth*1024 rounded to nearest integer) the sum is null.
0044     #Used for the histogram of DCC filter output.
0045     dccWeights = cms.vdouble(-0.374, -0.374, -0.3629, 0.2721,
0046                              0.4681, 0.3707),
0047 
0048     #ZS threshold used to validate ZS application in EB
0049     #Threshold in ADC count. Resolution of 1/4th ADC count.
0050     ebZsThrADCCount = cms.double(9./4.),
0051 
0052     #ZS threshold used to validate ZS application in EE
0053     #Threshold in ADC count. Resolution of 1/4th ADC count.
0054     eeZsThrADCCount = cms.double(15./4.),
0055 
0056     #Switch to express TP in GeV for the histograms:
0057     tpInGeV = cms.bool(True),
0058 
0059     #ROOT/DQM directory where to store the histograms
0060     histDir = cms.string('EcalDigisV/EcalDigiTask'),
0061 
0062     #Switch to fill histograms with event rate instead of event count.
0063     #Applies only to some histograms.
0064     useEventRate = cms.bool(True),
0065 
0066     #List of histograms to produce. Run the module once with LogInfo enabled
0067     #in order to get the list of available histograms. If the list contains
0068     #the keyword "all", every available histogram is produced.
0069     histograms = cms.untracked.vstring('all'),
0070 
0071 
0072     #List of FEDs to exclude in comparison of data with emulation
0073     excludedFeds = cms.vint32(),
0074 
0075     #File to log SRP algorithm errors (differences between SRF from
0076     #data file and SRF from SRP emulation). If empty logging
0077     #is disabled:
0078     srpAlgoErrorLogFile = cms.untracked.string(''),
0079 
0080     #File to log SRP decission application errors. If empty logging
0081     #is disabled:
0082     srApplicationErrorLogFile = cms.untracked.string(''),
0083 )
0084 
0085 
0086 
0087 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0088 fastSim.toModify(ecalSelectiveReadoutValidation,
0089     EbSimHitCollection = "fastSimProducer:EcalHitsEB",
0090     EeSimHitCollection = "fastSimProducer:EcalHitsEE"
0091 )