Go to the documentation of this file.
16 template <
class PBASE>
20 if ( !produceHistos() ) {
return nullptr; }
23 auto hist = histo3D( title );
25 if ( hist ) {
return hist; }
29 newHistoID( title, ID );
32 return this->book3D( ID, title, edgesX, edgesY, edgesZ );
37 template <
class PBASE>
42 if ( !produceHistos() ) {
return nullptr; }
46 this->Error(
"Undefined Histogram ID : Title='" + title +
"'" ).ignore();
51 auto hist = histo3D( ID );
53 if ( hist ) {
return hist; }
60 hist = this->histoSvc()->book( histoPath(), ID.
numericID(),
htitle, edgesX, edgesY, edgesZ );
62 hist = this->histoSvc()->book( histoPath() +
"/" + ID.
literalID(),
htitle, edgesX, edgesY, edgesZ );
67 this->Error(
"IHistogram3D* points to NULL! ID='" + ID.
idAsString() +
"' title='" +
htitle +
"'" ).ignore();
72 m_histo3DMapID[ID] = hist;
73 m_histo3DMapTitle[title] = hist;
80 this->debug() <<
"Booked 3D Histogram : ID='" << ID <<
"' Path=" << histoPath() <<
" Title='"
88 template <
class PBASE>
92 const double weight )
const {
93 AIDA::IHistogram3D*
h(
nullptr );
94 if ( produceHistos() ) {
97 if ( !
h ) {
h = book3D( title, edgesX, edgesY, edgesZ ); }
99 h =
fill(
h, valueX, valueY, valueZ, weight, title );
106 template <
class PBASE>
111 AIDA::IHistogram3D*
h(
nullptr );
112 if ( produceHistos() ) {
115 if ( !
h ) {
h = book3D( ID, title, edgesX, edgesY, edgesZ ); }
117 h =
fill(
h, valueX, valueY, valueZ, weight, title );
AIDA::IHistogram3D * plot3D(const double valueX, const double valueY, const double valueZ, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const double lowZ, const double highZ, const unsigned long binsX=10, const unsigned long binsY=10, const unsigned long binsZ=10, const double weight=1.0) const
fill the 3D histogram (book on demand)
NumericID numericID() const noexcept
Returns the numerical ID.
GAUDI_API AIDA::IBaseHistogram * toBase(AIDA::IHistogram1D *histo)
bool undefined() const noexcept
Is this ID undefined.
GAUDI_API std::string htitle(const AIDA::IBaseHistogram *histo, const std::string &title="")
get the title
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
AIDA::IHistogram3D * book3D(const std::string &title, const double lowX=0, const double highX=100, const unsigned long binsX=10, const double lowY=0, const double highY=100, const unsigned long binsY=10, const double lowZ=0, const double highZ=100, const unsigned long binsZ=10) const
book the 3D histogram
GAUDI_API void fill(AIDA::IHistogram1D *histo, const double value, const double weight=1.0)
simple function to fill AIDA::IHistogram1D objects
const LiteralID & literalID() const noexcept
Returns the ID as a LiteralID.
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
bool numeric() const noexcept
Is this ID numeric.
bool literal() const noexcept
Is this ID numeric.