19 #include "TProfile2D.h"
20 #include "TBufferXML.h"
24 #include "AIDA/IHistogram1D.h"
25 #include "AIDA/IHistogram2D.h"
26 #include "AIDA/IHistogram3D.h"
27 #include "AIDA/IProfile1D.h"
28 #include "AIDA/IProfile2D.h"
54 if ( 0 == obj.get() ) {
return H() ; }
55 H histo ( dynamic_cast<TYPE*>( obj.get() ) ) ;
56 if ( 0 != histo.get() ) { obj.release() ; }
74 const TObject* obj = &histo ;
76 TString
s = TBufferXML::ConvertToXML ( const_cast<TObject*> ( obj ) ) ;
91 const TObject* obj = &histo ;
93 TString
s = TBufferXML::ConvertToXML ( const_cast<TObject*> ( obj ) ) ;
104 (
const TH3D& histo ,
108 const TObject* obj = &histo ;
110 TString
s = TBufferXML::ConvertToXML ( const_cast<TObject*> ( obj ) ) ;
121 (
const TH1F& histo ,
125 const TObject* obj = &histo ;
127 TString
s = TBufferXML::ConvertToXML ( const_cast<TObject*> ( obj ) ) ;
138 (
const TH2F& histo ,
142 const TObject* obj = &histo ;
144 TString
s = TBufferXML::ConvertToXML ( const_cast<TObject*> ( obj ) ) ;
155 (
const TH3F& histo ,
159 const TObject* obj = &histo ;
161 TString
s = TBufferXML::ConvertToXML ( const_cast<TObject*> ( obj ) ) ;
172 (
const TProfile& histo ,
176 const TObject* obj = &histo ;
178 TString
s = TBufferXML::ConvertToXML ( const_cast<TObject*> ( obj ) ) ;
189 (
const TProfile2D& histo ,
193 const TObject* obj = &histo ;
195 TString
s = TBufferXML::ConvertToXML ( const_cast<TObject*> ( obj ) ) ;
206 (
const AIDA::IHistogram1D& histo ,
210 AIDA::IHistogram1D* aida =
const_cast<AIDA::IHistogram1D*
> ( &histo ) ;
213 if ( 0 == root ) {
return stream ; }
215 return toXml ( *root , stream ) ;
224 (
const AIDA::IHistogram2D& histo ,
228 AIDA::IHistogram2D* aida =
const_cast<AIDA::IHistogram2D*
> ( &histo ) ;
231 if ( 0 == root ) {
return stream ; }
233 return toXml ( *root , stream ) ;
242 (
const AIDA::IHistogram3D& histo ,
246 AIDA::IHistogram3D* aida =
const_cast<AIDA::IHistogram3D*
> ( &histo ) ;
249 if ( 0 == root ) {
return stream ; }
251 return toXml ( *root , stream ) ;
260 (
const AIDA::IProfile1D& histo ,
264 AIDA::IProfile1D* aida =
const_cast<AIDA::IProfile1D*
> ( &histo ) ;
267 if ( 0 == root ) {
return stream ; }
269 return toXml ( *root , stream ) ;
278 (
const AIDA::IProfile2D& histo ,
282 AIDA::IProfile2D* aida =
const_cast<AIDA::IProfile2D*
> ( &histo ) ;
285 if ( 0 == root ) {
return stream ; }
287 return toXml ( *root , stream ) ;
307 histo->Copy ( result ) ;
329 histo->Copy ( result ) ;
351 histo->Copy ( result ) ;
373 histo->Copy ( result ) ;
395 histo->Copy ( result ) ;
417 histo->Copy ( result ) ;
434 _Xml<TProfile> _xml ;
439 histo->Copy ( result ) ;
456 _Xml<TProfile2D> _xml ;
461 histo->Copy ( result ) ;
477 if ( 0 != result ) {
return fromXml ( *result , input ) ; }
497 if ( 0 != result ) {
return fromXml ( *result , input ) ; }
517 if ( 0 != result ) {
return fromXml ( *result , input ) ; }
538 if ( 0 != result ) {
return fromXml ( *result , input ) ; }
540 _Xml<TProfile> _xml ;
558 if ( 0 != result ) {
return fromXml ( *result , input ) ; }
560 _Xml<TProfile2D> _xml ;
581 return fromXml ( *root , input ) ;
596 return fromXml ( *root , input ) ;
611 return fromXml ( *root , input ) ;
626 return fromXml ( *root , input ) ;
641 return fromXml ( *root , input ) ;