1 import FWCore.ParameterSet.Config
as cms
2 from FWCore.ParameterSet.pfnInPath
import pfnInPath
5 from RecoMET.METPUSubtraction.deepMETProducer_cfi
import deepMETProducer
as _deepMETProducer
7 deepMETsResolutionTune = _deepMETProducer.clone()
8 deepMETsResponseTune = _deepMETProducer.clone(
9 graph_path =
'RecoMET/METPUSubtraction/data/models/deepmet/deepmet_resp_v1_2018/model.graphdef',
12 from Configuration.Eras.Modifier_phase2_common_cff
import phase2_common
13 phase2_common.toModify(
14 deepMETsResolutionTune,
16 graph_path=
"RecoMET/METPUSubtraction/data/models/deepmet_phase2/deepmet_v1_phase2/model.graphdef" 18 phase2_common.toModify(
21 graph_path=
"RecoMET/METPUSubtraction/data/models/deepmet_phase2/deepmet_resp_v1_phase2/model.graphdef" 24 from Configuration.Eras.Modifier_run2_jme_2016_cff
import run2_jme_2016
25 run2_jme_2016.toModify(
27 graph_path=
"RecoMET/METPUSubtraction/data/models/deepmet/deepmet_resp_v1_2016/model.graphdef" 30 from RecoMET.METPUSubtraction.deepMETSonicProducer_cff
import deepMETSonicProducer
as _deepMETSonicProducer
31 from Configuration.ProcessModifiers.deepMETSonicTriton_cff
import deepMETSonicTriton
35 modelName = path.split(
'/')[-3],
36 modelConfigPath =
'/'.
join(path.split(
'/')[:-2])+
'/config.pbtxt',
44 _deepMETsResolutionTuneSonic = _deepMETSonicProducer.clone(
45 max_n_pf = deepMETsResolutionTune.max_n_pf,
48 deepMETSonicTriton.toReplaceWith(deepMETsResolutionTune, _deepMETsResolutionTuneSonic)
50 _deepMETsResponseTuneSonic = _deepMETSonicProducer.clone(
51 max_n_pf = deepMETsResponseTune.max_n_pf,
54 deepMETSonicTriton.toReplaceWith(deepMETsResponseTune, _deepMETsResponseTuneSonic)
def split(sequence, size)
static std::string join(char **cmd)
def split_model_path(path)