11 if ( !produceHistos() ) {
16 auto hist = histo3D( title );
24 newHistoID( title, ID );
27 return this->book3D( ID, title, edgesX, edgesY, edgesZ );
32 template <
class PBASE>
38 if ( !produceHistos() ) {
44 this->Error(
"Undefined Histogram ID : Title='" + title +
"'" ).ignore();
49 auto hist = histo3D( ID );
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 94 AIDA::IHistogram3D* h(
nullptr );
95 if ( produceHistos() ) {
99 h = book3D( title, edgesX, edgesY, edgesZ );
102 h =
fill( h, valueX, valueY, valueZ, weight, title );
109 template <
class PBASE>
115 AIDA::IHistogram3D* h(
nullptr );
116 if ( produceHistos() ) {
120 h = book3D( ID, title, edgesX, edgesY, edgesZ );
123 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.