| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

# Gaudi::Utils::Aida2ROOT Class Reference

Accessor to underlying ROOT-representation of transient histograms The actual code is imported from Bender project. More...

`#include <GaudiKernel/Aida2ROOT.h>`

List of all members.

## Static Public Member Functions
static TH1D * | aida2root (AIDA::IHistogram1D *aida)
| get the underlying pointer for 1D-histogram
static TH2D * | aida2root (AIDA::IHistogram2D *aida)
| get the underlying pointer for 2D-histogram
static TH3D * | aida2root (AIDA::IHistogram3D *aida)
| get the underlying pointer for 3D-histogram
static TProfile * | aida2root (AIDA::IProfile1D *aida)
| get the underlying pointer for 1D-profile
static TProfile2D * | aida2root (AIDA::IProfile2D *aida)
| get the underlying pointer for 2D-profile
static TObject * | aida2root (AIDA::IHistogram *aida)
| get root representation for other cases

## Detailed Description

Accessor to underlying ROOT-representation of transient histograms The actual code is imported from Bender project.

It relies on PI implementation of AIDA interface, modified by Markus FRANK.

See also:
  Gaudi::H1D

  Gaudi::H2D

  Gaudi::H3D

  Gaudi::Profile1D

  Gaudi::Profile2D

  AIDA::IHistogram1D

  AIDA::IHistogram2D

  AIDA::IHistogram3D

  AIDA::IProfile1D

  AIDA::IProfile2D

Author:
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2007-01-23

Definition at line 61 of file Aida2ROOT.h.

## Member Function Documentation

TH1D * Gaudi::Utils::Aida2ROOT::aida2root | ( | AIDA::IHistogram1D * | aida | ) | `[static]`

get the underlying pointer for 1D-histogram

Definition at line 49 of file Aida2ROOT.cpp.

    00050 {
    00051   if ( 0 == aida ) { return 0 ; }
    00052   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
    00053   if ( 0 == base ) { return 0 ; }
    00054   return dynamic_cast<TH1D*>( base->representation() ) ;
    00055 }

TH2D * Gaudi::Utils::Aida2ROOT::aida2root | ( | AIDA::IHistogram2D * | aida | ) | `[static]`

get the underlying pointer for 2D-histogram

Definition at line 59 of file Aida2ROOT.cpp.

    00060 {
    00061   if ( 0 == aida ) { return 0 ; }
    00062   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
    00063   if ( 0 == base ) { return 0 ; }
    00064   return dynamic_cast<TH2D*>( base->representation() ) ;
    00065 }

TH3D * Gaudi::Utils::Aida2ROOT::aida2root | ( | AIDA::IHistogram3D * | aida | ) | `[static]`

get the underlying pointer for 3D-histogram

Definition at line 69 of file Aida2ROOT.cpp.

    00070 {
    00071   if ( 0 == aida ) { return 0 ; }
    00072   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
    00073   if ( 0 == base ) { return 0 ; }
    00074   return dynamic_cast<TH3D*>( base->representation() ) ;
    00075 }

TProfile * Gaudi::Utils::Aida2ROOT::aida2root | ( | AIDA::IProfile1D * | aida | ) | `[static]`

get the underlying pointer for 1D-profile

Definition at line 79 of file Aida2ROOT.cpp.

    00080 {
    00081   if ( 0 == aida ) { return 0 ; }
    00082   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
    00083   if ( 0 == base ) { return 0 ; }
    00084   return dynamic_cast<TProfile*>( base->representation() ) ;
    00085 }

TProfile2D * Gaudi::Utils::Aida2ROOT::aida2root | ( | AIDA::IProfile2D * | aida | ) | `[static]`

get the underlying pointer for 2D-profile

Definition at line 89 of file Aida2ROOT.cpp.

    00090 {
    00091   if ( 0 == aida ) { return 0 ; }
    00092   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
    00093   if ( 0 == base ) { return 0 ; }
    00094   return dynamic_cast<TProfile2D*>( base->representation() ) ;
    00095 }

TObject * Gaudi::Utils::Aida2ROOT::aida2root | ( | AIDA::IHistogram * | aida | ) | `[static]`

get root representation for other cases

Definition at line 99 of file Aida2ROOT.cpp.

    00100 {
    00101   if ( 0 == aida ) { return 0 ; }
    00102   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
    00103   if ( 0 == base ) { return 0 ; }
    00104   return base->representation() ;
    00105 }

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r11/GaudiUtils/GaudiUtils/Aida2ROOT.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r11/GaudiUtils/src/Lib/Aida2ROOT.cpp