12 if ( !produceHistos() ) {
return 0 ; }
15 AIDA::IHistogram1D* hist = histo1D ( title ) ;
17 if( NULL != hist ) {
return hist ; }
21 newHistoID( title, ID );
24 return this -> book1D ( ID, title, edges );
29 template <
class PBASE>
36 if ( !produceHistos() ) {
return 0 ; }
41 this->Error(
"Undefined Histogram ID : Title='"+title+
"'");
46 AIDA::IHistogram1D* hist = histo1D ( ID ) ;
48 if ( NULL != hist ) {
return hist ; }
52 ( title.empty() ?
"Unnamed 1D Histogram ID="+ID.
idAsString() : title ) ;
57 hist = this->histoSvc() ->
book ( histoPath() ,
64 hist = this->histoSvc() ->
book ( histoPath()+
"/"+
72 { this->Error(
"IHistogram1D* points to NULL! ID='" + ID.
idAsString() +
73 "' title='"+htitle+
"'" ) ;
return NULL; }
76 m_histo1DMapID [ ID ] = hist ;
77 m_histo1DMapTitle [ title ] = hist ;
84 { this->debug() <<
"Booked 1D Histogram : ID='" << ID
85 <<
"' Path=" << histoPath()
94 template <
class PBASE>
97 (
const double value ,
100 const double weight )
const
102 AIDA::IHistogram1D * h(NULL);
103 if ( produceHistos() )
106 h = histo1D ( title ) ;
107 if ( NULL == h ) { h = book1D ( title , edges ) ; }
109 h =
fill ( h , value , weight , title );
116 template <
class PBASE>
119 (
const double value ,
123 const double weight )
const
125 AIDA::IHistogram1D* h(NULL);
126 if ( produceHistos() )
130 if ( NULL == h ) { h = book1D ( ID , title , edges ) ; }
132 h =
fill ( h , value , weight , title ) ;