7 if ( !produceHistos() ) {
return nullptr; }
10 auto hist = profile1D( title );
12 if ( hist ) {
return hist; }
16 newHistoID( title, ID );
19 return this->bookProfile1D( ID, title, edges );
24 template <
class PBASE>
28 if ( !produceHistos() ) {
return nullptr; }
32 this->Error(
"Undefined Histogram ID : Title='" + title +
"'" ).ignore();
37 auto hist = profile1D( ID );
39 if ( hist ) {
return hist; }
46 hist = this->histoSvc()->bookProf( histoPath(), ID.
numericID(),
htitle, edges );
48 hist = this->histoSvc()->bookProf( histoPath() +
"/" + ID.
literalID(),
htitle, edges );
53 this->Error(
"IProfile1D* points to NULL! ID='" + ID.
idAsString() +
"' title='" +
htitle +
"'" ).ignore();
58 m_profile1DMapID[ID] = hist;
59 m_profile1DMapTitle[title] = hist;
66 this->debug() <<
"Booked 1D Profile Histogram : ID='" << ID <<
"' Path=" << histoPath() <<
" Title='" 74 template <
class PBASE>
77 AIDA::IProfile1D* h(
nullptr );
78 if ( produceHistos() ) {
80 h = profile1D( title );
81 if ( !h ) { h = bookProfile1D( title, edges ); }
83 h =
fill( h, valueX, valueY, weight, title );
90 template <
class PBASE>
93 const double weight )
const {
94 AIDA::IProfile1D* h(
nullptr );
95 if ( produceHistos() ) {
98 if ( !h ) { h = bookProfile1D( ID, title, edges ); }
100 h =
fill( h, valueX, valueY, weight, title );
const LiteralID & literalID() const noexcept
Returns the ID as a LiteralID.
GAUDI_API std::string htitle(const AIDA::IBaseHistogram *histo, const std::string &title="")
get the title
GAUDI_API void fill(AIDA::IHistogram1D *histo, const double value, const double weight=1.0)
simple function to fill AIDA::IHistogram1D objects
NumericID numericID() const noexcept
Returns the numerical ID.
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
bool undefined() const noexcept
Is this ID undefined.
bool literal() const noexcept
Is this ID numeric.
AIDA::IProfile1D * profile1D(const double valueX, const double valueY, const std::string &title, const double lowX, const double highX, const unsigned long binsX=100, const std::string &opt="", const double lowY=-std::numeric_limits< double >::max(), const double highY=std::numeric_limits< double >::max(), const double weight=1.0) const
fill the 1D profile histogram (book on demand)
AIDA::IProfile1D * bookProfile1D(const std::string &title, const double low=0, const double high=100, const unsigned long bins=100, const std::string &opt="", const double lowY=-std::numeric_limits< double >::max(), const double highY=std::numeric_limits< double >::max()) const
book the 1D profile histogram
bool numeric() const noexcept
Is this ID numeric.
GAUDI_API AIDA::IBaseHistogram * toBase(AIDA::IHistogram1D *histo)
ID class for Histogram and Ntuples.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.