| The Gaudi Framework v28r2-patches (bc4ad17a)

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

- File List
- File Members

H2D.h
Go to the documentation of this file.
1 #ifndef HISTOGRAMSVC_H2D_H
2 #define HISTOGRAMSVC_H2D_H 1
3
4 #include "AIDA/IHistogram2D.h"
5 #include <GaudiKernel/DataObject.h>
6 #include <TH2D.h>
7 #include "Generic2D.h"
8
9 namespace Gaudi {
10 class Histogram1D;
11
18 class GAUDI_API Histogram2D : public DataObject, public Generic2D<AIDA::IHistogram2D,TH2D> {
19 public:
21 Histogram2D();
23 Histogram2D(TH2D* rep);
24
26 bool fill(double x,double y,double weight = 1.) override;
28 virtual bool setBinContents(int binIndexX,int binIndexY,int entries,
29 double height,double error,double centreX,
30 double centreY );
32 bool setRms( double rmsX,double rmsY );
33 // overwrite reset
34 bool reset() override;
36 void copyFromAida(const AIDA::IHistogram2D& h);
38 const CLID& clID() const override { return classID(); }
39 static const CLID& classID() { return CLID_H2D; }
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 };
45 }
46 #endif // HISTOGRAMSVC_H2D_H
Gaudi::Histogram2D::classID
static const CLID & classID()
Definition: H2D.h:39
Gaudi::Histogram2D::clID
const CLID & clID() const override
Retrieve reference to class defininition identifier.
Definition: H2D.h:38
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:36
HiveAlgSequencer.h
h
Definition: HiveAlgSequencer.py:24
Gaudi::Histogram2D
AIDA implementation for 2 D histograms using ROOT THD2.
Definition: H2D.h:18
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
Generic2D.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1
DataObject.h
Gaudi::Generic2D
Common AIDA implementation stuff for histograms and profiles using ROOT implementations.
Definition: Generic2D.h:35