6 const unsigned long binsX,
const double lowY,
const double highY,
7 const unsigned long binsY )
const 10 if ( !produceHistos() ) {
15 auto hist = profile2D( title );
23 newHistoID( title, ID );
26 return this->bookProfile2D( ID, title, lowX, highX, binsX, lowY, highY, binsY );
31 template <
class PBASE>
33 const double highX,
const unsigned long binsX,
const double lowY,
34 const double highY,
const unsigned long binsY )
const 37 if ( !produceHistos() ) {
43 this->Error(
"Undefined Histogram ID : Title='" + title +
"'" ).ignore();
47 auto hist = profile2D( ID );
58 hist = this->histoSvc()->bookProf( histoPath(), ID.
numericID(),
htitle, binsX, lowX, highX, binsY, lowY, highY );
60 hist = this->histoSvc()->bookProf( histoPath() +
"/" + ID.
literalID(),
htitle, binsX, lowX, highX, binsY, lowY,
66 this->Error(
"IProfile2D* points to NULL! ID='" + ID.
idAsString() +
"' title='" + htitle +
"'" ).ignore();
71 m_profile2DMapID[ID] = hist;
72 m_profile2DMapTitle[title] = hist;
79 this->debug() <<
"Booked 2D Profile Histogram : ID='" << ID <<
"' Path=" << histoPath() <<
" Title='" 87 template <
class PBASE>
89 const double valueZ,
const double weight,
const std::string& title )
const 95 if ( !checkForNaN() ) {
101 this->Warning(
"fill():: 'NaN' value is skipped from the histogram '" +
105 this->Warning(
"fill():: 'Infinite' value is skipped from the histogram '" +
115 template <
class PBASE>
117 const std::string& title,
const double lowX,
const double highX,
118 const double lowY,
const double highY,
const unsigned long binsX,
119 const unsigned long binsY,
const double weight )
const 121 AIDA::IProfile2D* h =
nullptr;
122 if ( produceHistos() ) {
124 h = profile2D( title );
126 h = bookProfile2D( title, lowX, highX, binsX, lowY, highY, binsY );
129 h =
fill( h, valueX, valueY, valueZ, weight, title );
136 template <
class PBASE>
139 const double highX,
const double lowY,
const double highY,
140 const unsigned long binsX,
const unsigned long binsY,
141 const double weight )
const 143 AIDA::IProfile2D* h =
nullptr;
144 if ( produceHistos() ) {
148 h = bookProfile2D( ID, title, lowX, highX, binsX, lowY, highY, binsY );
151 h =
fill( h, valueX, valueY, valueZ, weight, title );
GAUDI_API std::string htitle(const AIDA::IBaseHistogram *histo, const std::string &title="")
get the title
AIDA::IProfile2D * bookProfile2D(const std::string &title, const double lowX=0, const double highX=100, const unsigned long binsX=50, const double lowY=0, const double highY=100, const unsigned long binsY=50) const
book the 2D profile histogram
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.
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.
GAUDI_API AIDA::IBaseHistogram * toBase(AIDA::IHistogram1D *histo)
bool undefined() const noexcept
Is this ID undefined.
AIDA::IProfile2D * profile2D(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 unsigned long binsX=50, const unsigned long binsY=50, const double weight=1.0) const
fill the 2D profile histogram (book on demand)
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