11 if ( !produceHistos() ) {
return 0 ; }
14 AIDA::IProfile2D* hist = profile2D ( title ) ;
16 if( NULL != hist ) {
return hist ; }
20 newHistoID( title, ID );
23 return this -> bookProfile2D ( ID, title, edgesX, edgesY );
28 template <
class PBASE>
36 if ( !produceHistos() ) {
return 0 ; }
41 this->Error(
"Undefined Histogram ID : Title='"+title+
"'");
45 AIDA::IProfile2D* hist = profile2D ( ID ) ;
47 if( NULL != hist ) {
return hist ; }
52 "Unnamed 2D Profile Histogram ID="+ID.
idAsString() : title ) ;
57 hist = this->histoSvc() ->
bookProf ( histoPath() ,
65 hist = this->histoSvc() ->
bookProf ( histoPath()+
"/"+
74 { this->Error(
"IProfile2D* points to NULL! ID='" + ID.
idAsString() +
75 "' title='"+htitle+
"'" ) ;
return NULL; }
78 m_profile2DMapID [ ID ] = hist ;
79 m_profile2DMapTitle [ title ] = hist ;
86 { this->debug() <<
"Booked 2D Profile Histogram : ID='" << ID
87 <<
"' Path=" << histoPath()
96 template <
class PBASE>
98 (
const double valueX ,
100 const double valueZ ,
104 const double weight )
const
106 AIDA::IProfile2D * h(NULL);
107 if ( produceHistos() )
110 h = profile2D ( title ) ;
111 if ( NULL == h ) { h = bookProfile2D ( title, edgesX, edgesY ) ; }
113 h =
fill ( h , valueX , valueY , valueZ , weight , title ) ;
120 template <
class PBASE>
122 (
const double valueX ,
123 const double valueY ,
124 const double valueZ ,
129 const double weight )
const
131 AIDA::IProfile2D * h(NULL);
132 if ( produceHistos() )
135 h = profile2D ( ID ) ;
136 if ( NULL == h ) { h = bookProfile2D ( ID , title , edgesX , edgesY ) ; }
139 h =
fill ( h , valueX , valueY , valueZ , weight , title ) ;