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
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>",
41
43 ("vector<unsigned long>", "vector<unsigned long long>",
45 ("unsigned long"));
46
48 ("vector<unsigned long long>", "vector<unsigned long>",
50 ("unsigned long long"));
51
53 ("vector<unsigned short>", "vector<int>",
55 ("unsigned short"));
56
58 ("vector<unsigned short>", "vector<long long>",
60 ("unsigned short"));
61
63 ("vector<unsigned short>", "vector<Long64_t>",
65 ("unsigned short"));
66
68 ("vector<unsigned int>", "vector<ULong64_t>",
70 ("unsigned int"));
71#ifdef XAOD_ANALYSIS
72gErrorIgnoreLevel = tmpError;
73#endif
74}
75
76
77} // 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)