Classes | Namespaces | Macros
LoadFromRegistry.h File Reference
#include <functional>
#include <map>
#include <memory>
#include <string>

Go to the source code of this file.

Classes

class  ana::LoadFromRegistry< BaseClass >
 Mechanism for derived classes to register their LoadFrom functions. More...
 

Namespaces

 ana
 Cuts and Vars for the 2020 FD DiF Study.
 

Macros

#define REGISTER_LOADFROM(tag, BASE, DERIVED)
 

Macro Definition Documentation

#define REGISTER_LOADFROM (   tag,
  BASE,
  DERIVED 
)
Value:
struct Register##DERIVED##LoadFrom{ \
Register##DERIVED##LoadFrom(){ \
LoadFromRegistry<BASE>::FuncAny_t<DERIVED> lf = DERIVED::LoadFrom; \
LoadFromRegistry<BASE>::Register(tag, lf); \
} \
} gRegister##DERIVED##LoadFrom
std::unique_ptr< T > LoadFrom(TDirectory *dir, const std::string &label)
Definition: LoadFromFile.h:17

Definition at line 51 of file LoadFromRegistry.h.