#include <SoHistogramCnv.h>
Public Member Functions | |
virtual bool | isValid () const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual const char * | getName () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual int | getDimension () const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual const char * | getLabel () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual void * | cast (const char *) const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual void * | nativeObject () const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual const char * | nativeObjectClass () const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual const char * | getInfos (const char *) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual const char * | getLegend () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual void | getBinsSumOfWeightsRange (float &, float &) const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual int | getAxisNumberOfBins () const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual float | getAxisMinimum () const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual float | getAxisMaximum () const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual float | getBinLowerEdge (int) const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual float | getBinUpperEdge (int) const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual int | getBinNumberOfEntries (int) const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual float | getBinSumOfWeights (int) const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual float | getBinBar (int) const |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
SoHistogramRep1D (const std::string &, const AIDA::IHistogram1D *) | |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual | ~SoHistogramRep1D () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
Private Attributes | |
std::string | fName |
std::string | fTitle |
const AIDA::IHistogram1D * | fHistogram |
std::string | fDataClass |
std::string | fInfos |
std::string | fLegend |
Definition at line 37 of file SoHistogramCnv.h.
SoHistogramRep1D::SoHistogramRep1D | ( | const std::string & | , | |
const AIDA::IHistogram1D * | ||||
) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 217 of file SoHistogramCnv.cpp.
00221 :fName(aName) 00222 ,fHistogram(aHistogram) 00223 ,fDataClass("AIDA::IHistogram1D") 00226 { 00227 }
SoHistogramRep1D::~SoHistogramRep1D | ( | ) | [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 229 of file SoHistogramCnv.cpp.
bool SoHistogramRep1D::isValid | ( | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 236 of file SoHistogramCnv.cpp.
const char * SoHistogramRep1D::getName | ( | ) | [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 244 of file SoHistogramCnv.cpp.
00248 { 00249 return fName.c_str(); 00250 }
int SoHistogramRep1D::getDimension | ( | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 261 of file SoHistogramCnv.cpp.
00265 { 00266 return fHistogram->dimension(); 00267 }
const char * SoHistogramRep1D::getLabel | ( | ) | [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 252 of file SoHistogramCnv.cpp.
00256 { 00257 fTitle = fHistogram->title(); 00258 return fTitle.c_str(); 00259 }
void * SoHistogramRep1D::cast | ( | const char * | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 269 of file SoHistogramCnv.cpp.
00274 { 00275 if(std::string(aClass)=="SbPlottableObject") { 00276 return (SbPlottableObject*)this; 00277 } else if(std::string(aClass)=="SbPlottableBins1D") { 00278 return (SbPlottableBins1D*)this; 00279 } else { 00280 return 0; 00281 } 00282 }
void * SoHistogramRep1D::nativeObject | ( | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 284 of file SoHistogramCnv.cpp.
00288 { 00289 return (void*)fHistogram; 00290 }
const char * SoHistogramRep1D::nativeObjectClass | ( | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 292 of file SoHistogramCnv.cpp.
00296 { 00297 return fDataClass.c_str(); 00298 }
const char * SoHistogramRep1D::getInfos | ( | const char * | ) | [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 382 of file SoHistogramCnv.cpp.
00387 { 00388 Lib::smanip::printf(fInfos,6 * 64, 00389 "\ 00390 N %d\n\ 00391 I %d\n\ 00392 m %g\n\ 00393 r %g\n\ 00394 u %d\n\ 00395 o %d",fHistogram->allEntries() 00396 ,fHistogram->entries() 00397 ,fHistogram->mean() 00398 ,fHistogram->rms() 00399 ,fHistogram->binEntries(AIDA::IAxis::UNDERFLOW_BIN) 00400 ,fHistogram->binEntries(AIDA::IAxis::OVERFLOW_BIN)); 00401 return fInfos.c_str(); 00402 }
const char * SoHistogramRep1D::getLegend | ( | ) | [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 404 of file SoHistogramCnv.cpp.
00408 { 00409 fLegend = fHistogram->annotation().value("Legend"); 00410 return fLegend.c_str(); 00411 }
void SoHistogramRep1D::getBinsSumOfWeightsRange | ( | float & | , | |
float & | ||||
) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 326 of file SoHistogramCnv.cpp.
00332 { 00333 aMin = (float)fHistogram->minBinHeight(); 00334 aMax = (float)fHistogram->maxBinHeight(); 00335 }
int SoHistogramRep1D::getAxisNumberOfBins | ( | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 302 of file SoHistogramCnv.cpp.
00306 { 00307 return fHistogram->axis().bins(); 00308 }
float SoHistogramRep1D::getAxisMinimum | ( | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 310 of file SoHistogramCnv.cpp.
00314 { 00315 return (float)fHistogram->axis().lowerEdge(); 00316 }
float SoHistogramRep1D::getAxisMaximum | ( | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 318 of file SoHistogramCnv.cpp.
00322 { 00323 return (float)fHistogram->axis().upperEdge(); 00324 }
float SoHistogramRep1D::getBinLowerEdge | ( | int | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 346 of file SoHistogramCnv.cpp.
00351 { 00352 return (float)fHistogram->axis().binLowerEdge(aI); 00353 }
float SoHistogramRep1D::getBinUpperEdge | ( | int | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 355 of file SoHistogramCnv.cpp.
00360 { 00361 return (float)fHistogram->axis().binUpperEdge(aI); 00362 }
int SoHistogramRep1D::getBinNumberOfEntries | ( | int | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 337 of file SoHistogramCnv.cpp.
00342 { 00343 return fHistogram->binEntries(aI); 00344 }
float SoHistogramRep1D::getBinSumOfWeights | ( | int | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 364 of file SoHistogramCnv.cpp.
00369 { 00370 return (float)fHistogram->binHeight(aI); 00371 }
float SoHistogramRep1D::getBinBar | ( | int | ) | const [virtual] |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 373 of file SoHistogramCnv.cpp.
00378 { 00379 return (float)fHistogram->binError(aI); 00380 }
std::string SoHistogramRep1D::fName [private] |
Definition at line 62 of file SoHistogramCnv.h.
std::string SoHistogramRep1D::fTitle [private] |
Definition at line 63 of file SoHistogramCnv.h.
const AIDA::IHistogram1D* SoHistogramRep1D::fHistogram [private] |
Definition at line 64 of file SoHistogramCnv.h.
std::string SoHistogramRep1D::fDataClass [private] |
Definition at line 65 of file SoHistogramCnv.h.
std::string SoHistogramRep1D::fInfos [private] |
Definition at line 66 of file SoHistogramCnv.h.
std::string SoHistogramRep1D::fLegend [private] |
Definition at line 67 of file SoHistogramCnv.h.