ATLAS Offline Software
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$
19 
20 #ifdef XAOD_ANALYSIS
21 #include "TError.h"
22 #endif
23 
24 
25 namespace RootConversions {
26 
27 
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 }
74 
75 
76 } // namespace RootConversions
RootConversions
Definition: VectorConverter.h:31
VectorConverters.h
Define converters for some standard vector types, needed to read old data files and for cross-platfor...
RootConversions::VectorConverter
Converter for vector<T> to vector.
Definition: VectorConverter.h:40
RootConversions::VectorConverters::initialize
static void initialize()
Register all CLHEP converters.
Definition: VectorConverters.cxx:31
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.h
Registry for Root converters.
TConverterRegistry::Instance
static TConverterRegistry * Instance()
Return a pointer to the global registry instance.
Definition: TConverterRegistry.cxx:143
VectorConverter.h
Template for streamer converter for vector<T> -> vector, assuming T is convertable to U.