15 #include "AIDA/IHistogram1D.h"
16 #include "AIDA/IHistogram2D.h"
17 #include "AIDA/IHistogram3D.h"
18 #include "AIDA/IProfile1D.h"
19 #include "AIDA/IProfile2D.h"
37 ( AIDA::IHistogram1D* histo ,
41 if ( 0 != histo ) { histo->fill ( value , weight ) ; }
55 ( AIDA::IHistogram2D* histo ,
60 if ( 0 != histo ) { histo ->
fill ( valueX , valueY , weight ) ; }
75 ( AIDA::IHistogram3D* histo ,
81 if ( 0 != histo ) { histo ->
fill ( valueX , valueY , valueZ , weight ) ; }
95 ( AIDA::IProfile1D* histo ,
100 if ( 0 != histo ) { histo ->
fill ( valueX , valueY , weight ) ; }
115 ( AIDA::IProfile2D* histo ,
116 const double valueX ,
117 const double valueY ,
118 const double valueZ ,
119 const double weight )
121 if ( 0 != histo ) { histo ->
fill ( valueX , valueY , valueZ , weight ) ; }
128 (
const AIDA::IBaseHistogram* histo ,
129 const std::string& title )
132 ( 0 != histo && title.empty() ) ? histo->title() : title ;
139 (
const AIDA::IBaseHistogram* histo ,
140 const std::string& title )
141 {
return htitle_ ( histo , title ) ; }
146 (
const AIDA::IHistogram* histo ,
147 const std::string& title )
148 {
return htitle_ ( histo , title ) ; }
153 (
const AIDA::IHistogram1D* histo ,
154 const std::string& title )
155 {
return htitle_ ( histo , title ) ; }
160 (
const AIDA::IHistogram2D* histo ,
161 const std::string& title )
162 {
return htitle_ ( histo , title ) ; }
167 (
const AIDA::IHistogram3D* histo ,
168 const std::string& title )
169 {
return htitle_ ( histo , title ) ; }
174 (
const AIDA::IProfile* histo ,
175 const std::string& title )
176 {
return htitle_ ( histo , title ) ; }
181 (
const AIDA::IProfile1D* histo ,
182 const std::string& title )
183 {
return htitle_ ( histo , title ) ; }
188 (
const AIDA::IProfile2D* histo ,
189 const std::string& title )
190 {
return htitle_ ( histo , title ) ; }
192 AIDA::IBaseHistogram*
194 ( AIDA::IHistogram1D* histo ) {
return histo ; }
196 AIDA::IBaseHistogram*
198 ( AIDA::IHistogram2D* histo ) {
return histo ; }
200 AIDA::IBaseHistogram*
202 ( AIDA::IHistogram3D* histo ) {
return histo ; }
204 AIDA::IBaseHistogram*
206 ( AIDA::IProfile1D* histo ) {
return histo ; }
208 AIDA::IBaseHistogram*
210 ( 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)