8 const unsigned long binsX,
const double lowY,
const double highY,
9 const unsigned long binsY,
const double lowZ,
const double highZ,
10 const unsigned long binsZ )
const 13 if ( !produceHistos() ) {
18 auto hist = histo3D( title );
26 newHistoID( title, ID );
29 return this->book3D( ID, title, lowX, highX, binsX, lowY, highY, binsY, lowZ, highZ, binsZ );
34 template <
class PBASE>
36 const double highX,
const unsigned long binsX,
const double lowY,
37 const double highY,
const unsigned long binsY,
const double lowZ,
38 const double highZ,
const unsigned long binsZ )
const 41 if ( !produceHistos() ) {
47 this->Error(
"Undefined Histogram ID : Title='" + title +
"'" ).ignore();
52 auto hist = histo3D( ID );
63 hist = this->histoSvc()->book( histoPath(), ID.
numericID(),
htitle, binsX, lowX, highX, binsY, lowY, highY, binsZ,
66 hist = this->histoSvc()->book( histoPath() +
"/" + ID.
literalID(),
htitle, binsX, lowX, highX, binsY, lowY, highY,
72 this->Error(
"IHistogram3D* points to NULL! ID='" + ID.
idAsString() +
"' title='" + htitle +
"'" ).ignore();
77 m_histo3DMapID[ID] = hist;
78 m_histo3DMapTitle[title] = hist;
85 this->debug() <<
"Booked 3D Histogram : ID='" << ID <<
"' Path=" << histoPath() <<
" Title='" 93 template <
class PBASE>
95 const double valueZ,
const double weight,
const std::string& title )
const 101 if ( !checkForNaN() ) {
107 this->Warning(
"fill():: 'NaN' value is skipped from the histogram '" +
111 this->Warning(
"fill():: 'Infinite' value is skipped from the histogram '" +
121 template <
class PBASE>
124 const double lowX,
const double highX,
const double lowY,
const double highY,
125 const double lowZ,
const double highZ,
const unsigned long binsX,
const unsigned long binsY,
126 const unsigned long binsZ,
const double weight )
const 128 AIDA::IHistogram3D* h(
nullptr );
129 if ( produceHistos() ) {
131 h = histo3D( title );
133 h = book3D( title, lowX, highX, binsX, lowY, highY, binsY, lowZ, highZ, binsZ );
136 h =
fill( h, valueX, valueY, valueZ, weight, title );
143 template <
class PBASE>
146 const std::string& title,
const double lowX,
const double highX,
const double lowY,
147 const double highY,
const double lowZ,
const double highZ,
const unsigned long binsX,
148 const unsigned long binsY,
const unsigned long binsZ,
const double weight )
const 150 AIDA::IHistogram3D* h(
nullptr );
151 if ( produceHistos() ) {
155 h = book3D( ID, title, lowX, highX, binsX, lowY, highY, binsY, lowZ, highZ, binsZ );
158 h =
fill( h, valueX, valueY, valueZ, weight, title );
GAUDI_API std::string htitle(const AIDA::IBaseHistogram *histo, const std::string &title="")
get the title
NumericID numericID() const noexcept
Returns the numerical ID.
GAUDI_API void fill(AIDA::IHistogram1D *histo, const double value, const double weight=1.0)
simple function to fill AIDA::IHistogram1D objects
bool literal() const noexcept
Is this ID numeric.
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)
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.
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 AIDA::IBaseHistogram * toBase(AIDA::IHistogram1D *histo)
bool undefined() const noexcept
Is this ID undefined.
ID class for Histogram and Ntuples.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
AIDA::IHistogram1D * fill(AIDA::IHistogram1D *histo, const double value, const double weight, const std::string &title="") const
fill the 1D histogram with the value and weight