Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-12 02:41:28

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #
0004 # Ecal part
0005 #
0006 from RecoLocalCalo.Configuration.ecalLocalRecoSequenceCosmics_cff import *
0007 from RecoLocalCalo.EcalRecAlgos.EcalSeverityLevelESProducer_cfi import *
0008 
0009 #defines a sequence ecalLocalRecoSequence
0010 
0011 #
0012 # Hcal part
0013 #
0014 #HCAL reconstruction
0015 import RecoLocalCalo.Configuration.hcalLocalReco_cff as _hcalLocalReco_cff
0016 from RecoLocalCalo.HcalRecAlgos.hcalRecAlgoESProd_cfi import *
0017 from RecoLocalCalo.HcalRecAlgos.hcalChannelPropertiesESProd_cfi import *
0018 #
0019 # sequence CaloLocalReco
0020 #
0021 
0022 hbhereco = _hcalLocalReco_cff.hbheprereco.cpu.clone(
0023     tsFromDB = False,
0024     recoParamsFromDB = False,
0025     algorithm = dict(
0026         useMahi = False,
0027         useM2 = False,
0028         useM3 = False,
0029         firstSampleShift = -1000,
0030         samplesToAdd = 10,
0031         correctForPhaseContainment = False,
0032     ),
0033     sipmQTSShift = -100,
0034     sipmQNTStoSum = 200,
0035 )
0036 hfreco = _hcalLocalReco_cff._default_hfreco.clone(
0037     firstSample = 0,
0038     samplesToAdd = 10, ### min(10,size) in the algo
0039     correctForTimeslew = False,
0040     correctForPhaseContainment = False,
0041     tsFromDB = False,
0042     recoParamsFromDB = False,
0043     digiTimeFromDB = False,
0044 )
0045 horeco = _hcalLocalReco_cff.horeco.clone(
0046     firstSample = 0,
0047     samplesToAdd = 10,
0048     correctForTimeslew = False,
0049     correctForPhaseContainment = False,
0050     tsFromDB = False,
0051     recoParamsFromDB = False,
0052 )
0053 zdcreco = _hcalLocalReco_cff.zdcreco.clone(
0054 #    firstSample = 1,
0055 #    samplesToAdd = 8,
0056     correctForTimeslew = True,
0057     correctForPhaseContainment = True,
0058     correctionPhaseNS = 10.,
0059 )
0060 
0061 # 2017 customs
0062 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
0063 
0064 _phase1_hfreco = _hcalLocalReco_cff._phase1_hfreco.clone(
0065     algorithm = dict(
0066         Class = "HFSimpleTimeCheck",
0067         rejectAllFailures = False,
0068     )
0069 )
0070 
0071 
0072 run2_HF_2017.toReplaceWith(hfreco, _phase1_hfreco )
0073 
0074 hfprereco = _hcalLocalReco_cff.hfprereco.clone(
0075     sumAllTimeSlices = True
0076 )
0077 
0078 from RecoLocalCalo.HcalRecProducers.hbheplan1_cfi import hbheplan1
0079 
0080 # redefine hcal sequence
0081 hcalLocalRecoTask = cms.Task(hbhereco,hfreco,horeco,zdcreco)
0082 hcalLocalRecoSequence = cms.Sequence(hcalLocalRecoTask)
0083 
0084 _phase1_hcalLocalRecoTask = hcalLocalRecoTask.copy()
0085 _phase1_hcalLocalRecoTask.add(hfprereco)
0086 run2_HF_2017.toReplaceWith(hcalLocalRecoTask, _phase1_hcalLocalRecoTask)
0087 
0088 # shuffle modules so "hbheplan1" produces final collection of hits named "hbhereco"
0089 _plan1_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
0090 hbheprereco = hbhereco.clone()
0091 _plan1_hcalLocalRecoTask.add(hbheprereco)
0092 from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
0093 run2_HEPlan1_2017.toReplaceWith(hbhereco, hbheplan1)
0094 run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTask, _plan1_hcalLocalRecoTask)
0095 
0096 hbhecollapse = hbheplan1.clone()
0097 _collapse_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
0098 _collapse_hcalLocalRecoTask.add(hbheprereco)
0099 from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
0100 run2_HECollapse_2018.toReplaceWith(hbhereco, hbhecollapse)
0101 run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTask, _collapse_hcalLocalRecoTask)
0102 calolocalrecoTaskCosmics = cms.Task(ecalLocalRecoTaskCosmics,hcalLocalRecoTask)
0103 calolocalrecoCosmics = cms.Sequence(calolocalrecoTaskCosmics)
0104 #
0105 # R.Ofierzynski (29.Oct.2009): add NZS sequence
0106 #
0107 from RecoLocalCalo.Configuration.hcalLocalRecoNZS_cff import *
0108 calolocalrecoTaskCosmicsNZS = cms.Task(ecalLocalRecoTaskCosmics,hcalLocalRecoTask,hcalLocalRecoTaskNZS) 
0109 calolocalrecoCosmicsNZS = cms.Sequence(calolocalrecoTaskCosmicsNZS)