ATLAS Offline Software
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-2025 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
17 #ifndef ROOTCONVERSIONS_VECTORCONVERTER_H
18 #define ROOTCONVERSIONS_VECTORCONVERTER_H
19 
20 #include <string>
21 #include <vector>
22 #include "Rtypes.h"
23 #include "TBuffer.h"
24 #include "TClass.h"
25 #include "TMemberStreamer.h"
26 
27 
28 namespace RootConversions {
29 
30 
34 template <typename T, typename U>
36  : public TMemberStreamer
37 {
38 public:
43  VectorConverter (const char* tname);
44 
45 
52  virtual void operator() (TBuffer& b, void* pmember, Int_t size=0);
53 
54 
55 private:
57  TClass* m_cl;
58 };
59 
60 
61 } // namespace RootConversions
62 
63 
65 
66 
67 #endif // not ROOTCONVERSIONS_VECTORCONVERTER_H
VectorConverter.icc
RootConversions
Definition: VectorConverter.h:28
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:37
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:57
RootConversions::VectorConverter::VectorConverter
VectorConverter(const char *tname)
Constructor.
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:76