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 +
"'" );
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 +
"'" );
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 '" +
104 this->Warning(
"fill():: 'Infinite' value is skipped from the histogram '" +
113 template <
class PBASE>
115 const std::string& title,
const double lowX,
const double highX,
116 const double lowY,
const double highY,
const unsigned long binsX,
117 const unsigned long binsY,
const double weight )
const 119 AIDA::IProfile2D*
h =
nullptr;
120 if ( produceHistos() ) {
122 h = profile2D( title );
124 h = bookProfile2D( title, lowX, highX, binsX, lowY, highY, binsY );
127 h =
fill( h, valueX, valueY, valueZ, weight, title );
134 template <
class PBASE>
137 const double highX,
const double lowY,
const double highY,
138 const unsigned long binsX,
const unsigned long binsY,
139 const double weight )
const 141 AIDA::IProfile2D*
h =
nullptr;
142 if ( produceHistos() ) {
146 h = bookProfile2D( ID, title, lowX, highX, binsX, lowY, highY, binsY );
149 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