CMS 3D CMS Logo

ALCARECOHcalCalPedestal_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #------------------------------------------------
4 #AlCaReco filtering for HCAL pedestal:
5 #------------------------------------------------
6 
7 import EventFilter.HcalRawToDigi.HcalCalibTypeFilter_cfi
8 hcalCalibPedestal = EventFilter.HcalRawToDigi.HcalCalibTypeFilter_cfi.hcalCalibTypeFilter.clone(
9  # InputLabel = cms.string('rawDataCollector'),
10  InputLabel = cms.string('hltHcalCalibrationRaw::HLT'),
11  # InputLabel = cms.InputTag("hltEcalCalibrationRaw","","HLT"),
12  CalibTypes = cms.vint32( 1 ),
13  FilterSummary = cms.untracked.bool( False )
14  )
15 
16 #add GT digi:
18 gtDigisAlCaPedestal = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
19 
20 import EventFilter.HcalRawToDigi.HcalRawToDigi_cfi
21 hcalDigiAlCaPedestal = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
22 hcalDigiAlCaPedestal.InputLabel = cms.InputTag('hltHcalCalibrationRaw')
23 
24 qie10Digis = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
25 qie10Digis.InputLabel = cms.InputTag('hltHcalCalibrationRaw')
26 qie10Digis.FEDs = cms.untracked.vint32(1132)
27 
28 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hbhe_cfi
29 hbherecoPedestal = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hbhe_cfi.hbheprereco.clone()
30 hbherecoPedestal.digiLabel = cms.InputTag('hcalDigiAlCaPedestal')
31 hbherecoPedestal.firstSample = cms.int32(0)
32 hbherecoPedestal.samplesToAdd = cms.int32(4)
33 
34 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi
35 hfrecoPedestal = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi.hfreco.clone()
36 hfrecoPedestal.digiLabel = cms.InputTag('hcalDigiAlCaPedestal')
37 hfrecoPedestal.firstSample = cms.int32(0)
38 hfrecoPedestal.samplesToAdd = cms.int32(2)
39 
40 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi
41 horecoPedestal = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi.horeco.clone()
42 horecoPedestal.digiLabel = cms.InputTag('hcalDigiAlCaPedestal')
43 horecoPedestal.firstSample = cms.int32(0)
44 horecoPedestal.samplesToAdd = cms.int32(4)
45 
46 # switch off "Hcal ZS in reco":
47 hbherecoPedestal.dropZSmarkedPassed = cms.bool(False)
48 hfrecoPedestal.dropZSmarkedPassed = cms.bool(False)
49 horecoPedestal.dropZSmarkedPassed = cms.bool(False)
50 
51 hcalLocalRecoSequencePedestal = cms.Sequence(hbherecoPedestal*hfrecoPedestal*horecoPedestal)
52 
53 seqALCARECOHcalCalPedestal = cms.Sequence(hcalCalibPedestal*
54  hcalDigiAlCaPedestal*
55  qie10Digis*
56  gtDigisAlCaPedestal*
57  hcalLocalRecoSequencePedestal)