CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
8 hcalCalibPedestalHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
9  eventSetupPathsKey='HcalCalPedestal',
10  throw = False #dont throw except on unknown path name
11 )
12 
13 import EventFilter.HcalRawToDigi.HcalCalibTypeFilter_cfi
14 hcalCalibPedestal = EventFilter.HcalRawToDigi.HcalCalibTypeFilter_cfi.hcalCalibTypeFilter.clone(
15  # InputLabel = cms.string('rawDataCollector'),
16  InputLabel = cms.string('hltHcalCalibrationRaw::HLT'),
17  # InputLabel = cms.InputTag("hltEcalCalibrationRaw","","HLT"),
18  CalibTypes = cms.vint32( 1 ),
19  FilterSummary = cms.untracked.bool( False )
20  )
21 
22 #add GT digi:
24 gtDigisAlCaPedestal = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
25 
26 import EventFilter.HcalRawToDigi.HcalRawToDigi_cfi
27 hcalDigiAlCaPedestal = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
28 hcalDigiAlCaPedestal.InputLabel = cms.InputTag('hltHcalCalibrationRaw')
29 
30 qie10Digis = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
31 qie10Digis.InputLabel = cms.InputTag('hltHcalCalibrationRaw')
32 qie10Digis.FEDs = cms.untracked.vint32(1132)
33 
34 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
35 hbherecoPedestal = RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi.hbheprereco.clone(
36  digiLabelQIE8 = cms.InputTag("hcalDigiAlCaPedestal"),
37  digiLabelQIE11 = cms.InputTag("hcalDigiAlCaPedestal"),
38 ### tsFromDB = cms.bool(False),
39  dropZSmarkedPassed = cms.bool(False),
40  algorithm = dict(
41  useMahi = cms.bool(False),
42  useM2 = cms.bool(False),
43  useM3 = cms.bool(False)
44  ),
45  processQIE11 = cms.bool(False),
46  setNegativeFlagsQIE8 = cms.bool(False),
47  setNegativeFlagsQIE11 = cms.bool(False),
48  setNoiseFlagsQIE8 = cms.bool(True),
49  setNoiseFlagsQIE11 = cms.bool(False),
50  setPulseShapeFlagsQIE8 = cms.bool(False),
51  setPulseShapeFlagsQIE11 = cms.bool(False),
52  setLegacyFlagsQIE8 = cms.bool(False),
53  setLegacyFlagsQIE11 = cms.bool(False),
54 )
55 
56 hbherecoPedestal.algorithm.firstSampleShift = -100 # for the very beginning of the TS array
57 
58 import RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi
59 hfrecoPedestal = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.clone()
60 hfrecoPedestal.digiLabel = cms.InputTag('hcalDigiAlCaPedestal')
61 hfrecoPedestal.firstSample = cms.int32(0)
62 hfrecoPedestal.samplesToAdd = cms.int32(2)
63 hfrecoPedestal.dropZSmarkedPassed = cms.bool(False)
64 
65 import RecoLocalCalo.HcalRecProducers.hosimplereco_cfi
66 horecoPedestal = RecoLocalCalo.HcalRecProducers.hosimplereco_cfi.hosimplereco.clone()
67 horecoPedestal.digiLabel = cms.InputTag('hcalDigiAlCaPedestal')
68 horecoPedestal.firstSample = cms.int32(0)
69 horecoPedestal.samplesToAdd = cms.int32(4)
70 horecoPedestal.dropZSmarkedPassed = cms.bool(False)
71 
72 seqALCARECOHcalCalPedestal = cms.Sequence(hbherecoPedestal*hfrecoPedestal*horecoPedestal)
73 
74 seqALCARECOHcalCalPedestalDigi = cms.Sequence(hcalCalibPedestalHLT*
75  hcalCalibPedestal*
76  hcalDigiAlCaPedestal*
77  qie10Digis*
78  gtDigisAlCaPedestal)
79 
80 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
81 hfprerecoPedestal = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
82  digiLabel = cms.InputTag("hcalDigiAlCaPedestal"),
83  dropZSmarkedPassed = cms.bool(False),
84  tsFromDB = cms.bool(False),
85  sumAllTimeSlices = cms.bool(False),
86  forceSOI = cms.int32(0)
87 )
88 
89 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
90 _phase1_hfrecoPedestal = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
91  inputLabel = cms.InputTag("hfprerecoPedestal"),
92  setNoiseFlags = cms.bool(False),
93  algorithm = dict(
94  Class = cms.string("HFSimpleTimeCheck"),
95  rejectAllFailures = cms.bool(False)
96  ),
97 )
98 
99 _phase1_seqALCARECOHcalCalPedestal = seqALCARECOHcalCalPedestal.copy()
100 _phase1_seqALCARECOHcalCalPedestal.insert(0,hfprerecoPedestal)
101 
102 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
103 run2_HF_2017.toReplaceWith( seqALCARECOHcalCalPedestal, _phase1_seqALCARECOHcalCalPedestal )
104 run2_HF_2017.toReplaceWith( hfrecoPedestal, _phase1_hfrecoPedestal )
105 
106 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
107 hbheplan1Pedestal = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
108  hbheInput = cms.InputTag("hbheprerecoPedestal")
109 )
110 
111 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
112 run2_HCAL_2017.toModify( hbherecoPedestal,
113  processQIE11 = cms.bool(True),
114 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
115 # setNoiseFlagsQIE11 = cms.bool(True),
116 )
117 
118 _plan1_seqALCARECOHcalCalPedestal = _phase1_seqALCARECOHcalCalPedestal.copy()
119 hbheprerecoPedestal = hbherecoPedestal.clone()
120 _plan1_seqALCARECOHcalCalPedestal.insert(0,hbheprerecoPedestal)
121 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
122 run2_HEPlan1_2017.toReplaceWith(hbherecoPedestal, hbheplan1Pedestal)
123 run2_HEPlan1_2017.toReplaceWith(seqALCARECOHcalCalPedestal, _plan1_seqALCARECOHcalCalPedestal)