| The Gaudi Framework v32r1 (f65d50dc)

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 typedef std::vector<double> Edges;
18
20 std::pair<DataObject*, AIDA::IHistogram1D*> createH1D( const AIDA::IHistogram1D& hist );
22 std::pair<DataObject*, AIDA::IHistogram1D*> createH1D( const std::string& title, int nBins = 10,
23 double lowerEdge = 0., double upperEdge = 1. );
25 std::pair<DataObject*, AIDA::IHistogram1D*> createH1D( const std::string& title, const Edges& e );
26
28 std::pair<DataObject*, AIDA::IHistogram2D*> createH2D( const AIDA::IHistogram2D& hist );
30 std::pair<DataObject*, AIDA::IHistogram2D*> createH2D( TH2D* rep );
32 std::pair<DataObject*, AIDA::IHistogram2D*> createH2D( const std::string& title, int binsX, double iminX,
33 double imaxX, int binsY, double iminY, double imaxY );
35 std::pair<DataObject*, AIDA::IHistogram2D*> createH2D( const std::string& title, const Edges& eX, const Edges& eY );
37 std::pair<DataObject*, AIDA::IHistogram1D*> slice1DX( const std::string& name, const AIDA::IHistogram2D& h,
38 int firstbin, int lastbin );
40 std::pair<DataObject*, AIDA::IProfile1D*> profile1DX( const std::string& name, const AIDA::IHistogram2D& h,
41 int firstbin, int lastbin );
43 std::pair<DataObject*, AIDA::IHistogram1D*> project1DX( const std::string& name, const AIDA::IHistogram2D& h,
44 int firstbin, int lastbin );
46 std::pair<DataObject*, AIDA::IHistogram1D*> slice1DY( const std::string& name, const AIDA::IHistogram2D& h,
47 int firstbin, int lastbin );
49 std::pair<DataObject*, AIDA::IProfile1D*> profile1DY( const std::string& name, const AIDA::IHistogram2D& h,
50 int firstbin, int lastbin );
52 std::pair<DataObject*, AIDA::IHistogram1D*> project1DY( const std::string& name, const AIDA::IHistogram2D& h,
53 int firstbin, int lastbin );
54
56 std::pair<DataObject*, AIDA::IHistogram3D*> createH3D( const AIDA::IHistogram3D& hist );
58 std::pair<DataObject*, AIDA::IHistogram3D*> createH3D( const std::string& title, int nBinsX, double xlow, double xup,
59 int nBinsY, double ylow, double yup, int nBinsZ, double zlow,
60 double zup );
62 std::pair<DataObject*, AIDA::IHistogram3D*> createH3D( const std::string& title, const Edges& eX, const Edges& eY,
63 const Edges& eZ );
64
66 std::pair<DataObject*, AIDA::IProfile1D*> createProf1D( const AIDA::IProfile1D& hist );
68 std::pair<DataObject*, AIDA::IProfile1D*> createProf1D( const std::string& title, int nBins, double xlow, double xup,
69 double ylow, double yup, const std::string& opt = "" );
71 std::pair<DataObject*, AIDA::IProfile1D*> createProf1D( const std::string& title, const Edges& e, double ylow,
72 double yup, const std::string& opt = "" );
73
75 std::pair<DataObject*, AIDA::IProfile2D*> createProf2D( const AIDA::IProfile2D& hist );
77 std::pair<DataObject*, AIDA::IProfile2D*> createProf2D( const std::string& title, int binsX, double iminX,
78 double imaxX, int binsY, double iminY, double imaxY,
79 double lowerValue, double upperValue );
81 std::pair<DataObject*, AIDA::IProfile2D*> createProf2D( const std::string& title, const Edges& eX, const Edges& eY,
82 double lowerValue, double upperValue );
83 } // namespace Gaudi
84 #endif // GAUDIPI_GAUDIPI_H
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:41
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:17
std::string
STL class.
HistogramBase.h
Gaudi::createH3D
std::pair< DataObject *, AIDA::IHistogram3D * > createH3D(const AIDA::IHistogram3D &hist)
Copy constructor.
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:30
Gaudi
Header file for std:chrono::duration-based Counters.
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.