9 const unsigned long bins ,
12 const double highY )
const
15 if ( !produceHistos() ) {
return 0 ; }
18 AIDA::IProfile1D* hist = profile1D ( title ) ;
20 if( NULL != 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 0 ; }
49 this->Error(
"Undefined Histogram ID : Title='"+title+
"'");
54 AIDA::IProfile1D* hist = profile1D ( ID ) ;
56 if( NULL != 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 NULL; }
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 ( 0 == histo ) {
return 0 ; }
124 if ( !checkForNaN() )
126 else if ( lfin ( valueX ) && lfin ( valueY ) && lfin ( weight ) )
128 else if ( lnan ( valueX ) || lnan ( valueY ) || lnan ( weight ) )
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(NULL);
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(NULL);
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 ) ;