ATLAS Offline Software
|
Provide backwards compatibility for reading DataVector
classes.
More...
#include <DataVectorConvert.h>
Static Public Member Functions | |
static void | initialize (RootUtils::ILogger *logfn=0) |
Scan all known DataVector classes and fix up the Root data for any that need conversion. More... | |
Provide backwards compatibility for reading DataVector
classes.
When setting up DataVector
inheritance using DATAVECTOR_BASE
, a side effect is that the persistent form of the data may change. Including this service will fix up the root metadata to allow reading old data. In fact, any sort of DataVector<A>
to DataVector<B>
conversions will be allowed, provided that A*
can be converted to B*
.
The only reason to make this a class rather than a free function is that Root's autoloading seems to work only with classes.
Definition at line 39 of file DataVectorConvert.h.
|
static |
Scan all known DataVector
classes and fix up the Root data for any that need conversion.
logfn | Callback for logging debug messages. Null for no logging. |
It's ok to call this more than once to look for any new classes (we remember which classes we've already processed to avoid doing them again).
Definition at line 469 of file DataVectorConvert.cxx.