ATLAS Offline Software
Loading...
Searching...
No Matches
VectorConverters.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id$
14
15
19
20#ifdef XAOD_ANALYSIS
21#include "TError.h"
22#endif
23
24
25namespace RootConversions {
26
27
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>",
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
71gErrorIgnoreLevel=tmpError;
72#endif
73}
74
75
76} // namespace RootConversions
Registry for Root converters.
Template for streamer converter for vector<T> -> vector, assuming T is convertable to U.
Define converters for some standard vector types, needed to read old data files and for cross-platfor...
Converter for vector<T> to vector.
static void initialize()
Register all CLHEP converters.
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)