ATLAS Offline Software
Loading...
Searching...
No Matches
SG::ToTransient< T > Class Template Reference

Define a hook for running code after an object has been read. More...

#include <ToTransient.h>

Collaboration diagram for SG::ToTransient< T >:

Public Types

using noToTransient = int
 This definition flags taht we can skip actually calling toTransient for this type.

Static Public Member Functions

static void toTransient (T &)
static void toTransient (T &, const EventContext &)

Detailed Description

template<class T>
class SG::ToTransient< T >

Define a hook for running code after an object has been read.

Some objects need additional processing after reading in order to be usable. (ROOT read rules are often not ideal since there is no way to pass them an EventContext other than via the global thread-local lookup.) ToTransient<U>::toTransient will be called for the container of an xAOD auxiliary variable after it has been read (for an auxiliary variable of type T, this will usually be std::vector<T>). It will also be called from ATLAS POOL converters after an object has been read.

If noToTransient is defined, then the converters may skip actually making the toTransient calls for this type.

Definition at line 39 of file ToTransient.h.

Member Typedef Documentation

◆ noToTransient

template<class T>
using SG::ToTransient< T >::noToTransient = int

This definition flags taht we can skip actually calling toTransient for this type.

It should be aliased to int.

Definition at line 44 of file ToTransient.h.

Member Function Documentation

◆ toTransient() [1/2]

template<class T>
void SG::ToTransient< T >::toTransient ( T & )
inlinestatic

Definition at line 53 of file ToTransient.h.

54 {
55 }

◆ toTransient() [2/2]

template<class T>
void SG::ToTransient< T >::toTransient ( T & ,
const EventContext &  )
inlinestatic

Definition at line 65 of file ToTransient.h.

66 {
67 }

The documentation for this class was generated from the following file: