cp3-llbb / HHAnalysis

HH analysis for CP3 llbb framework
0 stars 7 forks source link

Ensure all branches are created during the first event #128

Closed blinkseb closed 7 years ago

blinkseb commented 7 years ago

We have some branches that are created directly inside the code, inside a if block. After the addition of the taus workaround, it may happen that the first processed event is thrown away because it's a tau event. If it's the case, the branches are not created on the first event, but on the second or third one, meaning the number of entries in these branches will be different than other branches, which is not what we want.

The fix is simple: move branches declaration into the class declaration, ensuring all the branches are created when the class is created.

swertz commented 7 years ago

Nasty one, thanks a lot!