The Gaudi Framework  v30r3 (a5ef0a68)
H3D.h
Go to the documentation of this file.
1 #ifndef GAUDICOMMONSVC_H3D_H
2 #define GAUDICOMMONSVC_H3D_H
3 
4 #include "Generic3D.h"
5 #include <AIDA/IHistogram3D.h>
7 #include <TH3D.h>
8 
9 namespace Gaudi
10 {
11 
18  class GAUDI_API Histogram3D : public DataObject, public Generic3D<AIDA::IHistogram3D, TH3D>
19  {
20  public:
22  Histogram3D();
24  Histogram3D( TH3D* rep );
25 
27  bool fill( double x, double y, double z, double weight ) override;
29  virtual bool setBinContents( int i, int j, int k, int entries, double height, double error, double centreX,
30  double centreY, double centreZ );
32  virtual bool setRms( double rmsX, double rmsY, double rmsZ );
33  // overwrite reset
34  bool reset() override;
36  void* cast( const std::string& className ) const override;
38  void copyFromAida( const AIDA::IHistogram3D& h );
40  const CLID& clID() const override { return classID(); }
41  static const CLID& classID() { return CLID_H3D; }
42 
43  protected:
44  // cache sumwx and sumwy when setting contents since I don't have bin mean
45  double m_sumwx = 0;
46  double m_sumwy = 0;
47  double m_sumwz = 0;
48  };
49 }
50 
51 #endif
static const CLID & classID()
Definition: H3D.h:41
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:35
STL class.
AIDA implementation for 3 D histograms using ROOT THD2.
Definition: H3D.h:18
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
#define GAUDI_API
Definition: Kernel.h:104
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:40
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:36