The Gaudi Framework  master (37c0b60a)
Gaudi::Generic1D< INTERFACE, IMPLEMENTATION > Class Template Reference

#include <GaudiPI/Generic1D.h>

Inheritance diagram for Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >:
Collaboration diagram for Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >:

Public Types

typedef Generic1D< INTERFACE, IMPLEMENTATION > Base
 

Public Member Functions

 Generic1D ()=default
 Default constructor. More...
 
virtual const std::stringuserLevelClassType () const
 The AIDA user-level unterface leaf class type. More...
 
void * cast (const std::string &cl) const override
 Manual cast by class name. More...
 
TObject * representation () const override
 ROOT object implementation. More...
 
void adoptRepresentation (TObject *rep) override
 Adopt ROOT histogram representation. More...
 
std::string title () const override
 Get the title of the object. More...
 
bool setTitle (const std::string &title) override
 Set the title of the object. More...
 
std::string name () const
 object name More...
 
bool setName (const std::string &newName)
 Set the name of the object. More...
 
AIDA::IAnnotation & annotation () override
 Access annotation object. More...
 
const AIDA::IAnnotation & annotation () const override
 Access annotation object (cons) More...
 
Axisaxis ()
 Access to axis object. More...
 
const Axisaxis () const override
 Get the x axis of the IHistogram1D. More...
 
int entries () const override
 Get the number or all the entries. More...
 
int allEntries () const override
 Get the number or all the entries, both in range and underflow/overflow bins of the IProfile. More...
 
int extraEntries () const override
 Get the number of entries in the underflow and overflow bins. More...
 
int binEntries (int index) const override
 Number of entries in the corresponding bin (ie the number of times fill was called for this bin). More...
 
virtual double binRms (int index) const
 
double sumBinHeights () const override
 Get the sum of in range bin heights in the IProfile. More...
 
double sumAllBinHeights () const override
 Get the sum of all the bins heights (including underflow and overflow bin). More...
 
double sumExtraBinHeights () const override
 Get the sum of the underflow and overflow bin height. More...
 
double minBinHeight () const override
 Get the minimum height of the in-range bins. More...
 
double maxBinHeight () const override
 Get the maximum height of the in-range bins. More...
 
virtual double equivalentBinEntries () const
 Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ] More...
 
virtual bool scale (double scaleFactor)
 Scale the weights and the errors of all the IHistogram's bins (in-range and out-of-range ones) by a given scale factor. More...
 
bool reset () override
 Reset the Histogram; as if just created. More...
 
bool add (const INTERFACE &profile) override
 Modifies this IProfile1D by adding the contents of profile to it. More...
 
virtual int rIndex (int index) const
 operator methods More...
 
double binMean (int index) const override
 The weighted mean of a bin. More...
 
double binHeight (int index) const override
 Total height of the corresponding bin (ie the sum of the weights in this bin). More...
 
double binError (int index) const override
 The error of a given bin. More...
 
double mean () const override
 The mean of the whole IHistogram1D. More...
 
double rms () const override
 The RMS of the whole IHistogram1D. More...
 
int coordToIndex (double coord) const override
 Get the bin number corresponding to a given coordinate along the x axis. More...
 
int dimension () const override
 Get the Histogram's dimension. More...
 
std::ostreamprint (std::ostream &s) const override
 Print (ASCII) the histogram into the output stream. More...
 
std::ostreamwrite (std::ostream &s) const override
 Write (ASCII) the histogram table into the output stream. More...
 
int write (const char *file_name) const override
 Write (ASCII) the histogram table into a file. More...
 
void * cast (const std::string &className) const
 
int binEntries (int index) const
 
void adoptRepresentation (TObject *rep)
 Adopt ROOT histogram representation. More...
 
int binEntries (int index) const
 
void * cast (const std::string &className) const
 
void adoptRepresentation (TObject *rep)
 Adopt ROOT histogram representation. More...
 
- Public Member Functions inherited from Gaudi::HistogramBase
virtual ~HistogramBase ()=default
 

Protected Member Functions

 Generic1D (IMPLEMENTATION *p)
 constructor More...
 

Protected Attributes

Axis m_axis
 Axis member. More...
 
AIDA::Annotation m_annotation
 Object annotations. More...
 
std::unique_ptr< IMPLEMENTATION > m_rep
 Reference to underlying implementation. More...
 
std::string m_classType
 
int m_sumEntries { 0 }
 

Detailed Description

template<class INTERFACE, class IMPLEMENTATION>
class Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >

Common AIDA implementation stuff for histograms and profiles using ROOT implementations

Credits: This code is the result of some stripdown implementation of LCG/PI. Credits to them!

Author
M.Frank

Definition at line 46 of file Generic1D.h.

Member Typedef Documentation

◆ Base

template<class INTERFACE , class IMPLEMENTATION >
typedef Generic1D<INTERFACE, IMPLEMENTATION> Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::Base

Definition at line 48 of file Generic1D.h.

Constructor & Destructor Documentation

◆ Generic1D() [1/2]

template<class INTERFACE , class IMPLEMENTATION >
Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::Generic1D ( )
default

Default constructor.

◆ Generic1D() [2/2]

template<class INTERFACE , class IMPLEMENTATION >
Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::Generic1D ( IMPLEMENTATION *  p)
inlineprotected

constructor

Definition at line 54 of file Generic1D.h.

54 : m_rep( p ) {}

Member Function Documentation

◆ add()

template<class INTERFACE , class IMPLEMENTATION >
bool Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::add ( const INTERFACE &  profile)
override

Modifies this IProfile1D by adding the contents of profile to it.

Definition at line 209 of file Generic1D.h.

209  {
210  const Generic1D<INTERFACE, IMPLEMENTATION>* p = dynamic_cast<const Generic1D<INTERFACE, IMPLEMENTATION>*>( &h );
211  if ( p ) {
212  m_rep->Add( p->m_rep.get() );
213  return true;
214  }
215  throw std::runtime_error( "Cannot add profile histograms of different implementations." );
216  }

◆ adoptRepresentation() [1/3]

void Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::adoptRepresentation ( TObject *  rep)
virtual

Adopt ROOT histogram representation.

Implements Gaudi::HistogramBase.

Definition at line 71 of file H1D.cpp.

71  {
72  TH1D* imp = dynamic_cast<TH1D*>( rep );
73  if ( !imp ) throw std::runtime_error( "Cannot adopt native histogram representation." );
74  m_rep.reset( imp );
75  }

◆ adoptRepresentation() [2/3]

void Gaudi::Generic1D< AIDA::IProfile1D, TProfile >::adoptRepresentation ( TObject *  rep)
virtual

Adopt ROOT histogram representation.

Implements Gaudi::HistogramBase.

Definition at line 75 of file P1D.cpp.

75  {
76  TProfile* imp = dynamic_cast<TProfile*>( rep );
77  if ( !imp ) throw std::runtime_error( "Cannot adopt native histogram representation." );
78  m_rep.reset( imp );
79  m_axis.initialize( m_rep->GetXaxis(), true );
80  const TArrayD* a = m_rep->GetSumw2();
81  if ( !a || ( a && a->GetSize() == 0 ) ) m_rep->Sumw2();
82  setTitle( m_rep->GetTitle() );
83  }

◆ adoptRepresentation() [3/3]

template<class INTERFACE , class IMPLEMENTATION >
void Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::adoptRepresentation ( TObject *  rep)
overridevirtual

Adopt ROOT histogram representation.

Implements Gaudi::HistogramBase.

◆ allEntries()

template<class INTERFACE , class IMPLEMENTATION >
int Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::allEntries ( ) const
inlineoverride

Get the number or all the entries, both in range and underflow/overflow bins of the IProfile.

Definition at line 85 of file Generic1D.h.

85 { return m_rep->GetEntries(); }

◆ annotation() [1/2]

template<class INTERFACE , class IMPLEMENTATION >
const AIDA::IAnnotation& Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::annotation ( ) const
inlineoverride

Access annotation object (cons)

Definition at line 76 of file Generic1D.h.

76 { return m_annotation; }

◆ annotation() [2/2]

template<class INTERFACE , class IMPLEMENTATION >
AIDA::IAnnotation& Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::annotation ( )
inlineoverride

Access annotation object.

Definition at line 74 of file Generic1D.h.

74 { return m_annotation; }

◆ axis() [1/2]

template<class INTERFACE , class IMPLEMENTATION >
Axis& Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::axis ( )
inline

Access to axis object.

Definition at line 78 of file Generic1D.h.

78 { return m_axis; }

◆ axis() [2/2]

template<class INTERFACE , class IMPLEMENTATION >
const Axis& Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::axis ( ) const
inlineoverride

Get the x axis of the IHistogram1D.

Definition at line 80 of file Generic1D.h.

80 { return m_axis; }

◆ binEntries() [1/3]

int Gaudi::Generic1D< AIDA::IProfile1D, TProfile >::binEntries ( int  index) const

Definition at line 60 of file P1D.cpp.

60  {
61  return int( m_rep->GetBinEntries( rIndex( index ) ) + 0.5 );
62  }

◆ binEntries() [2/3]

int Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::binEntries ( int  index) const

Definition at line 64 of file H1D.cpp.

64  {
65  if ( binHeight( index ) <= 0 ) return 0;
66  double xx = binHeight( index ) / binError( index );
67  return int( xx * xx + 0.5 );
68  }

◆ binEntries() [3/3]

template<class INTERFACE , class IMPLEMENTATION >
int Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::binEntries ( int  index) const
override

Number of entries in the corresponding bin (ie the number of times fill was called for this bin).

◆ binError()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::binError ( int  index) const
override

The error of a given bin.

Definition at line 179 of file Generic1D.h.

179  {
180  return m_rep->GetBinError( rIndex( index ) );
181  }

◆ binHeight()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::binHeight ( int  index) const
override

Total height of the corresponding bin (ie the sum of the weights in this bin).

Definition at line 174 of file Generic1D.h.

174  {
175  return m_rep->GetBinContent( rIndex( index ) );
176  }

◆ binMean()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::binMean ( int  index) const
override

The weighted mean of a bin.

Definition at line 169 of file Generic1D.h.

169  {
170  return m_rep->GetBinCenter( rIndex( index ) );
171  }

◆ binRms()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::binRms ( int  index) const
virtual

Definition at line 164 of file Generic1D.h.

164  {
165  return m_rep->GetBinError( rIndex( index ) );
166  }

◆ cast() [1/3]

template<class INTERFACE , class IMPLEMENTATION >
void* Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::cast ( const std::string cl) const
override

Manual cast by class name.

◆ cast() [2/3]

void * Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::cast ( const std::string className) const

Definition at line 57 of file H1D.cpp.

57  {
58  if ( className == "AIDA::IHistogram1D" ) return const_cast<AIDA::IHistogram1D*>( (AIDA::IHistogram1D*)this );
59  if ( className == "AIDA::IHistogram" ) return const_cast<AIDA::IHistogram*>( (AIDA::IHistogram*)this );
60  return nullptr;
61  }

◆ cast() [3/3]

void * Gaudi::Generic1D< AIDA::IProfile1D, TProfile >::cast ( const std::string className) const

Definition at line 65 of file P1D.cpp.

65  {
66  return className == "AIDA::IProfile1D"
67  ? const_cast<AIDA::IProfile1D*>( static_cast<const AIDA::IProfile1D*>( this ) )
68  : className == "AIDA::IProfile" ? const_cast<AIDA::IProfile*>( static_cast<const AIDA::IProfile*>( this ) )
69  : className == "AIDA::IBaseHistogram"
70  ? const_cast<AIDA::IBaseHistogram*>( static_cast<const AIDA::IBaseHistogram*>( this ) )
71  : nullptr;
72  }

◆ coordToIndex()

template<class INTERFACE , class IMPLEMENTATION >
int Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::coordToIndex ( double  coord) const
inlineoverride

Get the bin number corresponding to a given coordinate along the x axis.

Definition at line 125 of file Generic1D.h.

125 { return axis().coordToIndex( coord ); }

◆ dimension()

template<class INTERFACE , class IMPLEMENTATION >
int Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::dimension ( ) const
inlineoverride

Get the Histogram's dimension.

Definition at line 127 of file Generic1D.h.

127 { return 1; }

◆ entries()

template<class INTERFACE , class IMPLEMENTATION >
int Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::entries ( ) const
inlineoverride

Get the number or all the entries.

Definition at line 83 of file Generic1D.h.

83 { return m_rep->GetEntries(); }

◆ equivalentBinEntries()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::equivalentBinEntries
virtual

Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ]

Definition at line 195 of file Generic1D.h.

195  {
196  if ( sumBinHeights() <= 0 ) return 0;
197  Stat_t stats[11]; // cover up to 3D...
198  m_rep->GetStats( stats );
199  return stats[0] * stats[0] / stats[1];
200  }

◆ extraEntries()

template<class INTERFACE , class IMPLEMENTATION >
int Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::extraEntries
override

Get the number of entries in the underflow and overflow bins.

Definition at line 184 of file Generic1D.h.

184  {
185  return binEntries( AIDA::IAxis::UNDERFLOW_BIN ) + binEntries( AIDA::IAxis::OVERFLOW_BIN );
186  }

◆ maxBinHeight()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::maxBinHeight ( ) const
inlineoverride

Get the maximum height of the in-range bins.

Definition at line 101 of file Generic1D.h.

101 { return m_rep->GetMaximum(); }

◆ mean()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::mean ( ) const
inlineoverride

The mean of the whole IHistogram1D.

Definition at line 121 of file Generic1D.h.

121 { return m_rep->GetMean(); }

◆ minBinHeight()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::minBinHeight ( ) const
inlineoverride

Get the minimum height of the in-range bins.

Definition at line 99 of file Generic1D.h.

99 { return m_rep->GetMinimum(); }

◆ name()

template<class INTERFACE , class IMPLEMENTATION >
std::string Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::name ( ) const
inline

object name

Definition at line 70 of file Generic1D.h.

70 { return m_annotation.value( "Name" ); }

◆ print()

template<class INTERFACE , class IMPLEMENTATION >
std::ostream & Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::print ( std::ostream s) const
overridevirtual

Print (ASCII) the histogram into the output stream.

bin contents and errors are printed for all bins including under and overflows

Implements Gaudi::HistogramBase.

Definition at line 219 of file Generic1D.h.

219  {
221  m_rep->Print( "all" );
222  return s;
223  }

◆ representation()

template<class INTERFACE , class IMPLEMENTATION >
TObject* Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::representation ( ) const
inlineoverridevirtual

ROOT object implementation.

Implements Gaudi::HistogramBase.

Definition at line 62 of file Generic1D.h.

62 { return m_rep.get(); }

◆ reset()

template<class INTERFACE , class IMPLEMENTATION >
bool Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::reset
override

Reset the Histogram; as if just created.

Definition at line 188 of file Generic1D.h.

188  {
189  m_sumEntries = 0;
190  m_rep->Reset();
191  return true;
192  }

◆ rIndex()

template<class INTERFACE , class IMPLEMENTATION >
virtual int Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::rIndex ( int  index) const
inlinevirtual

operator methods

Definition at line 113 of file Generic1D.h.

113 { return m_axis.rIndex( index ); }

◆ rms()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::rms ( ) const
inlineoverride

The RMS of the whole IHistogram1D.

Definition at line 123 of file Generic1D.h.

123 { return m_rep->GetRMS(); }

◆ scale()

template<class INTERFACE , class IMPLEMENTATION >
bool Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::scale ( double  scaleFactor)
virtual

Scale the weights and the errors of all the IHistogram's bins (in-range and out-of-range ones) by a given scale factor.

Definition at line 203 of file Generic1D.h.

203  {
204  m_rep->Scale( scaleFactor );
205  return true;
206  }

◆ setName()

template<class INTERFACE , class IMPLEMENTATION >
bool Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::setName ( const std::string newName)

Set the name of the object.

Definition at line 157 of file Generic1D.h.

157  {
158  m_rep->SetName( newName.c_str() );
159  m_annotation.setValue( "Name", newName );
160  return true;
161  }

◆ setTitle()

template<class INTERFACE , class IMPLEMENTATION >
bool Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::setTitle ( const std::string title)
override

Set the title of the object.

Definition at line 149 of file Generic1D.h.

149  {
150  m_rep->SetTitle( title.c_str() );
151  if ( !annotation().addItem( "Title", title ) ) m_annotation.setValue( "Title", title );
152  if ( !annotation().addItem( "title", title ) ) annotation().setValue( "title", title );
153  return true;
154  }

◆ sumAllBinHeights()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::sumAllBinHeights ( ) const
inlineoverride

Get the sum of all the bins heights (including underflow and overflow bin).

Definition at line 95 of file Generic1D.h.

95 { return m_rep->GetSum(); }

◆ sumBinHeights()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::sumBinHeights ( ) const
inlineoverride

Get the sum of in range bin heights in the IProfile.

Definition at line 93 of file Generic1D.h.

93 { return m_rep->GetSumOfWeights(); }

◆ sumExtraBinHeights()

template<class INTERFACE , class IMPLEMENTATION >
double Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::sumExtraBinHeights ( ) const
inlineoverride

Get the sum of the underflow and overflow bin height.

Definition at line 97 of file Generic1D.h.

97 { return sumAllBinHeights() - sumBinHeights(); }

◆ title()

template<class INTERFACE , class IMPLEMENTATION >
std::string Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::title ( ) const
inlineoverride

Get the title of the object.

Definition at line 66 of file Generic1D.h.

66 { return m_annotation.value( "Title" ); }

◆ userLevelClassType()

template<class INTERFACE , class IMPLEMENTATION >
virtual const std::string& Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::userLevelClassType ( ) const
inlinevirtual

The AIDA user-level unterface leaf class type.

Definition at line 58 of file Generic1D.h.

58 { return m_classType; }

◆ write() [1/2]

template<class INTERFACE , class IMPLEMENTATION >
int Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::write ( const char *  file_name) const
overridevirtual

Write (ASCII) the histogram table into a file.

Implements Gaudi::HistogramBase.

Definition at line 238 of file Generic1D.h.

238  {
239  TFile* f = TFile::Open( file_name, "RECREATE" );
240  Int_t nbytes = m_rep->Write();
241  f->Close();
242  return nbytes;
243  }

◆ write() [2/2]

template<class INTERFACE , class IMPLEMENTATION >
std::ostream & Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::write ( std::ostream s) const
overridevirtual

Write (ASCII) the histogram table into the output stream.

Implements Gaudi::HistogramBase.

Definition at line 227 of file Generic1D.h.

227  {
228  s << "\n1D Histogram Table: " << std::endl;
229  s << "Bin, Height, Error " << std::endl;
230  for ( int i = 0; i < axis().bins(); ++i )
231  s << binMean( i ) << ", " << binHeight( i ) << ", " << binError( i ) << std::endl;
232  s << std::endl;
233  return s;
234  }

Member Data Documentation

◆ m_annotation

template<class INTERFACE , class IMPLEMENTATION >
AIDA::Annotation Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::m_annotation
mutableprotected

Object annotations.

Definition at line 139 of file Generic1D.h.

◆ m_axis

template<class INTERFACE , class IMPLEMENTATION >
Axis Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::m_axis
protected

Axis member.

Definition at line 137 of file Generic1D.h.

◆ m_classType

template<class INTERFACE , class IMPLEMENTATION >
std::string Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::m_classType
protected

Definition at line 143 of file Generic1D.h.

◆ m_rep

template<class INTERFACE , class IMPLEMENTATION >
std::unique_ptr<IMPLEMENTATION> Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::m_rep
protected

Reference to underlying implementation.

Definition at line 141 of file Generic1D.h.

◆ m_sumEntries

template<class INTERFACE , class IMPLEMENTATION >
int Gaudi::Generic1D< INTERFACE, IMPLEMENTATION >::m_sumEntries { 0 }
protected

Definition at line 145 of file Generic1D.h.


The documentation for this class was generated from the following file:
Gaudi::Generic1D::m_classType
std::string m_classType
Definition: Generic1D.h:143
Gaudi::Generic1D::m_rep
std::unique_ptr< IMPLEMENTATION > m_rep
Reference to underlying implementation.
Definition: Generic1D.h:141
Gaudi::Generic1D::binError
double binError(int index) const override
The error of a given bin.
Definition: Generic1D.h:179
gaudirun.s
string s
Definition: gaudirun.py:346
Gaudi::Generic1D::sumAllBinHeights
double sumAllBinHeights() const override
Get the sum of all the bins heights (including underflow and overflow bin).
Definition: Generic1D.h:95
std::unique_ptr::get
T get(T... args)
Gaudi::Generic1D::axis
Axis & axis()
Access to axis object.
Definition: Generic1D.h:78
Gaudi::Generic1D::m_annotation
AIDA::Annotation m_annotation
Object annotations.
Definition: Generic1D.h:139
Gaudi::Generic1D::title
std::string title() const override
Get the title of the object.
Definition: Generic1D.h:66
Gaudi::Generic1D::rIndex
virtual int rIndex(int index) const
operator methods
Definition: Generic1D.h:113
std::unique_ptr::reset
T reset(T... args)
Gaudi::Generic1D::m_sumEntries
int m_sumEntries
Definition: Generic1D.h:145
Gaudi::Generic1D::binHeight
double binHeight(int index) const override
Total height of the corresponding bin (ie the sum of the weights in this bin).
Definition: Generic1D.h:174
std::string::c_str
T c_str(T... args)
Gaudi::Axis::initialize
void initialize(TAxis *itaxi, bool)
Definition: Axis.h:63
AlgSequencer.h
h
Definition: AlgSequencer.py:31
AIDA::Annotation::value
std::string value(const std::string &key) const override
Retrieve the value for a given key.
Definition: Annotation.h:108
Gaudi::Generic1D::sumBinHeights
double sumBinHeights() const override
Get the sum of in range bin heights in the IProfile.
Definition: Generic1D.h:93
std::runtime_error
STL class.
Gaudi::Generic1D::m_axis
Axis m_axis
Axis member.
Definition: Generic1D.h:137
std::endl
T endl(T... args)
Gaudi::Generic1D::binEntries
int binEntries(int index) const override
Number of entries in the corresponding bin (ie the number of times fill was called for this bin).
Gaudi::Generic1D::setTitle
bool setTitle(const std::string &title) override
Set the title of the object.
Definition: Generic1D.h:149
Gaudi::Axis::bins
int bins() const override
The number of bins (excluding underflow and overflow) on the IAxis.
Definition: Axis.h:91
Gaudi::Axis::coordToIndex
int coordToIndex(double coord) const override
Convert a coordinate on the axis to a bin number.
Definition: Axis.h:127
AIDA::Annotation::setValue
void setValue(const std::string &key, const std::string &value) override
Set value for a given key.
Definition: Annotation.h:113
Gaudi::ParticleProperties::index
size_t index(const Gaudi::ParticleProperty *property, const Gaudi::Interfaces::IParticlePropertySvc *service)
helper utility for mapping of Gaudi::ParticleProperty object into non-negative integral sequential id...
Definition: IParticlePropertySvc.cpp:39
Gaudi::Generic1D::annotation
AIDA::IAnnotation & annotation() override
Access annotation object.
Definition: Generic1D.h:74
Gaudi::Axis::rIndex
int rIndex(int index) const
Convert a AIDA bin number on the axis to the ROOT bin number.
Definition: Axis.h:49
Gaudi::Generic1D::binMean
double binMean(int index) const override
The weighted mean of a bin.
Definition: Generic1D.h:169