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