Gaudi Framework, version v21r8

Home   Generated: 17 Mar 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 TH1Daida2root (AIDA::IHistogram1D *aida)
 get the underlying pointer for 1D-histogram
static TH2Daida2root (AIDA::IHistogram2D *aida)
 get the underlying pointer for 2D-histogram
static TH3Daida2root (AIDA::IHistogram3D *aida)
 get the underlying pointer for 3D-histogram
static TProfileaida2root (AIDA::IProfile1D *aida)
 get the underlying pointer for 1D-profile
static TProfile2Daida2root (AIDA::IProfile2D *aida)
 get the underlying pointer for 2D-profile
static TObjectaida2root (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 44 of file Aida2ROOT.cpp.

00045 {
00046   if ( 0 == aida ) { return 0 ; }
00047   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
00048   if ( 0 == base ) { return 0 ; }
00049   return dynamic_cast<TH1D*>( base->representation() ) ;
00050 }

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

get the underlying pointer for 2D-histogram

Definition at line 54 of file Aida2ROOT.cpp.

00055 {
00056   if ( 0 == aida ) { return 0 ; }
00057   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
00058   if ( 0 == base ) { return 0 ; }
00059   return dynamic_cast<TH2D*>( base->representation() ) ;
00060 }

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

get the underlying pointer for 3D-histogram

Definition at line 64 of file Aida2ROOT.cpp.

00065 {
00066   if ( 0 == aida ) { return 0 ; }
00067   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
00068   if ( 0 == base ) { return 0 ; }
00069   return dynamic_cast<TH3D*>( base->representation() ) ;
00070 }

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

get the underlying pointer for 1D-profile

Definition at line 74 of file Aida2ROOT.cpp.

00075 {
00076   if ( 0 == aida ) { return 0 ; }
00077   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
00078   if ( 0 == base ) { return 0 ; }
00079   return dynamic_cast<TProfile*>( base->representation() ) ;
00080 }

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

get the underlying pointer for 2D-profile

Definition at line 84 of file Aida2ROOT.cpp.

00085 {
00086   if ( 0 == aida ) { return 0 ; }
00087   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
00088   if ( 0 == base ) { return 0 ; }
00089   return dynamic_cast<TProfile2D*>( base->representation() ) ;
00090 }

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

get root representation for other cases

Definition at line 94 of file Aida2ROOT.cpp.

00095 {
00096   if ( 0 == aida ) { return 0 ; }
00097   Gaudi::HistogramBase* base = dynamic_cast<Gaudi::HistogramBase*> ( aida ) ;
00098   if ( 0 == base ) { return 0 ; }
00099   return base->representation() ;
00100 }


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

Generated at Wed Mar 17 18:21:40 2010 for Gaudi Framework, version v21r8 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004