3 #ifndef GAUDIALG_HISTOTOOL_H
4 #define GAUDIALG_HISTOTOOL_H 1
45 const std::string&
name,
56 virtual AIDA::IHistogram1D*
plot1D
58 const std::string& title ,
61 const unsigned long bins = 100 ,
62 const double weight = 1.0 )
const
66 ( value , title , low , high , bins , weight ) ;
70 virtual AIDA::IHistogram1D*
plot1D
71 (
const double value ,
73 const std::string& title ,
76 const unsigned long bins = 100 ,
77 const double weight = 1.0 )
const
80 ( value , ID , title , low , high , bins , weight ) ;
86 virtual AIDA::IHistogram2D*
plot2D
87 (
const double valueX ,
89 const std::string& title ,
94 const unsigned long binsX = 50 ,
95 const unsigned long binsY = 50 ,
96 const double weight = 1.0 )
const
99 ( valueX, valueY, title, lowX, highX, lowY, highY, binsX, binsY, weight ) ;
103 virtual AIDA::IHistogram2D*
plot2D
104 (
const double valueX ,
105 const double valueY ,
107 const std::string& title ,
112 const unsigned long binsX = 50 ,
113 const unsigned long binsY = 50 ,
114 const double weight = 1.0 )
const
117 ( valueX, valueY, ID, title, lowX, highX, lowY, highY, binsX, binsY, weight ) ;
123 virtual AIDA::IHistogram3D*
plot3D
124 (
const double valueX ,
125 const double valueY ,
126 const double valueZ ,
127 const std::string& title ,
134 const unsigned long binsX = 10 ,
135 const unsigned long binsY = 10 ,
136 const unsigned long binsZ = 10 ,
137 const double weight = 1.0 )
const
140 ( valueX, valueY, valueZ, title,
141 lowX, highX, lowY, highY, lowZ, highZ, binsX, binsY, binsZ, weight ) ;
145 virtual AIDA::IHistogram3D*
plot3D
146 (
const double valueX ,
147 const double valueY ,
148 const double valueZ ,
150 const std::string& title ,
157 const unsigned long binsX = 10 ,
158 const unsigned long binsY = 10 ,
159 const unsigned long binsZ = 10 ,
160 const double weight = 1.0 )
const
163 ( valueX, valueY, valueZ, ID, title,
164 lowX, highX, lowY, highY, lowZ, highZ, binsX, binsY, binsZ, weight ) ;
170 virtual AIDA::IHistogram1D*
book1D
171 (
const std::string& title ,
172 const double low = 0 ,
173 const double high = 100 ,
174 const unsigned long bins = 100 )
const
180 virtual AIDA::IHistogram2D*
book2D
181 (
const std::string& title ,
182 const double lowX = 0 ,
183 const double highX = 100 ,
184 const unsigned long binsX = 50 ,
185 const double lowY = 0 ,
186 const double highY = 100 ,
187 const unsigned long binsY = 50 )
const
193 virtual AIDA::IHistogram3D*
book3D
194 (
const std::string& title ,
195 const double lowX = 0 ,
196 const double highX = 100 ,
197 const unsigned long binsX = 10 ,
198 const double lowY = 0 ,
199 const double highY = 100 ,
200 const unsigned long binsY = 10 ,
201 const double lowZ = 0 ,
202 const double highZ = 100 ,
203 const unsigned long binsZ = 10 )
const
208 lowZ, highZ, binsZ ) ;
212 virtual AIDA::IHistogram1D*
book1D
214 const std::string& title =
"" ,
215 const double low = 0 ,
216 const double high = 100 ,
217 const unsigned long bins = 100 )
const
223 virtual AIDA::IHistogram2D*
book2D
225 const std::string& title ,
226 const double lowX = 0 ,
227 const double highX = 100 ,
228 const unsigned long binsX = 50 ,
229 const double lowY = 0 ,
230 const double highY = 100 ,
231 const unsigned long binsY = 50 )
const
237 virtual AIDA::IHistogram3D*
book3D
239 const std::string& title ,
240 const double lowX = 0 ,
241 const double highX = 100 ,
242 const unsigned long binsX = 10 ,
243 const double lowY = 0 ,
244 const double highY = 100 ,
245 const unsigned long binsY = 10 ,
246 const double lowZ = 0 ,
247 const double highZ = 100 ,
248 const unsigned long binsZ = 10 )
const
253 lowZ, highZ, binsZ ) ;
257 virtual AIDA::IHistogram1D*
fill
260 const double weight ,
261 const std::string& title =
"")
const
267 virtual AIDA::IHistogram2D*
fill
268 ( AIDA::IHistogram2D* histo ,
269 const double valueX ,
270 const double valueY ,
271 const double weight ,
272 const std::string& title =
"" )
const
278 virtual AIDA::IHistogram3D*
fill
279 ( AIDA::IHistogram3D* histo ,
280 const double valueX ,
281 const double valueY ,
282 const double valueZ ,
283 const double weight ,
284 const std::string& title =
"" )
const
290 virtual AIDA::IHistogram1D*
histo1D (
const std::string& title )
const
298 virtual AIDA::IHistogram2D*
histo2D (
const std::string& title )
const
306 virtual AIDA::IHistogram3D*
histo3D (
const std::string& title )
const
329 #endif // GAUDIALG_HISTOTOOL_H
AIDA::IHistogram2D * histo2D(const std::string &title) const
access the EXISTING 2D histogram by title return the pointer to existing 2D histogram or NULL ...
AIDA::IHistogram1D * book1D(const std::string &title, const double low=0, const double high=100, const unsigned long bins=100) const
book the 1D histogram
virtual const std::string & name() const =0
Retrieve the name of the instance.
AIDA::IHistogram1D * histo1D(const std::string &title) const
access the EXISTING 1D histogram by title return the pointer to existing 1D histogram or NULL ...
Definition of the basic interface.
AIDA::IHistogram2D * book2D(const std::string &title, const double lowX=0, const double highX=100, const unsigned long binsX=50, const double lowY=0, const double highY=100, const unsigned long binsY=50) const
book the 2D histogram
AIDA::IHistogram3D * plot3D(const double valueX, const double valueY, const double valueZ, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const double lowZ, const double highZ, const unsigned long binsX=10, const unsigned long binsY=10, const unsigned long binsZ=10, const double weight=1.0) const
fill the 3D histogram (book on demand)
AIDA::IHistogram2D * plot2D(const double valueX, const double valueY, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const unsigned long binsX=50, const unsigned long binsY=50, const double weight=1.0) const
fill the 2D histogram (book on demand)
bool histoExists(const std::string &title) const
check the existence AND validity of the histogram with given title
AIDA::IHistogram3D * book3D(const std::string &title, const double lowX=0, const double highX=100, const unsigned long binsX=10, const double lowY=0, const double highY=100, const unsigned long binsY=10, const double lowZ=0, const double highZ=100, const unsigned long binsZ=10) const
book the 3D histogram
AIDA::IHistogram1D * plot1D(const double value, const std::string &title, const double low, const double high, const unsigned long bins=100, const double weight=1.0) const
fill the 1D histogram (book on demand)
ID class for Histogram and Ntuples.
AIDA::IHistogram3D * histo3D(const std::string &title) const
access the EXISTING 3D histogram by title return the pointer to existing 3D histogram or NULL ...
AIDA::IHistogram1D * fill(AIDA::IHistogram1D *histo, const double value, const double weight, const std::string &title="") const
fill the 1D histogram with the value and weight