ATLAS Offline Software
Database
AthenaPOOL
RootConversions
src
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$
16
#include "
RootConversions/VectorConverters.h
"
17
#include "
RootConversions/VectorConverter.h
"
18
#include "
RootConversions/TConverterRegistry.h
"
19
20
#ifdef XAOD_ANALYSIS
21
#include "TError.h"
22
#endif
23
24
25
namespace
RootConversions
{
26
27
31
void
VectorConverters::initialize
()
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
37
TConverterRegistry::Instance
()->
AddStreamerConverter
38
(
"vector<double>"
,
"vector<float>"
,
39
new
RootConversions::VectorConverter<double,float>
(
"double"
));
40
41
TConverterRegistry::Instance
()->
AddStreamerConverter
42
(
"vector<unsigned long>"
,
"vector<unsigned long long>"
,
43
new
RootConversions::VectorConverter<unsigned long,unsigned long long>
44
(
"unsigned long"
));
45
46
TConverterRegistry::Instance
()->
AddStreamerConverter
47
(
"vector<unsigned long long>"
,
"vector<unsigned long>"
,
48
new
RootConversions::VectorConverter<unsigned long long,unsigned long>
49
(
"unsigned long long"
));
50
51
TConverterRegistry::Instance
()->
AddStreamerConverter
52
(
"vector<unsigned short>"
,
"vector<int>"
,
53
new
RootConversions::VectorConverter<unsigned short,int>
54
(
"unsigned short"
));
55
56
TConverterRegistry::Instance
()->
AddStreamerConverter
57
(
"vector<unsigned short>"
,
"vector<long long>"
,
58
new
RootConversions::VectorConverter<unsigned short,long long>
59
(
"unsigned short"
));
60
61
TConverterRegistry::Instance
()->
AddStreamerConverter
62
(
"vector<unsigned short>"
,
"vector<Long64_t>"
,
63
new
RootConversions::VectorConverter<unsigned short,Long64_t>
64
(
"unsigned short"
));
65
66
TConverterRegistry::Instance
()->
AddStreamerConverter
67
(
"vector<unsigned int>"
,
"vector<ULong64_t>"
,
68
new
RootConversions::VectorConverter<unsigned int,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.
Generated on Thu Nov 7 2024 21:31:24 for ATLAS Offline Software by
1.8.18