CMS 3D CMS Logo

RecoLocalCalo_Cosmics_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # Ecal part
5 #
8 
9 #defines a sequence ecalLocalRecoSequence
10 
11 #
12 # Hcal part
13 #
14 #HCAL reconstruction
15 import RecoLocalCalo.Configuration.hcalLocalReco_cff as _hcalLocalReco_cff
17 #
18 # sequence CaloLocalReco
19 #
20 
21 def hbheCosmic(module):
22  return module.clone(
23  tsFromDB = cms.bool(False),
24  recoParamsFromDB = cms.bool(False),
25  algorithm = dict(
26  useMahi = cms.bool(False),
27  useM2 = cms.bool(False),
28  useM3 = cms.bool(False),
29  firstSampleShift = cms.int32(-1000),
30  samplesToAdd = cms.int32(10),
31  correctForPhaseContainment = cms.bool(False),
32  ),
33  sipmQTSShift = cms.int32(-100),
34  sipmQNTStoSum = cms.int32(200),
35  )
36 
37 hbhereco = hbheCosmic(_hcalLocalReco_cff.hbheprereco)
38 hfreco = _hcalLocalReco_cff._default_hfreco.clone(
39  firstSample = 0,
40  samplesToAdd = 10,
41  correctForTimeslew = False,
42  correctForPhaseContainment = False,
43  tsFromDB = False,
44  recoParamsFromDB = cms.bool(False),
45  digiTimeFromDB = False,
46 )
47 horeco = _hcalLocalReco_cff.horeco.clone(
48  firstSample = 0,
49  samplesToAdd = 10,
50  correctForTimeslew = False,
51  correctForPhaseContainment = False,
52  tsFromDB = False,
53  recoParamsFromDB = cms.bool(False),
54 )
55 zdcreco = _hcalLocalReco_cff.zdcreco.clone(
56 # firstSample = 1,
57 # samplesToAdd = 8,
58  correctForTimeslew = True,
59  correctForPhaseContainment = True,
60  correctionPhaseNS = 10.,
61 )
62 
63 # 2017 customs
64 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
65 
66 _phase1_hfreco = _hcalLocalReco_cff._phase1_hfreco.clone(
67  algorithm = dict(
68  Class = cms.string("HFSimpleTimeCheck"),
69  rejectAllFailures = cms.bool(False),
70  )
71 )
72 
73 
74 run2_HF_2017.toReplaceWith(hfreco, _phase1_hfreco )
75 
76 hfprereco = _hcalLocalReco_cff.hfprereco.clone(
77  sumAllTimeSlices = cms.bool(True)
78 )
79 
80 from RecoLocalCalo.HcalRecProducers.hbheplan1_cfi import hbheplan1
81 
82 # redefine hcal sequence
83 hcalLocalRecoTask = cms.Task(hbhereco,hfreco,horeco,zdcreco)
84 hcalLocalRecoSequence = cms.Sequence(hcalLocalRecoTask)
85 
86 _phase1_hcalLocalRecoTask = hcalLocalRecoTask.copy()
87 _phase1_hcalLocalRecoTask.add(hfprereco)
88 run2_HF_2017.toReplaceWith(hcalLocalRecoTask, _phase1_hcalLocalRecoTask)
89 
90 # shuffle modules so "hbheplan1" produces final collection of hits named "hbhereco"
91 _plan1_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
92 hbheprereco = hbhereco.clone()
93 _plan1_hcalLocalRecoTask.add(hbheprereco)
94 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
95 run2_HEPlan1_2017.toReplaceWith(hbhereco, hbheplan1)
96 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTask, _plan1_hcalLocalRecoTask)
97 
98 hbhecollapse = hbheplan1.clone()
99 _collapse_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
100 _collapse_hcalLocalRecoTask.add(hbheprereco)
101 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
102 run2_HECollapse_2018.toReplaceWith(hbhereco, hbhecollapse)
103 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTask, _collapse_hcalLocalRecoTask)
104 calolocalrecoTaskCosmics = cms.Task(ecalLocalRecoTaskCosmics,hcalLocalRecoTask)
105 calolocalrecoCosmics = cms.Sequence(calolocalrecoTaskCosmics)
106 #
107 # R.Ofierzynski (29.Oct.2009): add NZS sequence
108 #
110 calolocalrecoTaskCosmicsNZS = cms.Task(ecalLocalRecoTaskCosmics,hcalLocalRecoTask,hcalLocalRecoTaskNZS)
111 calolocalrecoCosmicsNZS = cms.Sequence(calolocalrecoTaskCosmicsNZS)
ecalLocalRecoSequenceCosmics_cff
RecoLocalCalo_Cosmics_cff.hbheCosmic
def hbheCosmic(module)
Definition: RecoLocalCalo_Cosmics_cff.py:21
hcalRecAlgoESProd_cfi
EcalSeverityLevelESProducer_cfi
hcalLocalRecoNZS_cff
hcalLocalReco_cff