ATLAS Offline Software
TConverterStreamer.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: TConverterStreamer.h,v 1.3 2008-11-04 12:42:10 ssnyder Exp $
29 #ifndef TCONVERTERSTREAMER_H
30 #define TCONVERTERSTREAMER_H
31 
32 #include "TClassStreamer.h"
33 #include "TVirtualConverter.h"
34 #include <map>
35 class TClass;
36 class TBuffer;
37 class TFile;
38 
44  : public TClassStreamer
45 {
46 public:
47  typedef std::pair<TVirtualConverter*, bool> Payload;
48  typedef std::map<UInt_t, Payload> CheckSumMap;
49 
55  TConverterStreamer (const CheckSumMap& convmap, TClass* cls);
56 
62  virtual void operator() (TBuffer& b, void* obj);
63 
64 
65 private:
75  void FindVersion(TBuffer& buf,
76  UInt_t& startpos,
77  UInt_t& bcnt,
78  Version_t& version);
79 
87  Version_t R__FindStreamerInfoVersion(const TClass* cl, UInt_t checksum);
88 
91 
93  TClass* fClass;
94 
97 
99  TFile* fLastFile;
100 };
101 
102 
103 #endif // not TCONVERTERSTREAMER_H
104 
TConverterStreamer::Payload
std::pair< TVirtualConverter *, bool > Payload
Definition: TConverterStreamer.h:47
CaloClusterListBadChannel.cls
cls
Definition: CaloClusterListBadChannel.py:8
TConverterStreamer
Root streamer that calls our converter when reading in non-split mode.
Definition: TConverterStreamer.h:45
TConverterStreamer::fStreamerChecksum
UInt_t fStreamerChecksum
Cached checksum for the last object read.
Definition: TConverterStreamer.h:96
TVirtualConverter.h
Base class for Root converters.
TConverterStreamer::R__FindStreamerInfoVersion
Version_t R__FindStreamerInfoVersion(const TClass *cl, UInt_t checksum)
Translate a Root checksum to a class version number.
Definition: TConverterStreamer.cxx:158
TConverterStreamer::TConverterStreamer
TConverterStreamer(const CheckSumMap &convmap, TClass *cls)
Constructor.
Definition: TConverterStreamer.cxx:24
TConverterStreamer::FindVersion
void FindVersion(TBuffer &buf, UInt_t &startpos, UInt_t &bcnt, Version_t &version)
Read the initial byte count/version from an object.
Definition: TConverterStreamer.cxx:75
TConverterStreamer::fConvmap
const CheckSumMap & fConvmap
The checksum -> converter map passed to the constructor.
Definition: TConverterStreamer.h:90
TConverterStreamer::fClass
TClass * fClass
The transient class we're reading.
Definition: TConverterStreamer.h:93
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TConverterStreamer::CheckSumMap
std::map< UInt_t, Payload > CheckSumMap
Definition: TConverterStreamer.h:48
get_generator_info.version
version
Definition: get_generator_info.py:33
TConverterStreamer::fLastFile
TFile * fLastFile
Cached file for the last object read.
Definition: TConverterStreamer.h:99
TConverterStreamer::operator()
virtual void operator()(TBuffer &b, void *obj)
Standard Root streamer interface.
Definition: TConverterStreamer.cxx:39
python.PyAthena.obj
obj
Definition: PyAthena.py:132
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26