9 if ( !produceHistos() ) {
14 auto hist = profile2D( title );
22 newHistoID( title, ID );
25 return this->bookProfile2D( ID, title, edgesX, edgesY );
30 template <
class PBASE>
35 if ( !produceHistos() ) {
41 this->Error(
"Undefined Histogram ID : Title='" + title +
"'" );
45 auto hist = profile2D( ID );
56 hist = this->histoSvc()->bookProf( histoPath(), ID.
numericID(),
htitle, edgesX, edgesY );
58 hist = this->histoSvc()->bookProf( histoPath() +
"/" + ID.
literalID(),
htitle, edgesX, edgesY );
63 this->Error(
"IProfile2D* points to NULL! ID='" + ID.
idAsString() +
"' title='" + htitle +
"'" );
68 m_profile2DMapID[ID] = hist;
69 m_profile2DMapTitle[title] = hist;
76 this->debug() <<
"Booked 2D Profile Histogram : ID='" << ID <<
"' Path=" << histoPath() <<
" Title='" 84 template <
class PBASE>
89 AIDA::IProfile2D*
h(
nullptr );
90 if ( produceHistos() ) {
92 h = profile2D( title );
94 h = bookProfile2D( title, edgesX, edgesY );
97 h =
fill( h, valueX, valueY, valueZ, weight, title );
104 template <
class PBASE>
108 const double weight )
const 110 AIDA::IProfile2D*
h(
nullptr );
111 if ( produceHistos() ) {
115 h = bookProfile2D( ID, title, edgesX, edgesY );
119 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.