コード例 #1
0
ファイル: hcalLocalReco_cff.py プロジェクト: dimattia/cmssw
from RecoLocalCalo.HcalRecProducers.HcalHitReconstructor_zdc_cfi import *
hcalLocalRecoSequence = cms.Sequence(hbheprereco+hfreco+horeco+zdcreco)

from RecoLocalCalo.HcalRecProducers.hfprereco_cfi import hfprereco
from RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi import hfreco as _phase1_hfreco
from RecoLocalCalo.HcalRecProducers.hbheplan1_cfi import hbheplan1

# copy for cosmics
_default_hfreco = hfreco.clone()

_phase1_hcalLocalRecoSequence = hcalLocalRecoSequence.copy()
_phase1_hcalLocalRecoSequence.insert(0,hfprereco)

from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
run2_HF_2017.toReplaceWith( hcalLocalRecoSequence, _phase1_hcalLocalRecoSequence )
run2_HF_2017.toReplaceWith( hfreco, _phase1_hfreco )
from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
run2_HCAL_2017.toReplaceWith( hbheprereco, _phase1_hbheprereco )

_plan1_hcalLocalRecoSequence = _phase1_hcalLocalRecoSequence.copy()
_plan1_hcalLocalRecoSequence += hbheplan1
from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoSequence, _plan1_hcalLocalRecoSequence)

_phase2_hcalLocalRecoSequence = hcalLocalRecoSequence.copy()
_phase2_hcalLocalRecoSequence.remove(hbheprereco)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith( hcalLocalRecoSequence, _phase2_hcalLocalRecoSequence )

コード例 #2
0
ファイル: hcalLocalReco_cff.py プロジェクト: zflowers/cmssw
_phase1_hcalLocalRecoTask = hcalLocalRecoTask.copy()
_phase1_hcalLocalRecoTask.add(hfprereco)

from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
run2_HF_2017.toReplaceWith(hcalLocalRecoTask, _phase1_hcalLocalRecoTask)
run2_HF_2017.toReplaceWith(hfreco, _phase1_hfreco)
from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
run2_HCAL_2017.toReplaceWith(hbheprereco, _phase1_hbheprereco)

_plan1_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
_plan1_hcalLocalRecoTask.add(hbheplan1)
from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
run2_HEPlan1_2017.toReplaceWith(hcalLocalRecoTask, _plan1_hcalLocalRecoTask)

hbhecollapse = hbheplan1.clone()
_collapse_hcalLocalRecoTask = _phase1_hcalLocalRecoTask.copy()
_collapse_hcalLocalRecoTask.add(hbhecollapse)
from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
run2_HECollapse_2018.toReplaceWith(hcalLocalRecoTask,
                                   _collapse_hcalLocalRecoTask)

_phase2_hcalLocalRecoTask = hcalLocalRecoTask.copy()
_phase2_hcalLocalRecoTask.remove(hbheprereco)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(hcalLocalRecoTask, _phase2_hcalLocalRecoTask)

_fastSim_hcalLocalRecoTask = hcalLocalRecoTask.copyAndExclude([zdcreco])
from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toReplaceWith(hcalLocalRecoTask, _fastSim_hcalLocalRecoTask)
コード例 #3
0
from RecoLocalCalo.HcalRecProducers.hfprereco_cfi import hfprereco
from RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi import hfreco as _phase1_hfreco
from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi import hbheprereco as _phase1_hbheprereco

# copies for cosmics
_default_hbheprereco = hbheprereco.clone()
_default_hfreco = hfreco.clone()

_phase1_hcalLocalRecoSequence = hcalLocalRecoSequence.copy()
_phase1_hcalLocalRecoSequence.insert(0, hfprereco)

from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
run2_HF_2017.toReplaceWith(hcalLocalRecoSequence,
                           _phase1_hcalLocalRecoSequence)
run2_HF_2017.toReplaceWith(hfreco, _phase1_hfreco)
from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
run2_HCAL_2017.toReplaceWith(hbheprereco, _phase1_hbheprereco)

_phase2_hcalLocalRecoSequence = hcalLocalRecoSequence.copy()
_phase2_hcalLocalRecoSequence.remove(hbheprereco)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toModify(horeco, digiLabel=cms.InputTag('simHcalDigis'))
phase2_hcal.toModify(hfprereco,
                     digiLabel=cms.InputTag('simHcalDigis',
                                            'HFQIE10DigiCollection'))
phase2_hcal.toModify(zdcreco,
                     digiLabel=cms.InputTag('simHcalUnsuppressedDigis'),
                     digiLabelhcal=cms.InputTag('simHcalUnsuppressedDigis'))
phase2_hcal.toReplaceWith(hcalLocalRecoSequence, _phase2_hcalLocalRecoSequence)
コード例 #4
0
ファイル: RecoMET_cff.py プロジェクト: MelanieEich/cmssw
import FWCore.ParameterSet.Config as cms

##____________________________________________________________________________||
from RecoJets.Configuration.CaloTowersES_cfi import *
from RecoMET.METProducers.CaloMET_cfi import *
from RecoMET.METProducers.hcalnoiseinfoproducer_cfi import *
from RecoMET.METProducers.MuonMETValueMapProducer_cff import *
from RecoMET.METProducers.caloMetM_cfi import *
from RecoMET.Configuration.RecoMET_BeamHaloId_cff import *

##____________________________________________________________________________||
metreco = cms.Sequence(
        caloMet+
        caloMetBE+
        caloMetBEFO+
        muonMETValueMapProducer+
        caloMetM +
        BeamHaloId
        )

##____________________________________________________________________________||
metrecoPlusHCALNoise = cms.Sequence( metreco + hcalnoise )

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith( metrecoPlusHCALNoise, metreco )

##____________________________________________________________________________||
コード例 #5
0
ファイル: DQMOffline_cff.py プロジェクト: bortigno/cmssw
                              )

#DQMOfflineHcal = cms.Sequence( hcalOfflineSourceSequence )
DQMOfflineHcal = cms.Sequence()

DQMOfflineEcal = cms.Sequence( ecal_dqm_source_offline *
                               es_dqm_source_offline
                             )
DQMOfflineJetMET = cms.Sequence( jetMETDQMOfflineSource )

DQMOfflineEGamma = cms.Sequence( egammaDQMOffline )

DQMOfflineBTag = cms.Sequence( bTagPlotsDATA )

from DQMOffline.Muon.miniAOD_cff import * 
                                                                 
DQMOfflineMiniAOD = cms.Sequence(jetMETDQMOfflineRedoProductsMiniAOD*muonMonitors_miniAOD*MuonMiniAOD)

#Post sequences are automatically placed in the EndPath by ConfigBuilder if PAT is run.
#miniAOD DQM sequences need to access the filter results.


PostDQMOfflineMiniAOD = cms.Sequence(miniAODDQMSequence*jetMETDQMOfflineSourceMiniAOD*tracksDQMMiniAOD*topPhysicsminiAOD)
PostDQMOffline = cms.Sequence()

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith( PostDQMOfflineMiniAOD, PostDQMOfflineMiniAOD.copyAndExclude([
    pfMetDQMAnalyzerMiniAOD, pfPuppiMetDQMAnalyzerMiniAOD # No hcalnoise yet
]))

コード例 #6
0
                        tagHBHE_target="hbheprereco@cuda")
run2_HCAL_2018.toModify(recHitTask, tagHBHE="hbheprereco")

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
### reverting the reco tag setting that inherited from run2
run3_HB.toModify(hcalGPUComparisonTask,
                 tagHBHE_ref="hbhereco@cpu",
                 tagHBHE_target="hbhereco@cuda")
run3_HB.toModify(recHitTask, tagHBHE="hbhereco")
_phase1_hcalOnlyOfflineSourceSequence = hcalOnlyOfflineSourceSequence.copy()
_phase1_hcalOnlyOfflineSourceSequence.replace(recHitPreRecoTask, recHitTask)
run3_HB.toReplaceWith(hcalOnlyOfflineSourceSequence,
                      _phase1_hcalOnlyOfflineSourceSequence)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
_phase2_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copyAndExclude(
    [tpTask, rawTask])
phase2_hcal.toReplaceWith(hcalOfflineSourceSequence,
                          _phase2_hcalOfflineSourceSequence)
phase2_hcal.toModify(digiTask,
                     tagHBHE="simHcalDigis:HBHEQIE11DigiCollection",
                     tagHO="simHcalDigis",
                     tagHF="simHcalDigis:HFQIE10DigiCollection")

from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
(premix_stage2 & phase2_hcal).toModify(
    digiTask,
    tagHBHE="DMHcalDigis:HBHEQIE11DigiCollection",
    tagHO="DMHcalDigis",
    tagHF="DMHcalDigis:HFQIE10DigiCollection")
コード例 #7
0
import FWCore.ParameterSet.Config as cms

from Validation.HcalRecHits.HcalRecHitParam_cfi import *

import Validation.HcalRecHits.HcalRecHitParam_cfi

RecHitsValidation = Validation.HcalRecHits.HcalRecHitParam_cfi.hcalRecoAnalyzer.clone()
NoiseRatesValidation = Validation.HcalRecHits.HcalRecHitParam_cfi.hcalNoiseRates.clone()

hcalRecHitsValidationSequence = cms.Sequence(NoiseRatesValidation*RecHitsValidation)

# fastsim hasn't got the right noise collection for the moment => no noise validation
from Configuration.Eras.Modifier_fastSim_cff import fastSim
if fastSim.isChosen():
    hcalRecHitsValidationSequence.remove(NoiseRatesValidation)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
_phase2_hcalRecHitsValidationSequence = hcalRecHitsValidationSequence.copyAndExclude([NoiseRatesValidation])
phase2_hcal.toReplaceWith(hcalRecHitsValidationSequence, _phase2_hcalRecHitsValidationSequence)
コード例 #8
0
from EventFilter.CastorRawToDigi.CastorDigiToRaw_cfi import *
from EventFilter.RawDataCollector.rawDataCollector_cfi import *
#from L1Trigger.Configuration.L1TDigiToRaw_cff import *  # no L1 DigiToRaw in first PreMixing step
#DigiToRaw = cms.Sequence(L1TDigiToRaw*siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*rawDataCollector)
DigiToRaw = cms.Sequence(siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*castorRawData*rawDataCollector)
ecalPacker.Label = 'simEcalDigis'
ecalPacker.InstanceEB = 'ebDigis'
ecalPacker.InstanceEE = 'eeDigis'
ecalPacker.labelEBSRFlags = "simEcalDigis:ebSrFlags"
ecalPacker.labelEESRFlags = "simEcalDigis:eeSrFlags"
hcalRawDatauHTR.premix = cms.bool(True)

from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
phase2_common.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([castorRawData]))

#until we have hcal raw data for phase 2....
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([hcalRawData]))

# Remove siPixelRawData until we have phase1 pixel digis
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([siPixelRawData])) # FIXME

from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
phase2_muon.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([rpcpacker]))

from Configuration.Eras.Modifier_fastSim_cff import fastSim
if fastSim.isChosen() :
    for _entry in [siPixelRawData,SiStripDigiToRaw,castorRawData]:
        DigiToRaw.remove(_entry)
コード例 #9
0
import FWCore.ParameterSet.Config as cms

from DQMOffline.Hcal.CaloTowersParam_cfi import *
import DQMOffline.Hcal.CaloTowersParam_cfi

from DQMOffline.Hcal.HcalRecHitParam_cfi import *
import DQMOffline.Hcal.HcalRecHitParam_cfi

from DQMOffline.Hcal.HcalNoiseRatesParam_cfi import *
import DQMOffline.Hcal.HcalNoiseRatesParam_cfi

AllCaloTowersDQMOffline = DQMOffline.Hcal.CaloTowersParam_cfi.calotowersAnalyzer.clone()
RecHitsDQMOffline       = DQMOffline.Hcal.HcalRecHitParam_cfi.hcalRecHitsAnalyzer.clone()
NoiseRatesDQMOffline    = DQMOffline.Hcal.HcalNoiseRatesParam_cfi.hcalNoiseRates.clone()

HcalDQMOfflineSequence = cms.Sequence(NoiseRatesDQMOffline*RecHitsDQMOffline*AllCaloTowersDQMOffline)
#HcalDQMOfflineSequence = cms.Sequence(NoiseRatesDQMOffline*AllCaloTowersDQMOffline)

_phase2_HcalDQMOfflineSequence = HcalDQMOfflineSequence.copyAndExclude([NoiseRatesDQMOffline])
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(HcalDQMOfflineSequence, _phase2_HcalDQMOfflineSequence)
コード例 #10
0
import FWCore.ParameterSet.Config as cms

##____________________________________________________________________________||
from RecoJets.Configuration.CaloTowersES_cfi import *
from RecoMET.METProducers.CaloMET_cfi import *
from RecoMET.METProducers.hcalnoiseinfoproducer_cfi import *
from RecoMET.METProducers.MuonMETValueMapProducer_cff import *
from RecoMET.METProducers.caloMetM_cfi import *
from RecoMET.Configuration.RecoMET_BeamHaloId_cff import *

##____________________________________________________________________________||
metrecoTask = cms.Task(caloMet, caloMetBE, caloMetBEFO,
                       muonMETValueMapProducer, caloMetM, BeamHaloIdTask)
metreco = cms.Sequence(metrecoTask)

##____________________________________________________________________________||
metrecoPlusHCALNoiseTask = cms.Task(metrecoTask, hcalnoise)
metrecoPlusHCALNoise = cms.Sequence(metrecoPlusHCALNoiseTask)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(metrecoPlusHCALNoiseTask, metrecoTask)

##____________________________________________________________________________||
コード例 #11
0
import FWCore.ParameterSet.Config as cms

from RecoLocalCalo.HcalRecProducers.HBHEIsolatedNoiseReflagger_cfi import *
hcalGlobalRecoSequence = cms.Sequence(hbhereco)

from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi import hbheprereco as _phase1_hbheprereco

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith( hbhereco, _phase1_hbheprereco )
コード例 #12
0
import FWCore.ParameterSet.Config as cms

from RecoLocalCalo.HcalRecProducers.HBHEIsolatedNoiseReflagger_cfi import *
hcalGlobalRecoSequence = cms.Sequence(hbhereco)

from RecoLocalCalo.HcalRecProducers.HBHEUpgradeReconstructor_cfi import hbheUpgradeReco as _hbheUpgradeReco

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(hbhereco, _hbheUpgradeReco)
phase2_hcal.toModify(hbhereco,
                     digiLabel=cms.InputTag('simHcalDigis',
                                            'HBHEUpgradeDigiCollection'))
コード例 #13
0
#	set processing type to Offine
digiTask.ptype = cms.untracked.int32(1)
digiPhase1Task.ptype = cms.untracked.int32(1)
tpTask.ptype = cms.untracked.int32(1)
recHitTask.ptype = cms.untracked.int32(1)
rawTask.ptype = cms.untracked.int32(1)

#	set the label for Emulator TP Task
tpTask.tagEmul = cms.untracked.InputTag("valHcalTriggerPrimitiveDigis")

hcalOfflineSourceSequence = cms.Sequence(
	digiTask
	+tpTask
	+recHitTask
	+rawTask)

_phase1_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copy()
_phase1_hcalOfflineSourceSequence.insert(0,digiPhase1Task)

from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
run2_HCAL_2017.toReplaceWith( hcalOfflineSourceSequence, _phase1_hcalOfflineSourceSequence )

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
_phase2_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copyAndExclude([digiTask,tpTask,rawTask])
phase2_hcal.toReplaceWith(hcalOfflineSourceSequence, _phase2_hcalOfflineSourceSequence)
phase2_hcal.toModify(digiPhase1Task,
    tagHBHE = cms.untracked.InputTag("simHcalDigis","HBHEQIE11DigiCollection"),
    tagHO = cms.untracked.InputTag("simHcalDigis"),
    tagHF = cms.untracked.InputTag("simHcalDigis","HFQIE10DigiCollection")
)
コード例 #14
0
ファイル: RawToDigi_cff.py プロジェクト: JanFSchulte/cmssw
siPixelDigis.InputLabel = 'rawDataCollector'
#false by default anyways ecalDigis.DoRegional = False
ecalDigis.InputLabel = 'rawDataCollector'
ecalPreshowerDigis.sourceTag = 'rawDataCollector'
hcalDigis.InputLabel = 'rawDataCollector'
muonCSCDigis.InputObjects = 'rawDataCollector'
muonDTDigis.inputLabel = 'rawDataCollector'
muonRPCDigis.InputLabel = 'rawDataCollector'
castorDigis.InputLabel = 'rawDataCollector'

from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
phase2_common.toReplaceWith(RawToDigi, RawToDigi.copyAndExclude([castorDigis]))

# until we have hcal raw data for phase 2...
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(RawToDigi, RawToDigi.copyAndExclude([hcalDigis]))

from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
# Remove siPixelDigis until we have phase1 pixel digis
phase2_tracker.toReplaceWith(RawToDigi, RawToDigi.copyAndExclude([siPixelDigis])) # FIXME


# add CTPPS 2016 raw-to-digi modules
from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016

_ctpps_2016_RawToDigi = RawToDigi.copy()
_ctpps_2016_RawToDigi += ctppsRawToDigi
ctpps_2016.toReplaceWith(RawToDigi, _ctpps_2016_RawToDigi)

_ctpps_2016_RawToDigi_noTk = RawToDigi_noTk.copy()
_ctpps_2016_RawToDigi_noTk += ctppsRawToDigi
コード例 #15
0
import FWCore.ParameterSet.Config as cms

from SimCalorimetry.HcalZeroSuppressionProducers.hcalDigisRealistic_cfi import *
from SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cff import *
from SimCalorimetry.HcalTrigPrimProducers.hcalTTPDigis_cfi import *

# simHcalUnsuppressedDigis is now done inside mixing module
hcalDigiSequence = cms.Sequence(simHcalTriggerPrimitiveDigis +
                                simHcalDigis * simHcalTTPDigis)

_phase2_hcalDigiSequence = hcalDigiSequence.copy()
_phase2_hcalDigiSequence.remove(simHcalTriggerPrimitiveDigis)
_phase2_hcalDigiSequence.remove(simHcalTTPDigis)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(hcalDigiSequence, _phase2_hcalDigiSequence)
コード例 #16
0
ファイル: RawToDigi_cff.py プロジェクト: angirar/my_cmssw
ecalDigis.InputLabel = 'rawDataCollector'
ecalPreshowerDigis.sourceTag = 'rawDataCollector'
hcalDigis.InputLabel = 'rawDataCollector'
muonCSCDigis.InputObjects = 'rawDataCollector'
muonDTDigis.inputLabel = 'rawDataCollector'
muonRPCDigis.InputLabel = 'rawDataCollector'
castorDigis.InputLabel = 'rawDataCollector'
totemTriggerRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")
totemRPRawToDigi.rawDataTag = cms.InputTag("rawDataCollector")

from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
phase2_common.toReplaceWith(RawToDigi, RawToDigi.copyAndExclude([castorDigis]))

# until we have hcal raw data for phase 2...
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(RawToDigi, RawToDigi.copyAndExclude([hcalDigis]))

from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
# Remove siPixelDigis until we have phase1 pixel digis
phase2_tracker.toReplaceWith(RawToDigi,
                             RawToDigi.copyAndExclude([siPixelDigis]))  # FIXME

# add CTPPS 2016 raw-to-digi modules
_ctpps_2016_RawToDigi = RawToDigi.copy()
_ctpps_2016_RawToDigi += totemTriggerRawToDigi + totemRPRawToDigi
from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
ctpps_2016.toReplaceWith(RawToDigi, _ctpps_2016_RawToDigi)

_ctpps_2016_RawToDigi_noTk = RawToDigi_noTk.copy()
_ctpps_2016_RawToDigi_noTk += totemTriggerRawToDigi + totemRPRawToDigi
ctpps_2016.toReplaceWith(RawToDigi_noTk, _ctpps_2016_RawToDigi_noTk)
コード例 #17
0
import FWCore.ParameterSet.Config as cms

from Validation.HcalRecHits.HcalRecHitParam_cfi import *

import Validation.HcalRecHits.HcalRecHitParam_cfi

RecHitsValidation = Validation.HcalRecHits.HcalRecHitParam_cfi.hcalRecoAnalyzer.clone(
)
NoiseRatesValidation = Validation.HcalRecHits.HcalRecHitParam_cfi.hcalNoiseRates.clone(
)

hcalRecHitsValidationSequence = cms.Sequence(NoiseRatesValidation *
                                             RecHitsValidation)

# fastsim hasn't got the right noise collection for the moment => no noise validation
from Configuration.Eras.Modifier_fastSim_cff import fastSim
if fastSim.isChosen():
    hcalRecHitsValidationSequence.remove(NoiseRatesValidation)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
_phase2_hcalRecHitsValidationSequence = hcalRecHitsValidationSequence.copyAndExclude(
    [NoiseRatesValidation])
phase2_hcal.toReplaceWith(hcalRecHitsValidationSequence,
                          _phase2_hcalRecHitsValidationSequence)
コード例 #18
0
ファイル: hcalLocalReco_cff.py プロジェクト: samohame/cmssw
hcalOOTPileupESProducer = cms.ESProducer('OOTPileupDBCompatibilityESProducer')

from RecoLocalCalo.HcalRecProducers.HcalHitReconstructor_hbhe_cfi import *
from RecoLocalCalo.HcalRecProducers.HcalHitReconstructor_ho_cfi import *
from RecoLocalCalo.HcalRecProducers.HcalHitReconstructor_hf_cfi import *
from RecoLocalCalo.HcalRecProducers.HcalHitReconstructor_zdc_cfi import *
hcalLocalRecoSequence = cms.Sequence(hbheprereco + hfreco + horeco + zdcreco)

from RecoLocalCalo.HcalRecProducers.HFUpgradeReconstructor_cfi import hfUpgradeReco as _hfUpgradeReco

_phase2_hcalLocalRecoSequence = hcalLocalRecoSequence.copy()
_phase2_hcalLocalRecoSequence.remove(hbheprereco)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toModify(horeco, digiLabel=cms.InputTag('simHcalDigis'))
phase2_hcal.toReplaceWith(hfreco, _hfUpgradeReco)
phase2_hcal.toModify(hfreco,
                     digiLabel=cms.InputTag('simHcalDigis',
                                            'HFUpgradeDigiCollection'))
phase2_hcal.toModify(zdcreco,
                     digiLabel=cms.InputTag('simHcalUnsuppressedDigis'),
                     digiLabelhcal=cms.InputTag('simHcalUnsuppressedDigis'))
phase2_hcal.toReplaceWith(hcalLocalRecoSequence, _phase2_hcalLocalRecoSequence)

from RecoLocalCalo.HcalRecProducers.hfprereco_cfi import hfprereco
from RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi import hfreco as _phase1_hfreco
from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi import hbheprereco as _phase1_hbheprereco

_phase1_hcalLocalRecoSequence = hcalLocalRecoSequence.copy()
_phase1_hcalLocalRecoSequence.insert(0, hfprereco)
コード例 #19
0
ファイル: DQMOffline_cff.py プロジェクト: n23moha/cmssw
# miniAOD DQM validation
from Validation.RecoParticleFlow.miniAODDQM_cff import *  # On MiniAOD vs RECO
from Validation.RecoParticleFlow.DQMForPF_MiniAOD_cff import *  # MiniAOD PF variables
from DQM.TrackingMonitor.tracksDQMMiniAOD_cff import *
from DQMOffline.Muon.miniAOD_cff import *
from DQM.Physics.DQMTopMiniAOD_cff import *

DQMOfflineMiniAOD = cms.Sequence(jetMETDQMOfflineRedoProductsMiniAOD *
                                 muonMonitors_miniAOD * MuonMiniAOD *
                                 DQMOfflinePF)

#Post sequences are automatically placed in the EndPath by ConfigBuilder if PAT is run.
#miniAOD DQM sequences need to access the filter results.

PostDQMOfflineMiniAOD = cms.Sequence(
    miniAODDQMSequence * jetMETDQMOfflineSourceMiniAOD * tracksDQMMiniAOD *
    topPhysicsminiAOD)
PostDQMOffline = cms.Sequence()

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(
    PostDQMOfflineMiniAOD,
    PostDQMOfflineMiniAOD.copyAndExclude([
        pfMetDQMAnalyzerMiniAOD,
        pfPuppiMetDQMAnalyzerMiniAOD  # No hcalnoise yet
    ]))

from PhysicsTools.NanoAOD.nanoDQM_cff import nanoDQM
DQMOfflineNanoAOD = cms.Sequence(nanoDQM)
#PostDQMOfflineNanoAOD = cms.Sequence(nanoDQM)
コード例 #20
0
ファイル: hcalGlobalReco_cff.py プロジェクト: zflowers/cmssw
import FWCore.ParameterSet.Config as cms

from RecoLocalCalo.HcalRecProducers.HBHEIsolatedNoiseReflagger_cfi import *
hcalGlobalRecoTask = cms.Task(hbhereco)
hcalGlobalRecoSequence = cms.Sequence(hcalGlobalRecoTask)

from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi import hbheprereco as _phase1_hbheprereco

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(hbhereco, _phase1_hbheprereco)
コード例 #21
0
ファイル: DigiToRaw_cff.py プロジェクト: samohame/cmssw
from SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cff import *
import EventFilter.EcalDigiToRaw.ecalDigiToRaw_cfi
ecalPacker = EventFilter.EcalDigiToRaw.ecalDigiToRaw_cfi.ecaldigitorawzerosup.clone()
from EventFilter.ESDigiToRaw.esDigiToRaw_cfi import *
from EventFilter.HcalRawToDigi.HcalDigiToRaw_cfi import *
from EventFilter.CSCRawToDigi.cscPacker_cfi import *
from EventFilter.DTRawToDigi.dtPacker_cfi import *
from EventFilter.RPCRawToDigi.rpcPacker_cfi import *
from EventFilter.CastorRawToDigi.CastorDigiToRaw_cfi import *
from EventFilter.RawDataCollector.rawDataCollector_cfi import *
from L1Trigger.Configuration.L1TDigiToRaw_cff import *
#DigiToRaw = cms.Sequence(L1TDigiToRaw*siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*rawDataCollector)
DigiToRaw = cms.Sequence(L1TDigiToRaw*siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*castorRawData*rawDataCollector)
ecalPacker.Label = 'simEcalDigis'
ecalPacker.InstanceEB = 'ebDigis'
ecalPacker.InstanceEE = 'eeDigis'
ecalPacker.labelEBSRFlags = "simEcalDigis:ebSrFlags"
ecalPacker.labelEESRFlags = "simEcalDigis:eeSrFlags"

from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
phase2_common.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([castorRawData]))

#until we have hcal raw data for phase 2....
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(DigiToRaw, DigiToRaw.copyAndExclude([hcalRawData]))

from Configuration.Eras.Modifier_fastSim_cff import fastSim
if fastSim.isChosen() :
    for _entry in [siPixelRawData,SiStripDigiToRaw,castorRawData]:
        DigiToRaw.remove(_entry)
コード例 #22
0
import FWCore.ParameterSet.Config as cms

##____________________________________________________________________________||
from RecoJets.Configuration.CaloTowersES_cfi import *
from RecoMET.METProducers.CaloMET_cfi import *
from RecoMET.METProducers.hcalnoiseinfoproducer_cfi import *
from RecoMET.METProducers.MuonMETValueMapProducer_cff import *
from RecoMET.METProducers.caloMetM_cfi import *
from RecoMET.Configuration.RecoMET_BeamHaloId_cff import *

##____________________________________________________________________________||
metreco = cms.Sequence(caloMet + caloMetBE + caloMetBEFO +
                       muonMETValueMapProducer + caloMetM + BeamHaloId)

##____________________________________________________________________________||
metrecoPlusHCALNoise = cms.Sequence(metreco + hcalnoise)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toReplaceWith(metrecoPlusHCALNoise, metreco)

##____________________________________________________________________________||