ATLAS Offline Software
Static Public Member Functions | List of all members
RootConversions::VectorConverters Class Reference

Register standard vector converters. More...

#include <VectorConverters.h>

Collaboration diagram for RootConversions::VectorConverters:

Static Public Member Functions

static void initialize ()
 Register all CLHEP converters. More...
 

Detailed Description

Register standard vector converters.

This is a class rather than a free function so that it can be autoloaded.

Definition at line 34 of file VectorConverters.h.

Member Function Documentation

◆ initialize()

void RootConversions::VectorConverters::initialize ( )
static

Register all CLHEP converters.

Register standard vector converters.

Definition at line 31 of file VectorConverters.cxx.

32 {
33 #ifdef XAOD_ANALYSIS
34 long tmpError = gErrorIgnoreLevel;
35 gErrorIgnoreLevel=kError; //silences the warnings about duplicate entries from vector.dll and vector-bool.dll
36 #endif
38  ("vector<double>", "vector<float>",
40 
42  ("vector<unsigned long>", "vector<unsigned long long>",
44  ("unsigned long"));
45 
47  ("vector<unsigned long long>", "vector<unsigned long>",
49  ("unsigned long long"));
50 
52  ("vector<unsigned short>", "vector<int>",
54  ("unsigned short"));
55 
57  ("vector<unsigned short>", "vector<long long>",
59  ("unsigned short"));
60 
62  ("vector<unsigned short>", "vector<Long64_t>",
64  ("unsigned short"));
65 
67  ("vector<unsigned int>", "vector<ULong64_t>",
69  ("unsigned int"));
70 #ifdef XAOD_ANALYSIS
71 gErrorIgnoreLevel=tmpError;
72 #endif
73 }

The documentation for this class was generated from the following files:
RootConversions::VectorConverter
Converter for vector<T> to vector.
Definition: VectorConverter.h:40
Analysis::kError
@ kError
Definition: CalibrationDataVariables.h:60
TConverterRegistry::AddStreamerConverter
void AddStreamerConverter(const std::string &from_type, const std::string &to_type, TMemberStreamer *streamer)
Definition: TConverterRegistry.cxx:114
gErrorIgnoreLevel
int gErrorIgnoreLevel
TConverterRegistry::Instance
static TConverterRegistry * Instance()
Return a pointer to the global registry instance.
Definition: TConverterRegistry.cxx:143