let’s assume I have a TTree of the following structure:
My goal is to add a ScaledTLeaf1 and ScaledTLeaf2 to the TTree which are just scaled versions of TLeaf1 and TLeaf2, e.g. every value in TLeaf2 is multiplied by a specific factor. What is the most efficient way to do this? And is there a way to do this completely in memory, i.e. without actually writing out anything? Is it possible to prevent a full copy?