| The Gaudi Framework v29r0 (ff2e7097)

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

- File List
- File Members

GaudiPI.h
Go to the documentation of this file.
1 #ifndef GAUDISVC_GAUDIPI_H
2 #define GAUDISVC_GAUDIPI_H
3
4 #include <AIDA/IHistogram1D.h>
5 #include <AIDA/IHistogram2D.h>
6 #include <AIDA/IHistogram3D.h>
7 #include <AIDA/IProfile1D.h>
8 #include <AIDA/IProfile2D.h>
9 #include <GaudiKernel/HistogramBase.h>
10 #include <utility>
11 #include <vector>
12
13 class DataObject;
14 class TH2D;
15
16 namespace Gaudi
17 {
18 typedef std::vector<double> Edges;
19
21 std::pair<DataObject*, AIDA::IHistogram1D*> createH1D( const AIDA::IHistogram1D& hist );
23 std::pair<DataObject*, AIDA::IHistogram1D*> createH1D( const std::string& title, int nBins = 10,
24 double lowerEdge = 0., double upperEdge = 1. );
26 std::pair<DataObject*, AIDA::IHistogram1D*> createH1D( const std::string& title, const Edges& e );
27
29 std::pair<DataObject*, AIDA::IHistogram2D*> createH2D( const AIDA::IHistogram2D& hist );
31 std::pair<DataObject*, AIDA::IHistogram2D*> createH2D( TH2D* rep );
33 std::pair<DataObject*, AIDA::IHistogram2D*> createH2D( const std::string& title, int binsX, double iminX,
34 double imaxX, int binsY, double iminY, double imaxY );
36 std::pair<DataObject*, AIDA::IHistogram2D*> createH2D( const std::string& title, const Edges& eX, const Edges& eY );
38 std::pair<DataObject*, AIDA::IHistogram1D*> slice1DX( const std::string& name, const AIDA::IHistogram2D& h,
39 int firstbin, int lastbin );
41 std::pair<DataObject*, AIDA::IProfile1D*> profile1DX( const std::string& name, const AIDA::IHistogram2D& h,
42 int firstbin, int lastbin );
44 std::pair<DataObject*, AIDA::IHistogram1D*> project1DX( const std::string& name, const AIDA::IHistogram2D& h,
45 int firstbin, int lastbin );
47 std::pair<DataObject*, AIDA::IHistogram1D*> slice1DY( const std::string& name, const AIDA::IHistogram2D& h,
48 int firstbin, int lastbin );
50 std::pair<DataObject*, AIDA::IProfile1D*> profile1DY( const std::string& name, const AIDA::IHistogram2D& h,
51 int firstbin, int lastbin );
53 std::pair<DataObject*, AIDA::IHistogram1D*> project1DY( const std::string& name, const AIDA::IHistogram2D& h,
54 int firstbin, int lastbin );
55
57 std::pair<DataObject*, AIDA::IHistogram3D*> createH3D( const AIDA::IHistogram3D& hist );
59 std::pair<DataObject*, AIDA::IHistogram3D*> createH3D( const std::string& title, int nBinsX, double xlow, double xup,
60 int nBinsY, double ylow, double yup, int nBinsZ, double zlow,
61 double zup );
63 std::pair<DataObject*, AIDA::IHistogram3D*> createH3D( const std::string& title, const Edges& eX, const Edges& eY,
64 const Edges& eZ );
65
67 std::pair<DataObject*, AIDA::IProfile1D*> createProf1D( const AIDA::IProfile1D& hist );
69 std::pair<DataObject*, AIDA::IProfile1D*> createProf1D( const std::string& title, int nBins, double xlow, double xup,
70 double ylow, double yup, const std::string& opt = "" );
72 std::pair<DataObject*, AIDA::IProfile1D*> createProf1D( const std::string& title, const Edges& e, double ylow,
73 double yup, const std::string& opt = "" );
74
76 std::pair<DataObject*, AIDA::IProfile2D*> createProf2D( const AIDA::IProfile2D& hist );
78 std::pair<DataObject*, AIDA::IProfile2D*> createProf2D( const std::string& title, int binsX, double iminX,
79 double imaxX, int binsY, double iminY, double imaxY,
80 double lowerValue, double upperValue );
82 std::pair<DataObject*, AIDA::IProfile2D*> createProf2D( const std::string& title, const Edges& eX, const Edges& eY,
83 double lowerValue, double upperValue );
84 }
85 #endif // GAUDIPI_GAUDIPI_H
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:32
Gaudi::createH2D
std::pair< DataObject *, AIDA::IHistogram2D * > createH2D(const AIDA::IHistogram2D &hist)
Copy constructor.
Gaudi::slice1DY
std::pair< DataObject *, AIDA::IHistogram1D * > slice1DY(const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
Create 1D slice from 2D histogram.
Gaudi::Edges
std::vector< double > Edges
Definition: GaudiPI.h:18
std::string
STL class.
HistogramBase.h
Gaudi::createH3D
std::pair< DataObject *, AIDA::IHistogram3D * > createH3D(const AIDA::IHistogram3D &hist)
Copy constructor.
HiveAlgSequencer.h
h
Definition: HiveAlgSequencer.py:24
Gaudi::slice1DX
std::pair< DataObject *, AIDA::IHistogram1D * > slice1DX(const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
Create 1D slice from 2D histogram.
std::pair
std::vector< double >
Gaudi::createProf2D
std::pair< DataObject *, AIDA::IProfile2D * > createProf2D(const AIDA::IProfile2D &hist)
Copy constructor.
Gaudi::project1DX
std::pair< DataObject *, AIDA::IHistogram1D * > project1DX(const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
Create 1D projection in X from 2D histogram.
Gaudi::profile1DY
std::pair< DataObject *, AIDA::IProfile1D * > profile1DY(const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
Create 1D profile in Y from 2D histogram.
Gaudi::project1DY
std::pair< DataObject *, AIDA::IHistogram1D * > project1DY(const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
Create 1D projection in Y from 2D histogram.
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:29
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1
Gaudi::createH1D
std::pair< DataObject *, AIDA::IHistogram1D * > createH1D(const AIDA::IHistogram1D &hist)
Copy constructor.
Gaudi::createProf1D
std::pair< DataObject *, AIDA::IProfile1D * > createProf1D(const AIDA::IProfile1D &hist)
Copy constructor.
Gaudi::profile1DX
std::pair< DataObject *, AIDA::IProfile1D * > profile1DX(const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
Create 1D profile in X from 2D histogram.