// RooAbsBinning is the abstract base class for RooRealVar binning definitions
// This class defines the interface to retrieve bin boundaries, ranges etc.
// END_HTML
#include "RooFit.h"
#include "RooAbsBinning.h"
#include "RooAbsReal.h"
#include "TClass.h"
#include "Riostream.h"
ClassImp(RooAbsBinning)
;
RooAbsBinning::RooAbsBinning(const char* name) : TNamed(name,name)
{
}
RooAbsBinning::~RooAbsBinning()
{
}
void RooAbsBinning::printName(ostream& os) const
{
os << GetName() ;
}
void RooAbsBinning::printTitle(ostream& os) const
{
os << GetTitle() ;
}
void RooAbsBinning::printClassName(ostream& os) const
{
os << IsA()->GetName() ;
}
void RooAbsBinning::printArgs(ostream& os) const
{
os << "[ " ;
if (lowBoundFunc()) {
os << "lowerBound=" << lowBoundFunc()->GetName() ;
}
if (highBoundFunc()) {
if (lowBoundFunc()) {
os << " " ;
}
os << "upperBound=" << highBoundFunc()->GetName() ;
}
os << " ]" ;
}
void RooAbsBinning::printValue(ostream &os) const
{
Int_t n = numBins() ;
os << "B(" ;
Int_t i ;
for (i=0 ; i<n ; i++) {
if (i>0) {
os << " : " ;
}
os << binLow(i) ;
}
os << " : " << binHigh(n-1) ;
os << ")" ;
}
void RooAbsBinning::Streamer(TBuffer &R__b)
{
UInt_t R__s, R__c;
if (R__b.IsReading()) {
Version_t R__v = R__b.ReadVersion(&R__s, &R__c); if (R__v) { }
if (R__v==1) {
TObject::Streamer(R__b);
} else {
TNamed::Streamer(R__b);
}
RooPrintable::Streamer(R__b);
R__b.CheckByteCount(R__s, R__c, RooAbsBinning::IsA());
} else {
R__c = R__b.WriteVersion(RooAbsBinning::IsA(), kTRUE);
TNamed::Streamer(R__b);
RooPrintable::Streamer(R__b);
R__b.SetByteCount(R__c, kTRUE);
}
}
Last change: Wed Jun 25 08:31:28 2008
Last generated: 2008-06-25 08:31
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.