9 const unsigned long bins ,
12 const double highY )
const 15 if ( !produceHistos() ) {
return nullptr ; }
18 auto hist = profile1D ( title ) ;
20 if( hist ) {
return hist ; }
24 newHistoID( title, ID );
27 return this -> bookProfile1D ( ID, title, low, high, bins , opt , lowY , highY );
32 template <
class PBASE>
38 const unsigned long bins ,
41 const double highY )
const 44 if ( !produceHistos() ) {
return nullptr ; }
49 this->Error(
"Undefined Histogram ID : Title='"+title+
"'");
54 auto hist = profile1D ( ID ) ;
56 if( hist ) {
return hist ; }
61 "Unnamed 1D Profile Histogram ID="+ID.
idAsString() : title ) ;
66 hist = this->histoSvc() ->
bookProf ( histoPath() ,
78 hist = this->histoSvc() ->
bookProf ( histoPath()+
"/"+
91 { this->Error(
"IProfile1D* points to NULL! ID='" + ID.
idAsString() +
92 "' title='"+htitle+
"'" ) ;
return nullptr; }
95 m_profile1DMapID [ ID ] = hist ;
96 m_profile1DMapTitle [ title ] = hist ;
103 { this->debug() <<
"Booked 1D Profile Histogram : ID='" 104 << ID <<
"' Path=" << histoPath()
113 template <
class PBASE>
115 ( AIDA::IProfile1D* histo ,
116 const double valueX ,
117 const double valueY ,
118 const double weight ,
122 if ( !histo ) {
return nullptr ; }
124 if ( !checkForNaN() )
131 (
"fill():: 'NaN' value is skipped from the histogram '" 137 (
"fill():: 'Infinite' value is skipped from the histogram '" 146 template <
class PBASE>
148 (
const double valueX ,
149 const double valueY ,
153 const unsigned long binsX ,
157 const double weight )
const 159 AIDA::IProfile1D *
h =
nullptr;
160 if ( produceHistos() )
163 h = profile1D ( title ) ;
165 { h = bookProfile1D ( title , lowX , highX , binsX , opt , lowY , highY ) ; }
167 h =
fill ( h , valueX , valueY , weight , title ) ;
174 template <
class PBASE>
176 (
const double valueX ,
177 const double valueY ,
182 const unsigned long binsX ,
186 const double weight )
const 188 AIDA::IProfile1D *
h =
nullptr;
189 if ( produceHistos() )
192 h = profile1D ( ID ) ;
194 { h = bookProfile1D ( ID , title , lowX , highX , binsX , opt , lowY , highY ) ; }
196 h =
fill ( h , valueX , valueY , weight , title ) ;
GAUDI_API std::string htitle(const AIDA::IBaseHistogram *histo, const std::string &title="")
get the title
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
NumericID numericID() const
Returns the numerical ID.
const LiteralID & literalID() const
Returns the ID as a LiteralID.
bool undefined() const
Is this ID undefined.
def bookProf(args, kwargs)
The trivial function to book 1D&2D profile histograms:
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
bool literal() const
Is this ID numeric.
GAUDI_API AIDA::IBaseHistogram * toBase(AIDA::IHistogram1D *histo)
ID class for Histogram and Ntuples.
bool numeric() const
Is this ID numeric.
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::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