40 std::vector<double> edges;
41 for ( i = 0; i <= 10; i++ ) edges.push_back(
double( i ) *
double( i ) );
60 m_h3D =
histoSvc()->
book(
"3",
"3D fix binning", 50, 0., 100., 50, 0., 100., 10, 0., 100. );
67 error() <<
"----- Cannot book or register histograms -----" <<
endmsg;
70 info() <<
"Finished booking Histograms" <<
endmsg;
82 double x = sin(
double( n ) ) * 52. + 50.;
83 double y = cos(
double( 2 * n ) ) * 52. + 50.;
84 double z = cos(
double( 5 * n ) ) * 52. + 50.;
92 m_h3D->fill( x, y, z );
96 m_p2D->fill( x, y, z );
120 debug() <<
"Sum of Heights(Out): " <<
m_h1D->sumExtraBinHeights() <<
endmsg;
132 debug() <<
"Info about Histogram 1DVar\n" <<
endmsg;
164 debug() <<
"Sum of Heights(Out): " <<
m_h2D->sumExtraBinHeights() <<
endmsg;
178 debug() <<
"Info about Histogram 2DVar\n" <<
endmsg;
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
SmartIF< IHistogramSvc > & histoSvc() const
The standard histogram service.
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
const std::string & name() const override
The identifying name of the algorithm object.
HistoAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize() override
StatusCode execute() override
StatusCode finalize() override
virtual AIDA::IHistogram1D * book(const std::string &fullPath, const std::string &title, int binsX, double lowX, double highX)=0
Book histogram and register it with the histogram data store.
virtual std::ostream & print(AIDA::IBaseHistogram *h, std::ostream &s=std::cout) const =0
Print (ASCII) the histogram into the output stream.
virtual AIDA::IProfile1D * bookProf(const std::string &fullPath, const std::string &title, int binsX, double lowX, double highX, const std::string &opt="")=0
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
A small class used to access easily (and efficiently) data items residing in data stores.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE