CMS 3D CMS Logo

ALCARECOHcalCalMinBiasHI_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #------------------------------------------------
4 #AlCaReco filtering for HCAL minbias:
5 #------------------------------------------------
6 
8 
10 hcalminbiasHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
11 # HLTPaths = ['HLT_HcalPhiSym'],
12  eventSetupPathsKey='HcalCalMinBiasHI',
13  throw = False #dont throw except on unknown path name
14 )
15 
16 import RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi
17 
18 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi
19 hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_hf_cfi.hfreco.clone()
20 
21 hfrecoMBNZS.firstSample = 2
22 hfrecoMBNZS.samplesToAdd = 2
23 hfrecoMBNZS.digiLabel = 'hcalDigiAlCaMB'
24 hfrecoMBNZS.tsFromDB = cms.bool(False)
25 hfrecoMBNZS.dropZSmarkedPassed = cms.bool(False)
26 
27 import RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi
28 
29 seqALCARECOHcalCalMinBiasDigi = cms.Sequence(hcalminbiasHLT*hcalDigiAlCaMB*gtDigisAlCaMB)
30 seqALCARECOHcalCalMinBias = cms.Sequence(hbherecoNoise*hfrecoNoise*hfrecoMBNZS*horecoNoise)
31 
32 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
33 hfprerecoMBNZS = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
34  digiLabel = cms.InputTag("hcalDigiAlCaMB"),
35  dropZSmarkedPassed = cms.bool(False),
36  tsFromDB = cms.bool(False),
37  sumAllTimeSlices = cms.bool(True),
38  forceSOI = cms.int32(1)
39 )
40 hfprerecoNoise = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
41  digiLabel = cms.InputTag("hcalDigiAlCaMB"),
42  dropZSmarkedPassed = cms.bool(False),
43  tsFromDB = cms.bool(False),
44  sumAllTimeSlices = cms.bool(False),
45  forceSOI = cms.int32(0)
46 )
47 
48 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
49 _phase1_hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
50  inputLabel = cms.InputTag("hfprerecoMBNZS"),
51  setNoiseFlags = cms.bool(False),
52  algorithm = dict(
53  Class = cms.string("HFSimpleTimeCheck"),
54  rejectAllFailures = cms.bool(False)
55  ),
56 )
57 _phase1_hfrecoNoise = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
58  inputLabel = cms.InputTag("hfprerecoNoise"),
59  setNoiseFlags = cms.bool(False),
60  algorithm = dict(
61  Class = cms.string("HFSimpleTimeCheck"),
62  rejectAllFailures = cms.bool(False)
63  ),
64 )
65 
66 _phase1_seqALCARECOHcalCalMinBias = seqALCARECOHcalCalMinBias.copy()
67 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoMBNZS)
68 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoNoise)
69 
70 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
71 run2_HF_2017.toReplaceWith( seqALCARECOHcalCalMinBias, _phase1_seqALCARECOHcalCalMinBias )
72 run2_HF_2017.toReplaceWith( hfrecoNoise, _phase1_hfrecoNoise )
73 run2_HF_2017.toReplaceWith( hfrecoMBNZS, _phase1_hfrecoMBNZS )
74 
75 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
76 hbheplan1Noise = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
77  hbheInput = cms.InputTag("hbheprerecoNoise")
78 )
79 
80 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
81 run2_HCAL_2017.toModify( hbherecoNoise,
82  processQIE11 = cms.bool(True),
83 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
84 # setNoiseFlagsQIE11 = cms.bool(True),
85 )
86 
87 _plan1_seqALCARECOHcalCalMinBias = _phase1_seqALCARECOHcalCalMinBias.copy()
88 hbheprerecoNoise = hbherecoNoise.clone()
89 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoNoise)
90 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
91 run2_HEPlan1_2017.toReplaceWith(hbherecoNoise, hbheplan1Noise)
92 run2_HEPlan1_2017.toReplaceWith(seqALCARECOHcalCalMinBias, _plan1_seqALCARECOHcalCalMinBias)