Inject only in current cycle
Sometimes ROOT files may have several cycles of the same TTree
object. Technically speaking, this should always be avoided as the second TTree
object unnecessarily consumes additional storage space.
The keys of these objects differ as they describe different versions of the same object. The highest cycle number is always the most recent version of the object.
Hence the code should check for the highest cycle number of otherwise identical objects and only inject into that TTree
.