Closed kpedro88 closed 6 years ago
Maybe you can use some cms.Process
accessors to check if there's already a path/endpath created, and if so, just associate the jet toolbox task with that (only creating the new endpath if nothing else is available)?
https://github.com/cms-sw/cmssw/blob/CMSSW_9_1_X/FWCore/ParameterSet/python/Config.py#L210-L217
It was pointed out to me today that running my group's ntuple code in 92X (https://github.com/TreeMaker/TreeMaker/tree/Run2_2017) produces a file called jettoolbox.root, even though we haven't explicitly requested it.
The problem seems to be that the implementation of Tasks in the toolbox always adds this to the config:
I'm not sure what the best solution is, but there needs to be some way for the user to turn this off.