57using std::ostream, std::string, std::pair, std::vector, std::setw;
74 _status(other._status),
75 _covQual(other._covQual),
76 _numBadNLL(other._numBadNLL),
77 _minNLL(other._minNLL),
82 _statusHistory(other._statusHistory)
90 if (other._randomPars) {
95 _Lt = std::make_unique<TMatrix>(*other._Lt);
132 for(
auto* rrv : dynamic_range_cast<RooRealVar*>(*
_constPars)) {
134 rrv->deleteSharedProperties() ;
149 for(
auto* rrv : dynamic_range_cast<RooRealVar*>(*
_initPars)) {
151 rrv->deleteSharedProperties() ;
167 for(
auto* rrv : dynamic_range_cast<RooRealVar*>(*
_finalPars)) {
169 rrv->deleteSharedProperties() ;
181 coutE(InputArguments) <<
"RooFitResult::statusCodeHistory(" <<
GetName()
182 <<
" ERROR request for status history slot "
183 << icycle <<
" exceeds history count of " <<
_statusHistory.size() << std::endl ;
195 coutE(InputArguments) <<
"RooFitResult::statusLabelHistory(" <<
GetName()
196 <<
" ERROR request for status history slot "
197 << icycle <<
" exceeds history count of " <<
_statusHistory.size() << std::endl ;
230 const char *options)
const
234 if(
nullptr == par1) {
235 coutE(InputArguments) <<
"RooFitResult::correlationPlot: parameter not floated in fit: " << parName1 << std::endl;
239 if(
nullptr == par2) {
240 coutE(InputArguments) <<
"RooFitResult::correlationPlot: parameter not floated in fit: " << parName2 << std::endl;
249 double x1= par1->getVal();
250 double x2= par2->getVal();
251 double s1= par1->getError();
252 double s2= par2->getError();
265 hline->SetLineColor(
kRed);
271 vline->SetLineColor(
kRed);
279 box->SetFillStyle(0);
338 for (
Int_t iPar = 0; iPar < nPar; iPar++) {
341 for (
Int_t k = 0; k < iPar; k++) {
342 double tmp = L(k, iPar);
343 L(iPar, iPar) -= tmp * tmp;
345 L(iPar, iPar) = sqrt(L(iPar, iPar));
347 for (
Int_t jPar = iPar + 1; jPar < nPar; jPar++) {
349 for (
Int_t k = 0; k < iPar; k++) {
350 L(iPar, jPar) -= L(k, iPar) * L(k, jPar);
352 L(iPar, jPar) /= L(iPar, iPar);
369 for(
auto * par : static_range_cast<RooRealVar*>(*
_randomPars)) {
370 par->setVal(par->getVal() +
g(
index++));
385 coutE(InputArguments) <<
"RooFitResult::correlation(" <<
GetName() <<
") parameter " << parname1 <<
" is not a floating fit parameter" << std::endl ;
389 coutE(InputArguments) <<
"RooFitResult::correlation(" <<
GetName() <<
") parameter " << parname2 <<
" is not a floating fit parameter" << std::endl ;
409 coutE(InputArguments) <<
"RooFitResult::correlation: variable " << parname <<
" not a floating parameter in fit" << std::endl ;
429 coutE(InputArguments) <<
"RooFitResult::globalCorr: variable " << parname <<
" not a floating parameter in fit" << std::endl ;
462 return (*
_CM)(row,col) ;
471 return (*
_VM)(row,col) ;
485 <<
indent <<
" RooFitResult: minimized FCN value: " <<
_minNLL <<
", estimated distance to minimum: " <<
_edm << std::endl
486 <<
indent <<
" covariance matrix quality: " ;
488 case -1 : os <<
"Unknown, matrix was externally provided" ; break ;
489 case 0 : os <<
"Not calculated at all" ; break ;
490 case 1 : os <<
"Approximation only, not accurate" ; break ;
491 case 2 : os <<
"Full matrix, but forced positive-definite" ; break ;
492 case 3 : os <<
"Full, accurate covariance matrix" ; break ;
495 os <<
indent <<
" Status : " ;
497 os << iter->first <<
"=" << iter->second <<
" " ;
499 os << std::endl << std::endl;
503 os <<
indent <<
" Constant Parameter Value " << std::endl
504 <<
indent <<
" -------------------- ------------" << std::endl ;
525 bool doAsymErr(
false) ;
534 os <<
indent <<
" Floating Parameter InitialValue FinalValue (+HiError,-LoError) GblCorr." << std::endl
535 <<
indent <<
" -------------------- ------------ ---------------------------------- --------" << std::endl ;
537 os <<
indent <<
" Floating Parameter InitialValue FinalValue +/- Error GblCorr." << std::endl
538 <<
indent <<
" -------------------- ------------ -------------------------- --------" << std::endl ;
551 os << (doAsymErr?
" ":
"") <<
" +/- " << setw(9) <<
Form(
"%9.2e",err) ;
564 os <<
indent <<
" Floating Parameter FinalValue +/- Error " << std::endl
565 <<
indent <<
" -------------------- --------------------------" << std::endl ;
571 <<
" +/- " << setw(9) <<
Form(
"%9.2e",err)
587 if (globalCC.empty() || corrs.GetNoElements() < 1 || covs.GetNoElements() < 1) {
588 coutI(Minimization) <<
"RooFitResult::fillCorrMatrix: number of floating parameters is zero, correlation matrix not filled" << std::endl ;
593 coutE(Minimization) <<
"RooFitResult::fillCorrMatrix: ERROR: list of initial parameters must be filled first" << std::endl ;
607 (*_GC)[i] = globalCC[i] ;
649 coutW(InputArguments) <<
"RooFitResult::globalCorr(" <<
GetName()
650 <<
") covariance matrix is singular, global correlation coefficients not available"
655 for (
Int_t i = 0; i <
n; i++) {
656 const double rho2 = 1.0 - 1.0 / invC(i, i);
657 (*_GC)[i] = rho2 > 0.0 ? std::sqrt(rho2) : 0.0;
673 _globalCorr = std::make_unique<RooArgList>(
"globalCorrelations");
677 std::string argName = arg->GetName();
678 std::string argTitle = arg->GetTitle();
679 std::string gcName =
"GC[" + argName +
"]";
680 std::string gcTitle = argTitle +
" Global Correlation";
681 _globalCorr->addOwned(std::make_unique<RooRealVar>(gcName.c_str(), gcTitle.c_str(), 0.));
688 std::string arg2Name = arg2->GetName();
689 std::string cName =
"C[" + argName +
"," + arg2Name +
"]";
690 std::string cTitle =
"Correlation between " + argName +
" and " + arg2Name;
691 corrMatrixRow->addOwned(std::make_unique<RooRealVar>(cName.c_str(), cTitle.c_str(), 0.));
697 for (
unsigned int i = 0; i < static_cast<unsigned int>(
_corrMatrix.
GetSize()) ; ++i) {
700 auto& gcVal =
static_cast<RooRealVar&
>((*_globalCorr)[i]);
705 for (
unsigned int it = 0; it < corrMatrixCol.size() ; ++it) {
706 auto& cVal =
static_cast<RooRealVar&
>(corrMatrixCol[it]);
707 double value = (*_CM)(i,it) ;
709 (*_CM)(i,it) =
value;
743void isIdenticalErrMsg(std::string
const& msgHead,
const RooAbsReal* tv,
const RooAbsReal* ov,
bool verbose) {
745 std::cout <<
"RooFitResult::isIdentical: " << msgHead <<
" " << tv->
GetName() <<
" differs in value:\t"
746 << tv->getVal() <<
" vs.\t" << ov->getVal()
747 <<
"\t(" << (tv->getVal()-ov->getVal())/ov->getVal() <<
")" << std::endl;
750void isErrorIdenticalErrMsg(std::string
const& msgHead,
const RooRealVar* tv,
const RooRealVar* ov,
bool verbose) {
752 std::cout <<
"RooFitResult::isIdentical: " << msgHead <<
" " << tv->GetName() <<
" differs in error:\t"
753 << tv->getError() <<
" vs.\t" << ov->getError()
754 <<
"\t(" << (tv->getError()-ov->getError())/ov->getError() <<
")" << std::endl;
770 auto deviation = [](
const double left,
const double right,
double tolerance){
771 return right != 0. ? std::abs((left - right)/right) >= tolerance : std::abs(left) >= tolerance;
774 auto compare = [&](
RooArgList const& pars,
RooArgList const& otherpars, std::string
const& prefix,
bool isVerbose) {
777 for (
auto * tv : static_range_cast<const RooAbsReal*>(pars)) {
778 auto ov =
static_cast<const RooAbsReal*
>(otherpars.find(tv->GetName())) ;
782 if(verbose) std::cout <<
"RooFitResult::isIdentical: cannot find " << prefix <<
" " << tv->
GetName() <<
" in reference" << std::endl ;
787 if (ov && deviation(tv->getVal(), ov->getVal(), tol)) {
788 isIdenticalErrMsg(prefix, tv, ov, isVerbose);
793 auto * rtv =
dynamic_cast<RooRealVar const*
>(tv);
794 auto * rov =
dynamic_cast<RooRealVar const*
>(ov);
796 if (ov && deviation(rtv->getError(), rov->getError(), tolErr)) {
797 isErrorIdenticalErrMsg(prefix, rtv, rov, isVerbose);
806 if (deviation(
_minNLL, other._minNLL, tol)) {
807 if(verbose) std::cout <<
"RooFitResult::isIdentical: minimized value of -log(L) is different " <<
_minNLL <<
" vs. " << other._minNLL << std::endl;
811 ret &= compare(*
_constPars, *other._constPars,
"constant parameter", verbose);
812 ret &= compare(*
_initPars, *other._initPars,
"initial parameter", verbose);
813 ret &= compare(*
_finalPars, *other._finalPars,
"final parameter", verbose);
833 auto deviationCorr = [tolCorr](
const double left,
const double right){
834 return std::abs(left - right) >= tolCorr;
841 other.fillGlobalCorr() ;
843 other.fillLegacyCorrMatrix() ;
845 for (std::size_t i=0 ; i<
_globalCorr->size() ; i++) {
849 if(verbose) std::cout <<
"RooFitResult::isIdentical: cannot find global correlation coefficient " << tv->
GetName() <<
" in reference" << std::endl ;
852 if (ov && deviationCorr(tv->getVal(), ov->getVal())) {
853 isIdenticalErrMsg(
"global correlation coefficient", tv, ov, verbose);
861 for (std::size_t i=0 ; i<row->
size() ; i++) {
863 auto ov =
static_cast<const RooAbsReal*
>(orow->find(tv->GetName())) ;
865 if(verbose) std::cout <<
"RooFitResult::isIdentical: cannot find correlation coefficient " << tv->
GetName() <<
" in reference" << std::endl ;
868 if (ov && deviationCorr(tv->getVal(), ov->getVal())) {
869 isIdenticalErrMsg(
"correlation coefficient", tv, ov, verbose);
889 oocoutE(
nullptr, InputArguments) <<
"RooFitResult::lastMinuitFit: ERROR: variable '" << arg->GetName()
890 <<
"' is not of type RooRealVar" << std::endl;
903 if (arg->isConstant()) {
906 floatPars.addClone(*arg);
911 r->setInitParList(floatPars);
912 r->setFinalParList(floatPars);
917 r->fillPrefitCorrMatrix();
948 (*_CM)(i,j) = (*
_CM)(i,j) / sqrt((*
_CM)(i,i)*(*
_CM)(j,j)) ;
973 for (
Int_t i = 0 ; i<
n ; i++) {
974 for (
Int_t j = 0 ; j<
n; j++) {
975 hh->Fill(i+0.5,
n-j-0.5,(*
_CM)(i,j)) ;
1016 coutW(InputArguments) <<
"RooFitResult::reducedCovarianceMatrix(" <<
GetName() <<
") WARNING input variable "
1017 << arg->GetName() <<
" was not a floating parameters in fit result and is ignored" << std::endl ;
1023 vector<int> indexMap(params2.size());
1024 for (std::size_t i=0 ; i<params2.size() ; i++) {
1026 assert(indexMap[i] < V.GetNrows());
1030 for (
int i = 0; i < Vred.GetNrows(); ++i) {
1031 for (
int j = 0; j < Vred.GetNcols(); ++j) {
1032 Vred(i,j) = V( indexMap[i], indexMap[j]);
1056 if (V.GetNcols()==
int(params.
size())) {
1060 double det = V.Determinant() ;
1063 coutE(Eval) <<
"RooFitResult::conditionalCovarianceMatrix(" <<
GetName() <<
") ERROR: covariance matrix is not positive definite (|V|="
1064 << det <<
") cannot reduce it" << std::endl ;
1065 throw string(
"RooFitResult::conditionalCovarianceMatrix() ERROR, input covariance matrix is not positive definite") ;
1074 coutW(InputArguments) <<
"RooFitResult::conditionalCovarianceMatrix(" <<
GetName() <<
") WARNING input variable "
1075 << arg->GetName() <<
" was not a floating parameters in fit result and is ignored" << std::endl ;
1082 if (params2.find(arg->GetName())) {
1111 TMatrixD S22bar = S11 - S12 * (S22Inv * S21) ;
1115 for (
int i=0 ; i<Vred.GetNcols() ; i++) {
1116 for (
int j=i ; j<Vred.GetNcols() ; j++) {
1117 Vred(i,j) = (S22bar(i,j) + S22bar(j,i))/2 ;
1118 Vred(j,i) = Vred(i,j) ;
1144 double det = V.Determinant() ;
1147 coutE(Eval) <<
"RooFitResult::createHessePdf(" <<
GetName() <<
") ERROR: covariance matrix is not positive definite (|V|="
1148 << det <<
") cannot construct p.d.f" << std::endl ;
1158 coutW(InputArguments) <<
"RooFitResult::createHessePdf(" <<
GetName() <<
") WARNING input variable "
1159 << arg->GetName() <<
" was not a floating parameters in fit result and is ignored" << std::endl ;
1166 if (params2.find(arg->GetName())) {
1187 mvg->addOwnedComponents(mu) ;
1215 for (
UInt_t i=0 ; i<map1.size() ; i++) {
1218 mu1.
add(*parclone) ;
1226 TMatrixD S22bar = S11 - S12 * (S22Inv * S21) ;
1230 for (
int i=0 ; i<Vred.GetNcols() ; i++) {
1231 for (
int j=i ; j<Vred.GetNcols() ; j++) {
1232 Vred(i,j) = (S22bar(i,j) + S22bar(j,i))/2 ;
1233 Vred(j,i) = Vred(i,j) ;
1241 ret->addOwnedComponents(mu1) ;
1329 if (!opt || strlen(opt)==0) {
1341 if (R__b.IsReading()) {
1344 Version_t R__v = R__b.ReadVersion(&R__s, &R__c);
1374 for (
unsigned int i = 0; i < (
unsigned int)
_CM->
GetNcols() ; ++i) {
1377 auto& gcVal =
static_cast<RooRealVar&
>((*_globalCorr)[i]);
1378 (*_GC)(i) = gcVal.
getVal() ;
1382 for (
unsigned int it = 0; it < (
unsigned int)
_CM->
GetNcols() ; ++it) {
1383 auto& cVal =
static_cast<RooRealVar&
>(corrMatrixCol[it]);
1384 double value = cVal.getVal() ;
1385 (*_CM)(it,i) =
value ;
1386 (*_CM)(i,it) =
value;
1388 (*_VM)(i,it) = (*
_VM)(it,i) ;
short Version_t
Class version identifier (short)
const char Option_t
Option string (const char)
static void indent(ostringstream &buf, int indent_level)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
TMatrixTSym< Double_t > TMatrixDSym
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
TVectorT< Double_t > TVectorD
TVectorT< Float_t > TVector
Common abstract base class for objects that represent a value and a "shape" in RooFit.
static void ioStreamerPass2Finalize()
Method called by workspace container to finalize schema evolution issues that cannot be handled in a ...
TObject * Clone(const char *newname=nullptr) const override
Make a clone of an object using the Streamer facility.
RooAbsCollection * snapshot(bool deepCopy=true) const
Take a snap shot of current collection contents.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
Int_t index(const RooAbsArg *arg) const
Returns index of given arg, or -1 if arg is not in the collection.
Storage_t::size_type size() const
virtual RooAbsArg * addClone(const RooAbsArg &var, bool silent=false)
Add a clone of the specified argument to list.
RooAbsArg * find(const char *name) const
Find object with given name in list.
Abstract interface for all probability density functions.
void setConstant(bool value=true)
Abstract base class for objects that represent a real value and implements functionality common to al...
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooAbsArg * at(Int_t idx) const
Return object at given index, or nullptr if index is out of range.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Utility base class for RooFit objects that are to be attached to ROOT directories.
virtual void Streamer(TBuffer &)
void removeFromDir(TObject *obj)
Remove object from directory it was added to.
TDirectory * _dir
! Associated directory
Two-dimensional ellipse that can be used to represent an error contour.
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
TMatrixDSym conditionalCovarianceMatrix(const RooArgList ¶ms) const
Return a reduced covariance matrix, which is calculated as.
double correlation(const RooAbsArg &par1, const RooAbsArg &par2) const
Return correlation between par1 and par2.
std::unique_ptr< RooArgList > _randomPars
! List of floating parameters with most recent random perturbation applied
~RooFitResult() override
Destructor.
TList _corrMatrix
! Correlation matrix (list of RooArgLists)
std::vector< std::pair< std::string, int > > _statusHistory
History of status codes.
const TMatrixDSym & covarianceMatrix() const
Return covariance matrix.
TMatrixDSym * _CM
Correlation matrix.
bool isIdentical(const RooFitResult &other, double tol=1e-6, double tolCorr=1e-4, bool verbose=true) const
Return true if this fit result is identical to other within tolerances.
void setConstParList(const RooArgList &list)
Fill the list of constant parameters.
Int_t statusCodeHistory(UInt_t icycle) const
void fillGlobalCorr() const
Compute the global correlation coefficients from the correlation matrix if they are not available yet...
void fillCorrMatrix(const std::vector< double > &globalCC, const TMatrixDSym &corrs, const TMatrixDSym &covs)
Function called by RooMinimizer.
double _minNLL
NLL at minimum.
Int_t _numBadNLL
Number calls with bad (zero,negative) likelihood.
TMatrixDSym * _VM
Covariance matrix.
void SetNameTitle(const char *name, const char *title) override
Change name and title of RooFitResult object.
Int_t defaultPrintContents(Option_t *opt) const override
Configure default contents to be printed.
void printClassName(std::ostream &os) const override
Print class name of fit result.
RooArgList * _initPars
List of floating parameters with initial values.
TClass * IsA() const override
RooFitResult(const char *name=nullptr, const char *title=nullptr)
Constructor with name and title.
TMatrixDSym reducedCovarianceMatrix(const RooArgList ¶ms) const
Return a reduced covariance matrix (Note that Vred is a simple sub-matrix of V, row/columns are order...
Int_t _covQual
MINUIT quality code of covariance matrix.
void fillPrefitCorrMatrix()
RooArgList * _constPars
List of constant parameters.
const RooArgList & randomizePars() const
Generate random perturbations of the final parameters using the covariance matrix.
std::unique_ptr< TMatrixF > _Lt
! triangular matrix used for generate random perturbations
const RooArgList * globalCorr()
Return the list of all global correlations.
static RooFitResult * prefitResult(const RooArgList ¶mList)
Import the results of the last fit performed by gMinuit, interpreting the fit parameters as the given...
void setCovarianceMatrix(TMatrixDSym &V)
Store externally provided correlation matrix in this RooFitResult ;.
RooArgList * _finalPars
List of floating parameters with final values.
const RooArgList & constPars() const
Return list of constant parameters.
Int_t _status
MINUIT status code.
bool isIdenticalNoCov(const RooFitResult &other, double tol=1e-6, double tolErr=1e-3, bool verbose=true) const
Return true if this fit result is identical to other within tolerances, ignoring the correlation matr...
void SetName(const char *name) override
Change name of RooFitResult object.
std::unique_ptr< RooArgList > _globalCorr
! List of global correlation coefficients
const char * statusLabelHistory(UInt_t icycle) const
void printValue(std::ostream &os) const override
Print the value of the fit result, i.e.g the status, minimized FCN, edm and covariance quality code.
void printTitle(std::ostream &os) const override
Print title of fit result.
TH2 * correlationHist(const char *name="correlation_matrix") const
Return TH2D of correlation matrix.
void fillLegacyCorrMatrix() const
Sanity check.
void setInitParList(const RooArgList &list)
Fill the list of initial values of the floating parameters.
RooPlot * plotOn(RooPlot *frame, const RooAbsArg &par1, const RooAbsArg &par2, const char *options="ME") const
Add objects to a 2D plot.
void Streamer(TBuffer &) override
Stream an object of class RooFitResult.
StyleOption defaultPrintStyle(Option_t *opt) const override
Configure mapping of Print() arguments to RooPrintable print styles.
double covariance(Int_t row, Int_t col) const
Return the covariance matrix element addressed with numeric indices.
const RooArgList & floatParsFinal() const
Return list of floating parameters after fit.
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Print fit result to stream 'os'.
TVectorD * _GC
Global correlation coefficients, computed on demand if not set.
RooAbsPdf * createHessePdf(const RooArgSet ¶ms) const
Return a p.d.f that represents the fit result as a multi-variate probability densisty function on the...
double _edm
Estimated distance to minimum.
void setFinalParList(const RooArgList &list)
Fill the list of final values of the floating parameters.
void printArgs(std::ostream &os) const override
Print arguments of fit result, i.e. the parameters of the fit.
void printName(std::ostream &os) const override
Print name of fit result.
const TMatrixDSym & correlationMatrix() const
Return correlation matrix ;.
Multivariate Gaussian p.d.f.
static void blockDecompose(const TMatrixD &input, const std::vector< int > &map1, const std::vector< int > &map2, TMatrixDSym &S11, TMatrixD &S12, TMatrixD &S21, TMatrixDSym &S22)
Block decomposition of covI according to given maps of observables.
Plot frame and a container for graphics objects within that frame.
void addObject(TObject *obj, Option_t *drawOptions="", bool invisible=false)
Add a generic object to this plot.
void addPlotable(RooPlotable *plotable, Option_t *drawOptions="", bool invisible=false, bool refreshNorm=false)
Add the specified plotable object to our plot.
A 'mix-in' base class that define the standard RooFit plotting and printing methods.
virtual StyleOption defaultPrintStyle(Option_t *opt) const
virtual void Streamer(TBuffer &)
virtual void printValue(std::ostream &os) const
Interface to print value of object.
static double gaussian(TRandom *generator=randomGenerator())
Return a Gaussian random variable with mean 0 and variance 1.
Variable that can be changed from the outside.
void setVal(double value) override
Set value of variable to 'value'.
bool hasAsymError(bool allowZero=true) const
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Buffer base class used for serializing objects.
virtual void RemoveAll(TCollection *col)
Remove all objects in collection col from this collection.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
virtual TList * GetList() const
2-D histogram with a double per channel (see TH1 documentation)
Service class for 2-D histogram classes.
Use the TLine constructor to create a simple line.
void Streamer(TBuffer &) override
Stream all objects in the collection to or from the I/O buffer.
void Add(TObject *obj) override
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
void Streamer(TBuffer &) override
Stream an object of class TObject.
const char * GetTitle() const override
Returns title of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
void ToUpper()
Change string to upper case.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)