ATLAS Offline Software
Database
AthenaPOOL
RootConversions
RootConversions
VectorConverter.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// $Id$
17
#ifndef ROOTCONVERSIONS_VECTORCONVERTER_H
18
#define ROOTCONVERSIONS_VECTORCONVERTER_H
19
20
21
#include "TMemberStreamer.h"
22
#include "TBuffer.h"
23
#include "TClass.h"
24
#include "TROOT.h"
25
#include "Rtypes.h"
26
#include <string>
27
#include <vector>
28
#include <cassert>
29
30
31
namespace
RootConversions
{
32
33
37
template
<
typename
T,
typename
U>
38
class
VectorConverter
39
:
public
TMemberStreamer
40
{
41
public
:
46
VectorConverter
(
const
char
* tname);
47
48
55
virtual
void
operator()
(TBuffer&
b
,
void
* pmember, Int_t
size
=0);
56
57
58
private
:
60
TClass*
m_cl
;
61
};
62
63
64
}
// namespace RootConversions
65
66
67
#include "
RootConversions/VectorConverter.icc
"
68
69
70
#endif // not ROOTCONVERSIONS_VECTORCONVERTER_H
VectorConverter.icc
RootConversions
Definition:
VectorConverter.h:31
RootConversions::VectorConverter::operator()
virtual void operator()(TBuffer &b, void *pmember, Int_t size=0)
Run the streamer.
RootConversions::VectorConverter
Converter for vector<T> to vector.
Definition:
VectorConverter.h:40
python.setupRTTAlg.size
int size
Definition:
setupRTTAlg.py:39
RootConversions::VectorConverter::m_cl
TClass * m_cl
Hold the class for vector<double>.
Definition:
VectorConverter.h:60
RootConversions::VectorConverter::VectorConverter
VectorConverter(const char *tname)
Constructor.
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
Generated on Sun Dec 22 2024 21:22:20 for ATLAS Offline Software by
1.8.18