10 if ( !produceHistos() ) {
return 0 ; }
13 AIDA::IProfile1D* hist = profile1D ( title ) ;
15 if ( NULL != hist ) {
return hist ; }
19 newHistoID( title, ID );
22 return this -> bookProfile1D ( ID, title, edges );
27 template <
class PBASE>
34 if ( !produceHistos() ) {
return 0 ; }
39 this->Error(
"Undefined Histogram ID : Title='"+title+
"'");
44 AIDA::IProfile1D* hist = profile1D ( ID ) ;
46 if ( NULL != hist ) {
return hist ; }
51 "Unnamed 1D Profile Histogram ID="+ID.
idAsString() : title ) ;
56 hist = this->histoSvc() ->
bookProf ( histoPath() ,
63 hist = this->histoSvc() ->
bookProf ( histoPath()+
"/"+
71 { this->Error(
"IProfile1D* points to NULL! ID='" + ID.
idAsString() +
72 "' title='"+htitle+
"'" ) ;
return NULL; }
75 m_profile1DMapID [ ID ] = hist ;
76 m_profile1DMapTitle [ title ] = hist ;
83 { this->debug() <<
"Booked 1D Profile Histogram : ID='"
84 << ID <<
"' Path=" << histoPath()
93 template <
class PBASE>
95 (
const double valueX ,
99 const double weight )
const
101 AIDA::IProfile1D * h(NULL);
102 if ( produceHistos() )
105 h = profile1D ( title ) ;
106 if ( NULL == h ) { h = bookProfile1D ( title , edges ) ; }
108 h =
fill ( h , valueX , valueY , weight , title ) ;
115 template <
class PBASE>
117 (
const double valueX ,
118 const double valueY ,
122 const double weight )
const
124 AIDA::IProfile1D * h(NULL);
125 if ( produceHistos() )
128 h = profile1D ( ID ) ;
129 if ( NULL == h ) { h = bookProfile1D ( ID , title , edges ) ; }
131 h =
fill ( h , valueX , valueY , weight , title ) ;