Go to the documentation of this file.
14 template <
class PBASE>
17 if ( !produceHistos() ) {
return nullptr; }
20 auto hist = profile1D( title );
22 if ( hist ) {
return hist; }
26 newHistoID( title, ID );
29 return this->bookProfile1D( ID, title, edges );
34 template <
class PBASE>
38 if ( !produceHistos() ) {
return nullptr; }
42 this->Error(
"Undefined Histogram ID : Title='" + title +
"'" ).ignore();
47 auto hist = profile1D( ID );
49 if ( hist ) {
return hist; }
56 hist = this->histoSvc()->bookProf( histoPath(), ID.
numericID(),
htitle, edges );
58 hist = this->histoSvc()->bookProf( histoPath() +
"/" + ID.
literalID(),
htitle, edges );
63 this->Error(
"IProfile1D* points to NULL! ID='" + ID.
idAsString() +
"' title='" +
htitle +
"'" ).ignore();
68 m_profile1DMapID[ID] = hist;
69 m_profile1DMapTitle[title] = hist;
76 this->debug() <<
"Booked 1D Profile Histogram : ID='" << ID <<
"' Path=" << histoPath() <<
" Title='"
84 template <
class PBASE>
87 AIDA::IProfile1D*
h(
nullptr );
88 if ( produceHistos() ) {
90 h = profile1D( title );
91 if ( !
h ) {
h = bookProfile1D( title, edges ); }
93 h =
fill(
h, valueX, valueY, weight, title );
100 template <
class PBASE>
103 const double weight )
const {
104 AIDA::IProfile1D*
h(
nullptr );
105 if ( produceHistos() ) {
108 if ( !
h ) {
h = bookProfile1D( ID, title, edges ); }
110 h =
fill(
h, valueX, valueY, weight, title );
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::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
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)
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.