Example #1
0
from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
run3_GEM.toReplaceWith(RawToDigi, _gem_RawToDigi)

from EventFilter.HGCalRawToDigi.HGCalRawToDigi_cfi import *
_hgcal_RawToDigi = RawToDigi.copy()
_hgcal_RawToDigi += hgcalDigis
from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
phase2_hgcal.toReplaceWith(RawToDigi, _hgcal_RawToDigi)

# RPC New Readout Validation
from Configuration.Eras.Modifier_stage2L1Trigger_2017_cff import stage2L1Trigger_2017
_rpc_NewReadoutVal_RawToDigi = RawToDigi.copy()
_rpc_NewReadoutVal_RawToDigi_noTk = RawToDigi_noTk.copy()
_rpc_NewReadoutVal_RawToDigi += muonRPCNewDigis
_rpc_NewReadoutVal_RawToDigi_noTk += muonRPCNewDigis
stage2L1Trigger_2017.toReplaceWith(RawToDigi, _rpc_NewReadoutVal_RawToDigi)
stage2L1Trigger_2017.toReplaceWith(RawToDigi_noTk,
                                   _rpc_NewReadoutVal_RawToDigi)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toReplaceWith(RawToDigi, RawToDigi.copyAndExclude([muonRPCNewDigis]))
fastSim.toReplaceWith(RawToDigi_noTk,
                      RawToDigi_noTk.copyAndExclude([muonRPCNewDigis]))

_hfnose_RawToDigi = RawToDigi.copy()
_hfnose_RawToDigi += hfnoseDigis

from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
phase2_hfnose.toReplaceWith(RawToDigi, _hfnose_RawToDigi)
from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
run3_GEM.toReplaceWith(muonlocalreco, _run3_muonlocalreco)
from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
phase2_muon.toReplaceWith(muonlocalreco, _phase2_muonlocalreco)

# RPC New Readout Validation
from Configuration.Eras.Modifier_stage2L1Trigger_2017_cff import stage2L1Trigger_2017
_rpc_NewReadoutVal_muonlocalreco_with_2DSegments = muonlocalreco_with_2DSegments.copy(
)
_rpc_NewReadoutVal_muonlocalreco = muonlocalreco.copy()
_rpc_NewReadoutVal_muonlocalrecoT0Seg = muonlocalrecoT0Seg.copy()
_rpc_NewReadoutVal_muonlocalreco_with_2DSegments += rpcNewRecHits
_rpc_NewReadoutVal_muonlocalreco += rpcNewRecHits
_rpc_NewReadoutVal_muonlocalrecoT0Seg += rpcNewRecHits
stage2L1Trigger_2017.toReplaceWith(
    muonlocalreco_with_2DSegments,
    _rpc_NewReadoutVal_muonlocalreco_with_2DSegments)
stage2L1Trigger_2017.toReplaceWith(muonlocalreco,
                                   _rpc_NewReadoutVal_muonlocalreco)
stage2L1Trigger_2017.toReplaceWith(muonlocalrecoT0Seg,
                                   _rpc_NewReadoutVal_muonlocalrecoT0Seg)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toReplaceWith(
    muonlocalreco_with_2DSegments,
    muonlocalreco_with_2DSegments.copyAndExclude([rpcNewRecHits]))
fastSim.toReplaceWith(muonlocalreco,
                      muonlocalreco.copyAndExclude([rpcNewRecHits]))
fastSim.toReplaceWith(muonlocalrecoT0Seg,
                      muonlocalrecoT0Seg.copyAndExclude([rpcNewRecHits]))
_run3_muonlocalreco += gemLocalReco

_phase2_muonlocalreco = _run3_muonlocalreco.copy()
_phase2_muonlocalreco += me0LocalReco

from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
run2_GEM_2017.toReplaceWith( muonlocalreco , _run2_GEM_2017_muonlocalreco )
from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
run3_GEM.toReplaceWith( muonlocalreco , _run3_muonlocalreco )
from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
phase2_muon.toReplaceWith( muonlocalreco , _phase2_muonlocalreco )


# RPC New Readout Validation
from Configuration.Eras.Modifier_stage2L1Trigger_2017_cff import stage2L1Trigger_2017
_rpc_NewReadoutVal_muonlocalreco_with_2DSegments = muonlocalreco_with_2DSegments.copy()
_rpc_NewReadoutVal_muonlocalreco = muonlocalreco.copy()
_rpc_NewReadoutVal_muonlocalrecoT0Seg = muonlocalrecoT0Seg.copy()
_rpc_NewReadoutVal_muonlocalreco_with_2DSegments += rpcNewRecHits
_rpc_NewReadoutVal_muonlocalreco += rpcNewRecHits
_rpc_NewReadoutVal_muonlocalrecoT0Seg += rpcNewRecHits
stage2L1Trigger_2017.toReplaceWith(muonlocalreco_with_2DSegments, _rpc_NewReadoutVal_muonlocalreco_with_2DSegments)
stage2L1Trigger_2017.toReplaceWith(muonlocalreco, _rpc_NewReadoutVal_muonlocalreco)
stage2L1Trigger_2017.toReplaceWith(muonlocalrecoT0Seg, _rpc_NewReadoutVal_muonlocalrecoT0Seg)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toReplaceWith(muonlocalreco_with_2DSegments, muonlocalreco_with_2DSegments.copyAndExclude([rpcNewRecHits]))
fastSim.toReplaceWith(muonlocalreco, muonlocalreco.copyAndExclude([rpcNewRecHits]))
fastSim.toReplaceWith(muonlocalrecoT0Seg, muonlocalrecoT0Seg.copyAndExclude([rpcNewRecHits]))

Example #4
0
run2_GEM_2017.toReplaceWith(RawToDigi, _gem_RawToDigi)

from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
run3_GEM.toReplaceWith(RawToDigi, _gem_RawToDigi)

from EventFilter.HGCalRawToDigi.HGCalRawToDigi_cfi import *
_hgcal_RawToDigi = RawToDigi.copy()
_hgcal_RawToDigi += hgcalDigis
from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
phase2_hgcal.toReplaceWith(RawToDigi,_hgcal_RawToDigi)

# RPC New Readout Validation
from Configuration.Eras.Modifier_stage2L1Trigger_2017_cff import stage2L1Trigger_2017
_rpc_NewReadoutVal_RawToDigi = RawToDigi.copy()
_rpc_NewReadoutVal_RawToDigi_noTk = RawToDigi_noTk.copy()
_rpc_NewReadoutVal_RawToDigi += muonRPCNewDigis
_rpc_NewReadoutVal_RawToDigi_noTk += muonRPCNewDigis
stage2L1Trigger_2017.toReplaceWith(RawToDigi, _rpc_NewReadoutVal_RawToDigi)
stage2L1Trigger_2017.toReplaceWith(RawToDigi_noTk, _rpc_NewReadoutVal_RawToDigi)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toReplaceWith(RawToDigi, RawToDigi.copyAndExclude([muonRPCNewDigis]))
fastSim.toReplaceWith(RawToDigi_noTk, RawToDigi_noTk.copyAndExclude([muonRPCNewDigis]))

_hfnose_RawToDigi = RawToDigi.copy()
_hfnose_RawToDigi += hfnoseDigis

from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
phase2_hfnose.toReplaceWith(RawToDigi,_hfnose_RawToDigi)

Example #5
0
_phase2_muonlocalrecoTask = _run3_muonlocalrecoTask.copy()
_phase2_muonlocalrecoTask.add(me0LocalRecoTask)

from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
run2_GEM_2017.toReplaceWith(muonlocalrecoTask,
                            _run2_GEM_2017_muonlocalrecoTask)
from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
run3_GEM.toReplaceWith(muonlocalrecoTask, _run3_muonlocalrecoTask)
from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
phase2_muon.toReplaceWith(muonlocalrecoTask, _phase2_muonlocalrecoTask)

# RPC New Readout Validation
from Configuration.Eras.Modifier_stage2L1Trigger_2017_cff import stage2L1Trigger_2017
_rpc_NewReadoutVal_muonlocalreco_with_2DSegmentsTask = muonlocalreco_with_2DSegmentsTask.copy(
)
_rpc_NewReadoutVal_muonlocalrecoTask = muonlocalrecoTask.copy()
_rpc_NewReadoutVal_muonlocalreco_with_2DSegmentsTask.add(rpcNewRecHits)
_rpc_NewReadoutVal_muonlocalrecoTask.add(rpcNewRecHits)
stage2L1Trigger_2017.toReplaceWith(
    muonlocalreco_with_2DSegmentsTask,
    _rpc_NewReadoutVal_muonlocalreco_with_2DSegmentsTask)
stage2L1Trigger_2017.toReplaceWith(muonlocalrecoTask,
                                   _rpc_NewReadoutVal_muonlocalrecoTask)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toReplaceWith(
    muonlocalreco_with_2DSegmentsTask,
    muonlocalreco_with_2DSegmentsTask.copyAndExclude([rpcNewRecHits]))
fastSim.toReplaceWith(muonlocalrecoTask,
                      muonlocalrecoTask.copyAndExclude([rpcNewRecHits]))