H3D.h
Go to the documentation of this file.
1 #ifndef GAUDICOMMONSVC_H3D_H
2 #define GAUDICOMMONSVC_H3D_H
3 
4 #include <AIDA/IHistogram3D.h>
6 #include <TH3D.h>
7 #include "Generic3D.h"
8 
9 namespace Gaudi {
10 
17  class GAUDI_API Histogram3D : public DataObject, public Generic3D<AIDA::IHistogram3D,TH3D> {
18  public:
20  Histogram3D();
22  Histogram3D(TH3D* rep);
23 
25  bool fill ( double x, double y, double z, double weight) override;
27  virtual bool setBinContents( int i, int j, int k, int entries,double height,double error,double centreX, double centreY, double centreZ );
29  virtual bool setRms(double rmsX, double rmsY, double rmsZ);
30  // overwrite reset
31  bool reset() override;
33  void* cast(const std::string & className) const override;
35  void copyFromAida(const AIDA::IHistogram3D & h);
37  const CLID& clID() const override { return classID(); }
38  static const CLID& classID() { return CLID_H3D; }
39 
40  protected:
41  // cache sumwx and sumwy when setting contents since I don't have bin mean
42  double m_sumwx = 0;
43  double m_sumwy = 0;
44  double m_sumwz = 0;
45  };
46 }
47 
48 #endif
static const CLID & classID()
Definition: H3D.h:38
GAUDI_API void fill(AIDA::IHistogram1D *histo, const double value, const double weight=1.0)
simple function to fill AIDA::IHistogram1D objects
Definition: Fill.cpp:36
STL class.
AIDA implementation for 3 D histograms using ROOT THD2.
Definition: H3D.h:17
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
#define GAUDI_API
Definition: Kernel.h:107
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
const CLID & clID() const override
Retrieve reference to class defininition identifier.
Definition: H3D.h:37
Helper functions to set/get the application return code.
Definition: __init__.py:1
Common AIDA implementation stuff for histograms and profiles using ROOT implementations.
Definition: Generic3D.h:35