14 #include "AIDA/IHistogram1D.h" 15 #include "AIDA/IHistogram2D.h" 16 #include "AIDA/IHistogram3D.h" 17 #include "AIDA/IProfile1D.h" 18 #include "AIDA/IProfile2D.h" 36 ( AIDA::IHistogram1D* histo ,
40 if ( histo ) { histo->fill ( value , weight ) ; }
54 ( AIDA::IHistogram2D* histo ,
59 if ( histo ) { histo ->
fill ( valueX , valueY , weight ) ; }
74 ( AIDA::IHistogram3D* histo ,
80 if ( histo ) { histo ->
fill ( valueX , valueY , valueZ , weight ) ; }
94 ( AIDA::IProfile1D* histo ,
99 if ( histo ) { histo ->
fill ( valueX , valueY , weight ) ; }
114 ( AIDA::IProfile2D* histo ,
115 const double valueX ,
116 const double valueY ,
117 const double valueZ ,
118 const double weight )
120 if ( histo ) { histo ->
fill ( valueX , valueY , valueZ , weight ) ; }
127 (
const AIDA::IBaseHistogram* histo ,
131 ( histo && title.
empty() ) ? histo->title() : title ;
138 (
const AIDA::IBaseHistogram* histo ,
140 {
return htitle_ ( histo , title ) ; }
145 (
const AIDA::IHistogram* histo ,
147 {
return htitle_ ( histo , title ) ; }
152 (
const AIDA::IHistogram1D* histo ,
154 {
return htitle_ ( histo , title ) ; }
159 (
const AIDA::IHistogram2D* histo ,
161 {
return htitle_ ( histo , title ) ; }
166 (
const AIDA::IHistogram3D* histo ,
168 {
return htitle_ ( histo , title ) ; }
173 (
const AIDA::IProfile* histo ,
175 {
return htitle_ ( histo , title ) ; }
180 (
const AIDA::IProfile1D* histo ,
182 {
return htitle_ ( histo , title ) ; }
187 (
const AIDA::IProfile2D* histo ,
189 {
return htitle_ ( histo , title ) ; }
191 AIDA::IBaseHistogram*
193 ( AIDA::IHistogram1D* histo ) {
return histo ; }
195 AIDA::IBaseHistogram*
197 ( AIDA::IHistogram2D* histo ) {
return histo ; }
199 AIDA::IBaseHistogram*
201 ( AIDA::IHistogram3D* histo ) {
return histo ; }
203 AIDA::IBaseHistogram*
205 ( AIDA::IProfile1D* histo ) {
return histo ; }
207 AIDA::IBaseHistogram*
209 ( AIDA::IProfile2D* histo ) {
return histo ; }
GAUDI_API std::string htitle(const AIDA::IBaseHistogram *histo, const std::string &title="")
get the title
GAUDI_API void fill(AIDA::IHistogram1D *histo, const double value, const double weight=1.0)
simple function to fill AIDA::IHistogram1D objects
GAUDI_API AIDA::IBaseHistogram * toBase(AIDA::IHistogram1D *histo)