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>

Static Public Member Functions

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

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 ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
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 55 of file Aida2ROOT.cpp.

56 {
57  if ( 0 == aida ) { return 0 ; }
58  Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
59  if ( 0 == base ) { return 0 ; }
60  return dynamic_cast<TH1D*>( base->representation() ) ;
61 }
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition: HistogramBase.h:22
virtual TObject * representation() const =0
ROOT object implementation.
static TH1D* Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IHistogram1D *  aida)
static

get the underlying pointer for 1D-histogram

TH2D * Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IHistogram2D *  aida)
static

get the underlying pointer for 2D-histogram

Definition at line 65 of file Aida2ROOT.cpp.

66 {
67  if ( 0 == aida ) { return 0 ; }
68  Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
69  if ( 0 == base ) { return 0 ; }
70  return dynamic_cast<TH2D*>( base->representation() ) ;
71 }
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition: HistogramBase.h:22
virtual TObject * representation() const =0
ROOT object implementation.
static TH2D* Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IHistogram2D *  aida)
static

get the underlying pointer for 2D-histogram

static TH3D* Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IHistogram3D *  aida)
static

get the underlying pointer for 3D-histogram

TH3D * Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IHistogram3D *  aida)
static

get the underlying pointer for 3D-histogram

Definition at line 75 of file Aida2ROOT.cpp.

76 {
77  if ( 0 == aida ) { return 0 ; }
78  Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
79  if ( 0 == base ) { return 0 ; }
80  return dynamic_cast<TH3D*>( base->representation() ) ;
81 }
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition: HistogramBase.h:22
virtual TObject * representation() const =0
ROOT object implementation.
TProfile * Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IProfile1D *  aida)
static

get the underlying pointer for 1D-profile

Definition at line 85 of file Aida2ROOT.cpp.

86 {
87  if ( 0 == aida ) { return 0 ; }
88  Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
89  if ( 0 == base ) { return 0 ; }
90  return dynamic_cast<TProfile*>( base->representation() ) ;
91 }
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition: HistogramBase.h:22
virtual TObject * representation() const =0
ROOT object implementation.
static TProfile* Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IProfile1D *  aida)
static

get the underlying pointer for 1D-profile

static TProfile2D* Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IProfile2D *  aida)
static

get the underlying pointer for 2D-profile

TProfile2D * Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IProfile2D *  aida)
static

get the underlying pointer for 2D-profile

Definition at line 95 of file Aida2ROOT.cpp.

96 {
97  if ( 0 == aida ) { return 0 ; }
98  Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
99  if ( 0 == base ) { return 0 ; }
100  return dynamic_cast<TProfile2D*>( base->representation() ) ;
101 }
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition: HistogramBase.h:22
virtual TObject * representation() const =0
ROOT object implementation.
TObject * Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IHistogram *  aida)
static

get root representation for other cases

Definition at line 105 of file Aida2ROOT.cpp.

106 {
107  if ( 0 == aida ) { return 0 ; }
108  Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
109  if ( 0 == base ) { return 0 ; }
110  return base->representation() ;
111 }
Common base class for all histograms Use is solely functional to minimize dynamic_casts inside Histog...
Definition: HistogramBase.h:22
virtual TObject * representation() const =0
ROOT object implementation.
static TObject* Gaudi::Utils::Aida2ROOT::aida2root ( AIDA::IHistogram *  aida)
static

get root representation for other cases


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