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.hfsimplereco_cfi
19 hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.hfsimplereco_cfi.hfsimplereco.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 seqALCARECOHcalCalMinBiasDigi = cms.Sequence(hcalminbiasHLT*hcalDigiAlCaMB*gtDigisAlCaMB)
28 seqALCARECOHcalCalMinBias = cms.Sequence(hbherecoNoise*hfrecoNoise*hfrecoMBNZS*horecoNoise)
29 
30 import RecoLocalCalo.HcalRecProducers.hfprereco_cfi
31 hfprerecoMBNZS = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
32  digiLabel = cms.InputTag("hcalDigiAlCaMB"),
33  dropZSmarkedPassed = cms.bool(False),
34  tsFromDB = cms.bool(False),
35  sumAllTimeSlices = cms.bool(True),
36  forceSOI = cms.int32(1)
37 )
38 hfprerecoNoise = RecoLocalCalo.HcalRecProducers.hfprereco_cfi.hfprereco.clone(
39  digiLabel = cms.InputTag("hcalDigiAlCaMB"),
40  dropZSmarkedPassed = cms.bool(False),
41  tsFromDB = cms.bool(False),
42  sumAllTimeSlices = cms.bool(False),
43  forceSOI = cms.int32(0)
44 )
45 
46 import RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi
47 _phase1_hfrecoMBNZS = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
48  inputLabel = cms.InputTag("hfprerecoMBNZS"),
49  setNoiseFlags = cms.bool(False),
50  algorithm = dict(
51  Class = cms.string("HFSimpleTimeCheck"),
52  rejectAllFailures = cms.bool(False)
53  ),
54 )
55 _phase1_hfrecoNoise = RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi.hfreco.clone(
56  inputLabel = cms.InputTag("hfprerecoNoise"),
57  setNoiseFlags = cms.bool(False),
58  algorithm = dict(
59  Class = cms.string("HFSimpleTimeCheck"),
60  rejectAllFailures = cms.bool(False)
61  ),
62 )
63 
64 _phase1_seqALCARECOHcalCalMinBias = seqALCARECOHcalCalMinBias.copy()
65 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoMBNZS)
66 _phase1_seqALCARECOHcalCalMinBias.insert(0,hfprerecoNoise)
67 
68 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
69 run2_HF_2017.toReplaceWith( seqALCARECOHcalCalMinBias, _phase1_seqALCARECOHcalCalMinBias )
70 run2_HF_2017.toReplaceWith( hfrecoNoise, _phase1_hfrecoNoise )
71 run2_HF_2017.toReplaceWith( hfrecoMBNZS, _phase1_hfrecoMBNZS )
72 
73 import RecoLocalCalo.HcalRecProducers.hbheplan1_cfi
74 hbheplan1Noise = RecoLocalCalo.HcalRecProducers.hbheplan1_cfi.hbheplan1.clone(
75  hbheInput = cms.InputTag("hbheprerecoNoise")
76 )
77 
78 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
79 run2_HCAL_2017.toModify( hbherecoNoise,
80  processQIE11 = cms.bool(True),
81 # temporarily disabled until RecoLocalCalo/HcalRecProducers/python/HBHEPhase1Reconstructor_cfi.py:flagParametersQIE11 is filled
82 # setNoiseFlagsQIE11 = cms.bool(True),
83 )
84 
85 _plan1_seqALCARECOHcalCalMinBias = _phase1_seqALCARECOHcalCalMinBias.copy()
86 hbheprerecoNoise = hbherecoNoise.clone()
87 _plan1_seqALCARECOHcalCalMinBias.insert(0,hbheprerecoNoise)
88 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
89 run2_HEPlan1_2017.toReplaceWith(hbherecoNoise, hbheplan1Noise)
90 run2_HEPlan1_2017.toReplaceWith(seqALCARECOHcalCalMinBias, _plan1_seqALCARECOHcalCalMinBias)
ALCARECOHcalCalMinBiasNoise_cff
hltHighLevel_cfi