![]() |
ATLAS Offline Software
|
A variant of TBranchElement that can call converters when reading objects in split mode.
More...
#include <atomic>#include "TBranchElement.h"Go to the source code of this file.
Classes | |
| class | TConvertingBranchElement |
A variant of TBranchElement that can call converters when reading objects in split mode. More... | |
A variant of TBranchElement that can call converters when reading objects in split mode.
This class adds the ability to call converters on classes being read in split mode. It is implemented as a derived class of TBranchElement. In order to use it, you must first register your converters with TConverterRegistry (and call TConvertingBranchElement::Initialize, but normally the registry class will take care of that).
A few notes:
Initialize method will change the New() method of the TBranchElement class to point at our new method. Thus, when we read a TBranchElement from a file, we'll actually make an instance of this class instead. (TBranchElement instances that are created explicitly, for writing, are not affected by this.)TBranchElement if a conversion is happening. However, the old values are saved, so that when the branch gets written, the original values are restored.TODO:
Definition in file TConvertingBranchElement.h.