| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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>
6 #include <GaudiKernel/DataObject.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
Gaudi::Histogram3D::classID
static const CLID & classID()
Definition: H3D.h:41
Gaudi::Utils::Histos::fill
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
std::string
STL class.
Gaudi::Histogram3D
AIDA implementation for 3 D histograms using ROOT THD2.
Definition: H3D.h:18
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
Generic3D.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
Gaudi::Histogram3D::clID
const CLID & clID() const override
Retrieve reference to class defininition identifier.
Definition: H3D.h:40
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1
DataObject.h
Gaudi::Generic3D
Common AIDA implementation stuff for histograms and profiles using ROOT implementations.
Definition: Generic3D.h:36