All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
H1D.h
Go to the documentation of this file.
1 #ifndef HISTOGRAMSVC_H1D_H
2 #define HISTOGRAMSVC_H1D_H 1
3 
5 #include "Generic1D.h"
6 #include "GaudiPI.h"
7 #include "TH1D.h"
8 
9 namespace Gaudi {
10 
17  class GAUDI_API Histogram1D : public DataObject, public Gaudi::Generic1D<AIDA::IHistogram1D,TH1D> {
18  private:
19  void init(const std::string& title, bool initialize_axis=true);
20  void initSums();
21  protected:
23  double m_sumwx;
24  public:
26  Histogram1D();
28  Histogram1D(TH1D* rep);
30  virtual ~Histogram1D() {}
32  virtual void adoptRepresentation(TObject*rep);
34  virtual bool setBinContents(int i,int entries ,double height,double error,double centre);
36  virtual bool reset();
38  virtual bool setStatistics(int allEntries,double eqBinEntries,double mean,double rms);
40  virtual bool fill(double x,double weight);
42  bool setRms(double rms);
44  void copyFromAida(const AIDA::IHistogram1D & h);
46  virtual const CLID& clID() const { return classID(); }
47  static const CLID& classID() { return CLID_H1D; }
52  StreamBuffer& serialize(StreamBuffer& s);
53 
58  StreamBuffer& serialize(StreamBuffer& s) const;
59 
60  }; // end class IHistogram1D
61 } // end namespace Gaudi
62 #endif // HISTOGRAMSVC_H1D_H
virtual ~Histogram1D()
Destructor.
Definition: H1D.h:30
The stream buffer is a small object collecting object data.
Definition: StreamBuffer.h:40
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:37
AIDA implementation for 1 D histograms using ROOT THD1.
Definition: H1D.h:17
unsigned int CLID
Class ID definition.
Definition: ClassID.h:9
virtual const CLID & clID() const
Retrieve reference to class defininition identifier.
Definition: H1D.h:46
static const CLID & classID()
Definition: H1D.h:47
string s
Definition: gaudirun.py:210
This is a number of static methods for bootstrapping the Gaudi framework.
Definition: Bootstrap.h:15
#define GAUDI_API
Definition: Kernel.h:108
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:31
list i
Definition: ana.py:128
double m_sumwx
cache sumwx when setting contents since I don't have bin mean
Definition: H1D.h:23
Common AIDA implementation stuff for histograms and profiles using ROOT implementations.
Definition: Generic1D.h:29