ATLAS Offline Software
Loading...
Searching...
No Matches
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.

Detailed Description

Register standard vector converters.

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

Definition at line 35 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// initialize() is called once during single-threaded job setup.
35long tmpError = gErrorIgnoreLevel;
36gErrorIgnoreLevel = kError; //silences warnings about duplicate entries from vector.dll and vector-bool.dll
37#endif
39 ("vector<double>", "vector<float>",
40 new RootConversions::VectorConverter<double,float> ("double"));
41
43 ("vector<unsigned long>", "vector<unsigned long long>",
44 new RootConversions::VectorConverter<unsigned long,unsigned long long>
45 ("unsigned long"));
46
48 ("vector<unsigned long long>", "vector<unsigned long>",
49 new RootConversions::VectorConverter<unsigned long long,unsigned long>
50 ("unsigned long long"));
51
53 ("vector<unsigned short>", "vector<int>",
54 new RootConversions::VectorConverter<unsigned short,int>
55 ("unsigned short"));
56
58 ("vector<unsigned short>", "vector<long long>",
59 new RootConversions::VectorConverter<unsigned short,long long>
60 ("unsigned short"));
61
63 ("vector<unsigned short>", "vector<Long64_t>",
64 new RootConversions::VectorConverter<unsigned short,Long64_t>
65 ("unsigned short"));
66
68 ("vector<unsigned int>", "vector<ULong64_t>",
69 new RootConversions::VectorConverter<unsigned int,ULong64_t>
70 ("unsigned int"));
71#ifdef XAOD_ANALYSIS
72gErrorIgnoreLevel = tmpError;
73#endif
74}
static TConverterRegistry * Instance()
Return a pointer to the global registry instance.
void AddStreamerConverter(const std::string &from_type, const std::string &to_type, TMemberStreamer *streamer)

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