The Gaudi Framework  v37r0 (b608885e)
Gaudi::Histogram1D Class Reference

#include </builds/gaudi/Gaudi/GaudiCommonSvc/include/GaudiCommonSvc/H1D.h>

Inheritance diagram for Gaudi::Histogram1D:
Collaboration diagram for Gaudi::Histogram1D:

Public Member Functions

 Histogram1D ()
 Standard constructor. More...
 
 Histogram1D (TH1D *rep)
 Standard constructor with initialization. The histogram representation will be adopted. More...
 
void adoptRepresentation (TObject *rep) override
 Adopt ROOT histogram representation. More...
 
virtual bool setBinContents (int i, int entries, double height, double error, double centre)
 set bin content (entries and centre are not used ) More...
 
bool reset () override
 
virtual bool setStatistics (int allEntries, double eqBinEntries, double mean, double rms)
 set histogram statistics More...
 
bool fill (double x, double weight) override
 Fill the Profile1D with a value and the corresponding weight. More...
 
bool setRms (double rms)
 Update histogram RMS. More...
 
void copyFromAida (const AIDA::IHistogram1D &h)
 Create new histogram from any AIDA based histogram. More...
 
const CLIDclID () const override
 Retrieve reference to class defininition identifier. More...
 
StreamBufferserialize (StreamBuffer &s)
 Serialization mechanism, Serialize the object for reading. More...
 
StreamBufferserialize (StreamBuffer &s) const
 Serialization mechanism, Serialize the object for writing. More...
 
- Public Member Functions inherited from DataObject
 DataObject ()
 Standard Constructor. More...
 
 DataObject (const DataObject &rhs)
 Copy Constructor. More...
 
DataObjectoperator= (const DataObject &rhs)
 Assignment Operator. More...
 
 DataObject (DataObject &&rhs)
 Move Constructor. More...
 
DataObjectoperator= (DataObject &&rhs)
 Move Assignment Operator. More...
 
virtual ~DataObject ()
 Standard Destructor. More...
 
virtual unsigned long addRef ()
 Add reference to object. More...
 
virtual unsigned long release ()
 release reference to object More...
 
const std::stringname () const
 Retreive DataObject name. It is the name when registered in the store. More...
 
virtual StatusCode update ()
 Provide empty placeholder for internal object reconfiguration callback. More...
 
void setRegistry (IRegistry *pRegistry)
 Set pointer to Registry. More...
 
IRegistryregistry () const
 Get pointer to Registry. More...
 
LinkManagerlinkMgr ()
 Retrieve Link manager. More...
 
const LinkManagerlinkMgr () const
 
unsigned char version () const
 Retrieve version number of this object representation. More...
 
void setVersion (unsigned char vsn)
 Set version number of this object representation. More...
 
unsigned long refCount () const
 Return the refcount. More...
 
virtual std::ostreamfillStream (std::ostream &s) const
 Fill the output stream (ASCII) More...
 
- Public Member Functions inherited from Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >
 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...
 
void * cast (const std::string &className) const
 
void * cast (const std::string &className) const
 
TObject * representation () const override
 ROOT object implementation. More...
 
void adoptRepresentation (TObject *rep) override
 Adopt ROOT histogram representation. More...
 
void adoptRepresentation (TObject *rep)
 Adopt ROOT histogram representation. More...
 
void adoptRepresentation (TObject *rep)
 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...
 
int binEntries (int index) const
 
int binEntries (int index) const
 
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 AIDA::IHistogram1D &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...
 
- Public Member Functions inherited from Gaudi::HistogramBase
virtual TObject * representation () const =0
 ROOT object implementation. More...
 
virtual ~HistogramBase ()=default
 

Static Public Member Functions

static const CLIDclassID ()
 
- Static Public Member Functions inherited from DataObject
static const CLIDclassID ()
 Retrieve reference to class definition structure (static access) More...
 

Protected Attributes

double m_sumwx = 0
 cache sumwx when setting contents since I don't have bin mean More...
 
- Protected Attributes inherited from Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >
Axis m_axis
 Axis member. More...
 
AIDA::Annotation m_annotation
 Object annotations. More...
 
std::unique_ptr< TH1D > m_rep
 Reference to underlying implementation. More...
 
std::string m_classType
 
int m_sumEntries
 

Private Member Functions

void init (const std::string &title, bool initialize_axis=true)
 
void initSums ()
 

Private Attributes

std::mutex m_fillSerialization
 

Friends

void reset (Histogram1D &h)
 
void to_json (nlohmann::json &j, Gaudi::Histogram1D const &h)
 conversion to json via nlohmann library More...
 

Additional Inherited Members

- Public Types inherited from Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >
typedef Generic1D< AIDA::IHistogram1D, TH1D > Base
 
- Protected Member Functions inherited from Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >
 Generic1D (TH1D *p)
 constructor More...
 

Detailed Description

AIDA implementation for 1 D histograms using ROOT THD1

Author
M.Frank

Definition at line 31 of file H1D.h.

Constructor & Destructor Documentation

◆ Histogram1D() [1/2]

Gaudi::Histogram1D::Histogram1D ( )

Standard constructor.

Definition at line 76 of file H1D.cpp.

76 : Base( new TH1D() ) { init( "", false ); }

◆ Histogram1D() [2/2]

Gaudi::Histogram1D::Histogram1D ( TH1D *  rep)

Standard constructor with initialization. The histogram representation will be adopted.

Definition at line 78 of file H1D.cpp.

78  {
79  m_rep.reset( rep );
80  init( m_rep->GetTitle() );
81  initSums();
82 }

Member Function Documentation

◆ adoptRepresentation()

void Gaudi::Histogram1D::adoptRepresentation ( TObject *  rep)
overridevirtual

Adopt ROOT histogram representation.

Implements Gaudi::HistogramBase.

Definition at line 111 of file H1D.cpp.

111  {
113  if ( m_rep ) {
114  init( m_rep->GetTitle() );
115  initSums();
116  }
117 }

◆ classID()

static const CLID& Gaudi::Histogram1D::classID ( )
inlinestatic

Definition at line 66 of file H1D.h.

66 { return CLID_H1D; }

◆ clID()

const CLID& Gaudi::Histogram1D::clID ( ) const
inlineoverridevirtual

Retrieve reference to class defininition identifier.

Reimplemented from DataObject.

Definition at line 65 of file H1D.h.

65 { return classID(); }

◆ copyFromAida()

void Gaudi::Histogram1D::copyFromAida ( const AIDA::IHistogram1D &  h)

Create new histogram from any AIDA based histogram.

Definition at line 174 of file H1D.cpp.

174  {
175  // implement here the copy
176  std::string title = h.title() + "Copy";
177  if ( h.axis().isFixedBinning() ) {
178  m_rep.reset(
179  new TH1D( title.c_str(), title.c_str(), h.axis().bins(), h.axis().lowerEdge(), h.axis().upperEdge() ) );
180  } else {
181  Edges e;
182  for ( int i = 0; i < h.axis().bins(); ++i ) { e.push_back( h.axis().binLowerEdge( i ) ); }
183  // add also upperedges at the end
184  e.push_back( h.axis().upperEdge() );
185  m_rep.reset( new TH1D( title.c_str(), title.c_str(), e.size() - 1, &e.front() ) );
186  }
187  m_axis.initialize( m_rep->GetXaxis(), false );
188  m_rep->Sumw2();
189  m_sumEntries = 0;
190  m_sumwx = 0;
191  // sumw
192  double sumw = h.sumBinHeights();
193  // sumw2
194  double sumw2 = 0;
195  if ( h.equivalentBinEntries() != 0 ) sumw2 = ( sumw * sumw ) / h.equivalentBinEntries();
196 
197  double sumwx = h.mean() * h.sumBinHeights();
198  double sumwx2 = ( h.mean() * h.mean() + h.rms() * h.rms() ) * h.sumBinHeights();
199 
200  // copy the contents in
201  for ( int i = -2; i < axis().bins(); ++i ) {
202  // root binning starts from one !
203  m_rep->SetBinContent( rIndex( i ), h.binHeight( i ) );
204  m_rep->SetBinError( rIndex( i ), h.binError( i ) );
205  }
206  // need to do set entries after setting contents otherwise root will recalulate them
207  // taking into account how many time SetBinContents() has been called
208  m_rep->SetEntries( h.allEntries() );
209  // stat vector
210  std::vector<double> stat( 11 );
211  stat[0] = sumw;
212  stat[1] = sumw2;
213  stat[2] = sumwx;
214  stat[3] = sumwx2;
215  m_rep->PutStats( &stat.front() );
216 }

◆ fill()

bool Gaudi::Histogram1D::fill ( double  x,
double  weight 
)
override

Fill the Profile1D with a value and the corresponding weight.

Definition at line 167 of file H1D.cpp.

167  {
168  // avoid race conditions when filling the histogram
169  auto guard = std::scoped_lock{ m_fillSerialization };
170  ( weight == 1. ) ? m_rep->Fill( x ) : m_rep->Fill( x, weight );
171  return true;
172 }

◆ init()

void Gaudi::Histogram1D::init ( const std::string title,
bool  initialize_axis = true 
)
private

Definition at line 84 of file H1D.cpp.

84  {
85  m_classType = "IHistogram1D";
86  if ( initialize_axis ) { m_axis.initialize( m_rep->GetXaxis(), false ); }
87  const TArrayD* a = m_rep->GetSumw2();
88  if ( !a || ( a && a->GetSize() == 0 ) ) m_rep->Sumw2();
89  setTitle( title );
90  m_rep->SetDirectory( nullptr );
91  m_sumEntries = 0;
92  m_sumwx = 0;
93 }

◆ initSums()

void Gaudi::Histogram1D::initSums ( )
private

Definition at line 95 of file H1D.cpp.

95  {
96  m_sumwx = 0;
97  m_sumEntries = 0;
98  for ( int i = 1, n = m_rep->GetNbinsX(); i <= n; ++i ) {
99  m_sumwx += m_rep->GetBinContent( i ) * m_rep->GetBinCenter( i );
100  m_sumEntries += m_rep->GetBinContent( i );
101  }
102 }

◆ reset()

bool Gaudi::Histogram1D::reset ( )
override

Definition at line 104 of file H1D.cpp.

104  {
105  m_sumwx = 0;
106  m_sumEntries = 0;
107  return Base::reset();
108 }

◆ serialize() [1/2]

StreamBuffer & Gaudi::Histogram1D::serialize ( StreamBuffer s)

Serialization mechanism, Serialize the object for reading.

Parameters
sthe StreamBuffer containing the data to be read
Returns
the resulting StreamBuffer, after reading

Definition at line 223 of file H1D.cpp.

223  {
224  // DataObject::serialize(s);
226  int size;
227  s >> size;
228  for ( int j = 0; j < size; j++ ) {
229  std::string key, value;
230  s >> key >> value;
231  if ( !annotation().addItem( key, value ) ) { annotation().setValue( key, value ); };
232  if ( "Title" == key ) { title = value; }
233  }
234  double lowerEdge, upperEdge, binHeight, binError;
235  int isFixedBinning, bins;
236  s >> isFixedBinning >> bins;
237 
238  if ( isFixedBinning ) {
239  s >> lowerEdge >> upperEdge;
240  m_rep.reset( new TH1D( title.c_str(), title.c_str(), bins, lowerEdge, upperEdge ) );
241  } else {
242  Edges edges;
243  edges.resize( bins );
244  for ( int i = 0; i <= bins; ++i ) s >> edges[i];
245  m_rep.reset( new TH1D( title.c_str(), title.c_str(), edges.size() - 1, &edges.front() ) );
246  }
247  m_axis.initialize( m_rep->GetXaxis(), true );
248  m_rep->Sumw2();
249  m_sumEntries = 0;
250  m_sumwx = 0;
251 
252  for ( int i = 0; i <= bins + 1; ++i ) {
253  s >> binHeight >> binError;
254  m_rep->SetBinContent( i, binHeight );
255  m_rep->SetBinError( i, binError );
256  }
257  Stat_t allEntries;
258  s >> allEntries;
259  m_rep->SetEntries( allEntries );
260  Stat_t stats[4]; // stats array
261  s >> stats[0] >> stats[1] >> stats[2] >> stats[3];
262  m_rep->PutStats( stats );
263  return s;
264 }

◆ serialize() [2/2]

StreamBuffer & Gaudi::Histogram1D::serialize ( StreamBuffer s) const

Serialization mechanism, Serialize the object for writing.

Parameters
sthe StreamBuffer where to write the data
Returns
the resulting StreamBuffer, after wrinting

Definition at line 266 of file H1D.cpp.

266  {
267  // DataObject::serialize(s);
268  s << static_cast<int>( annotation().size() );
269  for ( int i = 0; i < annotation().size(); i++ ) {
270  s << annotation().key( i );
271  s << annotation().value( i );
272  }
273  const AIDA::IAxis& axis( this->axis() );
274  const int isFixedBinning = axis.isFixedBinning();
275  const int bins = axis.bins();
276  s << isFixedBinning << bins;
277  if ( isFixedBinning ) {
278  s << axis.lowerEdge();
279  } else {
280  for ( int i = 0; i < bins; ++i ) s << axis.binLowerEdge( i );
281  }
282  s << axis.upperEdge();
283  for ( int i = 0; i <= bins + 1; ++i ) s << m_rep->GetBinContent( i ) << m_rep->GetBinError( i );
284 
285  s << m_rep->GetEntries();
286  Stat_t stats[4]; // stats array
287  m_rep->GetStats( stats );
288  s << stats[0] << stats[1] << stats[2] << stats[3];
289  return s;
290 }

◆ setBinContents()

bool Gaudi::Histogram1D::setBinContents ( int  i,
int  entries,
double  height,
double  error,
double  centre 
)
virtual

set bin content (entries and centre are not used )

Definition at line 119 of file H1D.cpp.

119  {
120  m_rep->SetBinContent( rIndex( i ), height );
121  m_rep->SetBinError( rIndex( i ), error );
122  // accumulate sumwx for in range bins
123  if ( i != AIDA::IAxis::UNDERFLOW_BIN && i != AIDA::IAxis::OVERFLOW_BIN ) m_sumwx += centre * height;
125  return true;
126 }

◆ setRms()

bool Gaudi::Histogram1D::setRms ( double  rms)

Update histogram RMS.

Definition at line 134 of file H1D.cpp.

134  {
135  m_rep->SetEntries( m_sumEntries );
136  std::vector<double> stat( 11 );
137  // sum weights
138  stat[0] = sumBinHeights();
139  stat[1] = 0;
140  if ( equivalentBinEntries() != 0 ) stat[1] = ( sumBinHeights() * sumBinHeights() ) / equivalentBinEntries();
141  stat[2] = m_sumwx;
142  double mean = 0;
143  if ( sumBinHeights() != 0 ) mean = m_sumwx / sumBinHeights();
144  stat[3] = ( mean * mean + rms * rms ) * sumBinHeights();
145  m_rep->PutStats( &stat.front() );
146  return true;
147 }

◆ setStatistics()

bool Gaudi::Histogram1D::setStatistics ( int  allEntries,
double  eqBinEntries,
double  mean,
double  rms 
)
virtual

set histogram statistics

Definition at line 150 of file H1D.cpp.

150  {
151  m_rep->SetEntries( allEntries );
152  // fill statistcal vector for Root
153  std::vector<double> stat( 11 );
154  // sum weights
155  stat[0] = sumBinHeights();
156  // sum weights **2
157  stat[1] = 0;
158  if ( eqBinEntries != 0 ) stat[1] = ( sumBinHeights() * sumBinHeights() ) / eqBinEntries;
159  // sum weights * x
160  stat[2] = mean * sumBinHeights();
161  // sum weight * x **2
162  stat[3] = ( mean * mean + rms * rms ) * sumBinHeights();
163  m_rep->PutStats( &stat.front() );
164  return true;
165 }

Friends And Related Function Documentation

◆ reset

void reset ( Histogram1D h)
friend

Definition at line 53 of file H1D.h.

53 { h.reset(); }

◆ to_json

void to_json ( nlohmann::json &  j,
Gaudi::Histogram1D const &  h 
)
friend

conversion to json via nlohmann library

Definition at line 55 of file H1D.h.

55 { j = *h.m_rep.get(); }

Member Data Documentation

◆ m_fillSerialization

std::mutex Gaudi::Histogram1D::m_fillSerialization
private

Definition at line 80 of file H1D.h.

◆ m_sumwx

double Gaudi::Histogram1D::m_sumwx = 0
protected

cache sumwx when setting contents since I don't have bin mean

Definition at line 38 of file H1D.h.


The documentation for this class was generated from the following files:
std::vector::resize
T resize(T... args)
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::m_classType
std::string m_classType
Definition: Generic1D.h:143
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::m_rep
std::unique_ptr< TH1D > m_rep
Reference to underlying implementation.
Definition: Generic1D.h:141
std::string
STL class.
details::size
constexpr auto size(const T &, Args &&...) noexcept
Definition: AnyDataWrapper.h:22
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::binError
double binError(int index) const override
The error of a given bin.
Definition: Generic1D.h:179
Gaudi::Histogram1D::m_sumwx
double m_sumwx
cache sumwx when setting contents since I don't have bin mean
Definition: H1D.h:38
Gaudi::Axis::upperEdge
double upperEdge() const override
Get the upper edge of the IAxis.
Definition: Axis.h:84
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::Base
Generic1D< AIDA::IHistogram1D, TH1D > Base
Definition: Generic1D.h:48
gaudirun.s
string s
Definition: gaudirun.py:348
std::vector< double >
Gaudi::Generic1D::adoptRepresentation
void adoptRepresentation(TObject *rep) override
Adopt ROOT histogram representation.
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::entries
int entries() const override
Get the number or all the entries.
Definition: Generic1D.h:83
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::axis
Axis & axis()
Access to axis object.
Definition: Generic1D.h:78
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::title
std::string title() const override
Get the title of the object.
Definition: Generic1D.h:66
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::rIndex
virtual int rIndex(int index) const
operator methods
Definition: Generic1D.h:113
std::unique_ptr::reset
T reset(T... args)
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::rms
double rms() const override
The RMS of the whole IHistogram1D.
Definition: Generic1D.h:123
std::vector::push_back
T push_back(T... args)
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::m_sumEntries
int m_sumEntries
Definition: Generic1D.h:145
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::allEntries
int allEntries() const override
Get the number or all the entries, both in range and underflow/overflow bins of the IProfile.
Definition: Generic1D.h:85
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::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
ProduceConsume.j
j
Definition: ProduceConsume.py:101
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:32
Gaudi::Histogram1D::classID
static const CLID & classID()
Definition: H1D.h:66
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::sumBinHeights
double sumBinHeights() const override
Get the sum of in range bin heights in the IProfile.
Definition: Generic1D.h:93
Gaudi::Histogram1D::init
void init(const std::string &title, bool initialize_axis=true)
Definition: H1D.cpp:84
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::m_axis
Axis m_axis
Axis member.
Definition: Generic1D.h:137
GaudiPluginService.cpluginsvc.n
n
Definition: cpluginsvc.py:235
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::mean
double mean() const override
The mean of the whole IHistogram1D.
Definition: Generic1D.h:121
Gaudi::Edges
std::vector< double > Edges
Definition: GaudiPI.h:28
Gaudi::Axis::lowerEdge
double lowerEdge() const override
Get the lower edge of the IAxis.
Definition: Axis.h:77
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::reset
bool reset() override
Reset the Histogram; as if just created.
Definition: Generic1D.h:188
Gaudi::Histogram1D::m_fillSerialization
std::mutex m_fillSerialization
Definition: H1D.h:80
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::setTitle
bool setTitle(const std::string &title) override
Set the title of the object.
Definition: Generic1D.h:149
Gaudi::Axis::binLowerEdge
double binLowerEdge(int index) const override
Get the lower edge of the specified bin.
Definition: Axis.h:100
Gaudi::Axis::bins
int bins() const override
The number of bins (excluding underflow and overflow) on the IAxis.
Definition: Axis.h:91
Gaudi::Axis::isFixedBinning
bool isFixedBinning() const override
Check if the IAxis has fixed binning, i.e.
Definition: Axis.h:70
Gaudi::Histogram1D::initSums
void initSums()
Definition: H1D.cpp:95
ProduceConsume.key
key
Definition: ProduceConsume.py:81
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::annotation
AIDA::IAnnotation & annotation() override
Access annotation object.
Definition: Generic1D.h:74
Gaudi::Generic1D< AIDA::IHistogram1D, TH1D >::equivalentBinEntries
virtual double equivalentBinEntries() const
Number of equivalent entries, i.e. SUM[ weight ] ^ 2 / SUM[ weight^2 ]
Definition: Generic1D.h:195