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 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
34long tmpError = gErrorIgnoreLevel;
35gErrorIgnoreLevel=kError; //silences the warnings about duplicate entries from vector.dll and vector-bool.dll
36#endif
38 ("vector<double>", "vector<float>",
39 new RootConversions::VectorConverter<double,float> ("double"));
40
42 ("vector<unsigned long>", "vector<unsigned long long>",
43 new RootConversions::VectorConverter<unsigned long,unsigned long long>
44 ("unsigned long"));
45
47 ("vector<unsigned long long>", "vector<unsigned long>",
48 new RootConversions::VectorConverter<unsigned long long,unsigned long>
49 ("unsigned long long"));
50
52 ("vector<unsigned short>", "vector<int>",
53 new RootConversions::VectorConverter<unsigned short,int>
54 ("unsigned short"));
55
57 ("vector<unsigned short>", "vector<long long>",
58 new RootConversions::VectorConverter<unsigned short,long long>
59 ("unsigned short"));
60
62 ("vector<unsigned short>", "vector<Long64_t>",
63 new RootConversions::VectorConverter<unsigned short,Long64_t>
64 ("unsigned short"));
65
67 ("vector<unsigned int>", "vector<ULong64_t>",
68 new RootConversions::VectorConverter<unsigned int,ULong64_t>
69 ("unsigned int"));
70#ifdef XAOD_ANALYSIS
71gErrorIgnoreLevel=tmpError;
72#endif
73}
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: