cmssw icon indicating copy to clipboard operation
cmssw copied to clipboard

restrict usePF2PAT to load modules already on existing sequences or tasks

Open slava77 opened this issue 4 years ago • 4 comments

currently usePF2PAT loads all modules accessible in patSequences_cff to patAlgoToolsTask (+pre/post-fix)

https://github.com/cms-sw/cmssw/blob/96b6501ba97b688cbf3559f7322c67976da337de/PhysicsTools/PatAlgos/python/tools/pfTools.py#L407-L421

this may become impossible to maintain if some modules can run only with a specific era or process modifier

One solution could be to restrict the module picked up in https://github.com/cms-sw/cmssw/blob/96b6501ba97b688cbf3559f7322c67976da337de/PhysicsTools/PatAlgos/python/tools/helpers.py#L61-L90 to just the ones already attached to sequences or tasks; perhaps traversing patDefaultSequence is enough with NodeVisitor https://mattermost.web.cern.ch/cms-o-and-c/pl/pi94usrjcp8n5mqzd33d5zmkdc

slava77 avatar Jun 25 '21 19:06 slava77

assign reconstruction,xpog

slava77 avatar Jun 25 '21 19:06 slava77

New categories assigned: xpog,reconstruction

@slava77,@fgolf,@mariadalfonso,@gouskos,@perrotta,@jpata you have been requested to review this Pull request/Issue and eventually sign? Thanks

cmsbuild avatar Jun 25 '21 19:06 cmsbuild

A new Issue was created by @slava77 Slava Krutelyov.

@Dr15Jones, @dpiparo, @silviodonato, @smuzaffar, @makortel, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

cmsbuild avatar Jun 25 '21 19:06 cmsbuild

why didn't we move this forward @slava77 ?

vlimant avatar Oct 10 '22 11:10 vlimant

why didn't we move this forward @slava77 ?

I don't recall the details. It could be that reco was waiting for xpog to follow up.

slava77 avatar Jan 17 '24 15:01 slava77

why didn't we move this forward @slava77 ?

I don't recall the details. It could be that reco was waiting for xpog to follow up.

apparently initially the context was related to the PAT unit tests https://github.com/cms-sw/cmssw/pull/33928#issuecomment-868786345

slava77 avatar Jan 17 '24 16:01 slava77

thanks

vlimant avatar Jan 17 '24 16:01 vlimant

please close

vlimant avatar Jan 17 '24 16:01 vlimant