Skip to content

Avoid re doing the look up for Occupancy from the dEdX tool if we have it already

It seems in cases we call the occupancy calculation twice in the ElectronPID Tool. There is a tool that has a cache (via Write/Read Handle Put mechanism) , but since this is a private tool (so we have different instances of the tool and the of the cache it holds) we end up with two calls and 2 lookup in 2 caches.

In principle if we have the track level occupancy we can pass it (optionally) also down to the dEdX tool and avoid the 2nd call to the tool with same track as input and the relevant lookup . This MR tries this.

Screenshot_2021-06-25_at_14.41.00Screenshot_2021-06-25_at_14.40.39

Mentining @sroe

Edited by Christos Anastopoulos

Merge request reports