CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
17 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
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 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hbhe_cfi
25 hbherecoPedestal = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hbhe_cfi.hbheprereco.clone()
26 hbherecoPedestal.digiLabel = cms.InputTag('hcalDigiAlCaPedestal')
27 hbherecoPedestal.firstSample = cms.int32(0)
28 hbherecoPedestal.samplesToAdd = cms.int32(4)
29 
30 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi
31 hfrecoPedestal = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi.hfreco.clone()
32 hfrecoPedestal.digiLabel = cms.InputTag('hcalDigiAlCaPedestal')
33 hfrecoPedestal.firstSample = cms.int32(0)
34 hfrecoPedestal.samplesToAdd = cms.int32(2)
35 
36 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi
37 horecoPedestal = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi.horeco.clone()
38 horecoPedestal.digiLabel = cms.InputTag('hcalDigiAlCaPedestal')
39 horecoPedestal.firstSample = cms.int32(0)
40 horecoPedestal.samplesToAdd = cms.int32(4)
41 
42 # switch off "Hcal ZS in reco":
43 hbherecoPedestal.dropZSmarkedPassed = cms.bool(False)
44 hfrecoPedestal.dropZSmarkedPassed = cms.bool(False)
45 horecoPedestal.dropZSmarkedPassed = cms.bool(False)
46 
47 hcalLocalRecoSequencePedestal = cms.Sequence(hbherecoPedestal*hfrecoPedestal*horecoPedestal)
48 
49 seqALCARECOHcalCalPedestal = cms.Sequence(hcalCalibPedestal*
50  hcalDigiAlCaPedestal*
51  gtDigisAlCaPedestal*
52  hcalLocalRecoSequencePedestal)