Go to the documentation of this file.
14 template <
class PBASE>
18 if ( !produceHistos() ) {
return 0; }
21 auto hist = profile2D( title );
23 if ( hist ) {
return hist; }
27 newHistoID( title, ID );
30 return this->bookProfile2D( ID, title, edgesX, edgesY );
35 template <
class PBASE>
39 if ( !produceHistos() ) {
return 0; }
43 this->Error(
"Undefined Histogram ID : Title='" + title +
"'" ).ignore();
47 auto hist = profile2D( ID );
49 if ( hist ) {
return hist; }
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 +
"'" ).ignore();
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>
88 AIDA::IProfile2D*
h(
nullptr );
89 if ( produceHistos() ) {
91 h = profile2D( title );
92 if ( !
h ) {
h = bookProfile2D( title, edgesX, edgesY ); }
94 h =
fill(
h, valueX, valueY, valueZ, weight, title );
101 template <
class PBASE>
105 const double weight )
const {
106 AIDA::IProfile2D*
h(
nullptr );
107 if ( produceHistos() ) {
110 if ( !
h ) {
h = bookProfile2D( ID, title, edgesX, edgesY ); }
113 h =
fill(
h, valueX, valueY, valueZ, weight, 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 AIDA::IBaseHistogram * toBase(AIDA::IHistogram1D *histo)
bool undefined() const noexcept
Is this ID undefined.
GAUDI_API std::string htitle(const AIDA::IBaseHistogram *histo, const std::string &title="")
get the title
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
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)
GAUDI_API void fill(AIDA::IHistogram1D *histo, const double value, const double weight=1.0)
simple function to fill AIDA::IHistogram1D objects
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.
bool literal() const noexcept
Is this ID numeric.