10 #include "TBufferXML.h"    19 #include "TProfile2D.h"    23 #include "AIDA/IHistogram1D.h"    24 #include "AIDA/IHistogram2D.h"    25 #include "AIDA/IHistogram3D.h"    26 #include "AIDA/IProfile1D.h"    27 #include "AIDA/IProfile2D.h"    45   template <
typename TYPE>
    50     TYPE* histo = ( obj ? 
dynamic_cast<TYPE*
>( obj.get() ) : 
nullptr );
    68   return stream << TBufferXML::ConvertToXML( &histo );
    78   return stream << TBufferXML::ConvertToXML( &histo );
    88   return stream << TBufferXML::ConvertToXML( &histo );
    98   return stream << TBufferXML::ConvertToXML( &histo );
   108   return stream << TBufferXML::ConvertToXML( &histo );
   118   return stream << TBufferXML::ConvertToXML( &histo );
   128   return stream << TBufferXML::ConvertToXML( &histo );
   138   return stream << TBufferXML::ConvertToXML( &histo );
   208   auto histo = _Xml<TH1D>( input );
   213   histo->Copy( result );
   229   auto histo = _Xml<TH2D>( input );
   234   histo->Copy( result );
   250   auto histo = _Xml<TH3D>( input );
   255   histo->Copy( result );
   271   auto histo = _Xml<TH1F>( input );
   276   histo->Copy( result );
   292   auto histo = _Xml<TH2F>( input );
   297   histo->Copy( result );
   313   auto histo = _Xml<TH3F>( input );
   318   histo->Copy( result );
   334   auto histo = _Xml<TProfile>( input );
   339   histo->Copy( result );
   355   auto histo = _Xml<TProfile2D>( input );
   360   histo->Copy( result );
   375     return fromXml( *result, input );
   378   auto histo = _Xml<TH1D>( input );
   383   result = histo.release(); 
   397     return fromXml( *result, input );
   400   auto histo = _Xml<TH2D>( input );
   405   result = histo.release(); 
   419     return fromXml( *result, input );
   422   auto histo = _Xml<TH3D>( input );
   427   result = histo.release(); 
   442     return fromXml( *result, input );
   445   auto histo = _Xml<TProfile>( input );
   450   result = histo.release(); 
   464     return fromXml( *result, input );
   467   auto histo = _Xml<TProfile2D>( input );
   472   result = histo.release(); 
 
GAUDI_API StatusCode fromXml(TH1D &result, const std::string &input)
parse the histogram from standard ROOT XML 
This class is used for returning status codes from appropriate routines. 
static TH1D * aida2root(AIDA::IHistogram1D *aida)
get the underlying pointer for 1D-histogram 
GAUDI_API std::ostream & toXml(const TH1D &histo, std::ostream &stream)
stream the ROOT histogram into output stream as XML