XML interfate to binning schemes, for use with the unfolding algorithm TUnfoldDensity.
Binning schemes are used to map analysis bins on a single histogram axis and back. The analysis bins may include unconnected bins (e.g nuisances for background normalisation) or various multidimensional histograms (signal bins, differential background normalisation bins, etc).
If you use this software, please consider the following citation
S.Schmitt, JINST 7 (2012) T10003 [arXiv:1205.6201]
Detailed documentation and updates are available on http://www.desy.de/~sschmitt
Please consult the documentation of the class TUnfoldBinning about how to use binning schemes. This class provides methods to read and write binning schemes in the XML language. There is also a method which writes out a dtd file for validation.
The example below encodes two binning schemes, detector and generator. The detecor scheme consists of a single, three-dimensional distribution (pt,eta,discriminator). The generator scheme consists of two two-dimensional distributions, signal and background.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE TUnfoldBinning SYSTEM "tunfoldbinning.dtd"> <TUnfoldBinning> <BinningNode name="detector" firstbin="1" factor="1"> <BinningNode name="detectordistribution" firstbin="1" factor="1"> <Bin repeat="3" width="0.5" > <Bin repeat="3" width="1" > <Bin width="2" > <Bin width="3" > <Bin location="overflow"> <Bin repeat="2" width="0.5" > <Bin width="1" > <Bin repeat="4" width="0.5" > <Bin width="1" > <Bin repeat="2" width="0.5" > <Bin width="0.15" > <Bin repeat="2" width="0.35" > <Bin width="0.15" > </Axis> </Axis> </Axis> </BinningNode> </BinningNode> <BinningNode name="generator" firstbin="1" factor="1"> <BinningNode name="signal" firstbin="1" factor="1"> <Bin location="underflow" > <Bin width="1" > <Bin width="2" > <Bin width="3" > <Bin location="overflow" > <Bin location="underflow" > <Bin width="1.5" > <Bin width="1" > <Bin width="1.5" > <Bin location="overflow" > </Axis> </Axis> </BinningNode> <BinningNode name="background" firstbin="26" factor="1"> <Bin repeat="3" width="0.5" > <Bin repeat="3" width="1" > <Bin width="2" > <Bin width="3" > <Bin location="overflow" > <Bin repeat="2" width="0.5" > <Bin width="1" > <Bin repeat="4" width="0.5" > <Bin width="1" > <Bin repeat="2" width="0.5" > </Axis> </Axis> </BinningNode> </BinningNode> </TUnfoldBinning>
Definition at line 59 of file TUnfoldBinningXML.h.
Public Types | |
| enum | { MAXDIM =32 } |
| enum | { kSingleKey = (1ULL << (0)) , kOverwrite = (1ULL << (1)) , kWriteDelete = (1ULL << (2)) } |
| enum | { kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 , kBitMask = 0x00ffffff } |
| enum | EDeprecatedStatusBits { kObjInCanvas = (1ULL << (3)) } |
| enum | EStatusBits { kCanDelete = (1ULL << (0)) , kMustCleanup = (1ULL << (3)) , kIsReferenced = (1ULL << (4)) , kHasUUID = (1ULL << (5)) , kCannotPick = (1ULL << (6)) , kNoContextMenu = (1ULL << (8)) , kInvalidObject = (1ULL << (13)) } |
Public Member Functions | |
| TUnfoldBinningXML (const char *name=nullptr, Int_t nBins=0, const char *binNames=nullptr) | |
| construct a new binning scheme, for use with the root streamer | |
| void | AbstractMethod (const char *method) const |
| Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it. | |
| Bool_t | AddAxis (const char *name, Int_t nBins, const Double_t *binBorders, Bool_t hasUnderflow, Bool_t hasOverflow) |
| add an axis with the specified bin borders | |
| Bool_t | AddAxis (const char *name, Int_t nBins, Double_t xMin, Double_t xMax, Bool_t hasUnderflow, Bool_t hasOverflow) |
| add an axis with equidistant bins | |
| Bool_t | AddAxis (const TAxis &axis, Bool_t includeUnderflow, Bool_t includeOverflow) |
| add an axis to the distribution, using the TAxis as blueprint | |
| TUnfoldBinning * | AddBinning (const char *name, Int_t nBins=0, const char *binNames=nullptr) |
| add a new binning node as last last child of this node | |
| TUnfoldBinning * | AddBinning (TUnfoldBinning *binning) |
| add a TUnfoldBinning as the last child of this node | |
| virtual void | AppendPad (Option_t *option="") |
| Append graphics object to current pad. | |
| virtual void | Browse (TBrowser *b) |
| Browse object. May be overridden for another default action. | |
| ULong_t | CheckedHash () |
| Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. | |
| virtual const char * | ClassName () const |
| Returns name of class to which the object belongs. | |
| void | Clear (Option_t *option="") override |
| Set name and title to empty strings (""). | |
| TObject * | Clone (const char *newname="") const override |
| Make a clone of an object using the Streamer facility. | |
| Int_t | Compare (const TObject *obj) const override |
| Compare two TNamed objects. | |
| void | Copy (TObject &named) const override |
| Copy this to obj. | |
| Int_t * | CreateEmptyBinMap (void) const |
| create an empty bin map, useful together with the getter methods of class TUnfold and TUnfoldSys | |
| TH2D * | CreateErrorMatrixHistogram (const char *histogramName, Bool_t originalAxisBinning, Int_t **binMap=nullptr, const char *histogramTitle=nullptr, const char *axisSteering=nullptr) const |
| create a TH2D histogram capable to hold a covariance matrix | |
| TH1 * | CreateHistogram (const char *histogramName, Bool_t originalAxisBinning=kFALSE, Int_t **binMap=nullptr, const char *histogramTitle=nullptr, const char *axisSteering=nullptr) const |
| create a THxx histogram capable to hold the bins of this binning node and its children | |
| void | DecodeAxisSteering (const char *axisSteering, const char *options, Int_t *isOptionGiven) const |
| decode axis steering | |
| virtual void | Delete (Option_t *option="") |
| Delete this object. | |
| virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
| Computes distance from point (px,py) to the object. | |
| virtual void | Draw (Option_t *option="") |
| Default Draw method for all objects. | |
| virtual void | DrawClass () const |
| Draw class inheritance tree of the class to which this object belongs. | |
| virtual TObject * | DrawClone (Option_t *option="") const |
| Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1). | |
| virtual void | Dump () const |
| Dump contents of object on stdout. | |
| virtual void | Error (const char *method, const char *msgfmt,...) const |
| Issue error message. | |
| virtual void | Execute (const char *method, const char *params, Int_t *error=nullptr) |
| Execute method on this object with the given parameter string, e.g. | |
| virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr) |
| Execute method on this object with parameters stored in the TObjArray. | |
| virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
| Execute action corresponding to an event at (px,py). | |
| Int_t | ExportXML (const char *fileName) const |
| export this binning scheme to a file | |
| TH1 * | ExtractHistogram (const char *histogramName, const TH1 *globalBins, const TH2 *globalBinsEmatrix=nullptr, Bool_t originalAxisBinning=kTRUE, const char *axisSteering=nullptr) const |
| virtual void | Fatal (const char *method, const char *msgfmt,...) const |
| Issue fatal error message. | |
| Int_t | FillBinMap1D (Int_t *binMap, const char *axisSteering, Int_t firstBinX) const |
| map all global bins referenced by this node to the one-dimensional histogram destHist, starting with bin firstBinX | |
| virtual void | FillBuffer (char *&buffer) |
| Encode TNamed into output buffer. | |
| TUnfoldBinning const * | FindNode (char const *name) const |
| traverse the tree and return the first node which matches the given name | |
| virtual TObject * | FindObject (const char *name) const |
| Must be redefined in derived classes. | |
| virtual TObject * | FindObject (const TObject *obj) const |
| Must be redefined in derived classes. | |
| virtual Double_t | GetBinFactor (Int_t iBin) const |
| return scaling factor for the given global bin number | |
| TString | GetBinName (Int_t iBin) const |
| get the name of a bin | |
| Int_t | GetBinNeighbours (Int_t globalBin, Int_t axis, Int_t *prev, Double_t *distPrev, Int_t *next, Double_t *distNext, Bool_t isPeriodic=kFALSE) const |
| get neighbour bins along the specified axis | |
| Double_t | GetBinSize (Int_t iBin) const |
| get N-dimensional bin size | |
| void | GetBinUnderflowOverflowStatus (Int_t iBin, Int_t *uStatus, Int_t *oStatus) const |
| return bit maps indicating underflow and overflow status | |
| TUnfoldBinning * | GetChildNode (void) |
| TUnfoldBinning const * | GetChildNode (void) const |
| first daughter node | |
| virtual Double_t | GetDistributionAverageBinSize (Int_t axis, Bool_t includeUnderflow, Bool_t includeOverflow) const |
| get average bin size on the specified axis | |
| TString | GetDistributionAxisLabel (Int_t axis) const |
| get name of an axis | |
| virtual Double_t | GetDistributionBinCenter (Int_t axis, Int_t bin) const |
| return bin center for a given axis and bin number | |
| TVectorD const * | GetDistributionBinning (Int_t axis) const |
| get vector of bin borders for one axis | |
| Int_t | GetDistributionDimension (void) const |
| query dimension of this node's distribution | |
| Int_t | GetDistributionNumberOfBins (void) const |
| number of bins in the distribution possibly including under/overflow | |
| virtual Double_t | GetDistributionOverflowBinWidth (Int_t axis) const |
| return bin width assigned to the overflow bin | |
| virtual Double_t | GetDistributionUnderflowBinWidth (Int_t axis) const |
| return bin width assigned to the underflow bin | |
| virtual Option_t * | GetDrawOption () const |
| Get option used by the graphics system to draw this object. | |
| Int_t | GetEndBin (void) const |
| last+1 bin of this node (includes children) | |
| Int_t | GetGlobalBinNumber (const Double_t *x, Int_t *isBelow=nullptr, Int_t *isAbove=nullptr) const |
| locate a bin in an N-dimensional distribution | |
| Int_t | GetGlobalBinNumber (Double_t x) const |
| locate a bin in a one-dimensional distribution | |
| Int_t | GetGlobalBinNumber (Double_t x, Double_t y) const |
| locate a bin in a two-dimensional distribution | |
| Int_t | GetGlobalBinNumber (Double_t x, Double_t y, Double_t z) const |
| locate a bin in a three-dimensional distribution | |
| Int_t | GetGlobalBinNumber (Double_t x0, Double_t x1, Double_t x2, Double_t x3) const |
| locate a bin in a four-dimensional distribution | |
| Int_t | GetGlobalBinNumber (Double_t x0, Double_t x1, Double_t x2, Double_t x3, Double_t x4) const |
| locate a bin in a five-dimensional distribution | |
| Int_t | GetGlobalBinNumber (Double_t x0, Double_t x1, Double_t x2, Double_t x3, Double_t x4, Double_t x5) const |
| locate a bin in a six-dimensional distribution | |
| Double_t | GetGlobalFactor (void) const |
| return global scaling factor for this node | |
| virtual const char * | GetIconName () const |
| Returns mime type name of object. | |
| const char * | GetName () const override |
| Returns name of object. | |
| TUnfoldBinning * | GetNextNode (void) |
| TUnfoldBinning const * | GetNextNode (void) const |
| next sister node | |
| virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
| Returns string containing info about the object at position (px,py). | |
| virtual Option_t * | GetOption () const |
| TUnfoldBinning * | GetParentNode (void) |
| TUnfoldBinning const * | GetParentNode (void) const |
| mother node | |
| TUnfoldBinning const * | GetPrevNode (void) const |
| previous sister node | |
| TUnfoldBinning const * | GetRootNode (void) const |
| return root node of the binnig scheme | |
| Int_t | GetStartBin (void) const |
| first bin of this node | |
| Int_t | GetTH1xNumberOfBins (Bool_t originalAxisBinning=kTRUE, const char *axisSteering=nullptr) const |
| return the number of histogram bins required when storing this binning in a one-dimensional histogram | |
| const char * | GetTitle () const override |
| Returns title of object. | |
| const TObjString * | GetUnconnectedBinName (Int_t bin) const |
| return the bin names of unconnected bins | |
| virtual UInt_t | GetUniqueID () const |
| Return the unique object id. | |
| virtual Bool_t | HandleTimer (TTimer *timer) |
| Execute action in response of a timer timing out. | |
| ULong_t | Hash () const override |
| Return hash value for this object. | |
| Bool_t | HasInconsistentHash () const |
| Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. | |
| Bool_t | HasOverflow (int axis) const |
| check whether the axis has an overflow bin | |
| Bool_t | HasUnconnectedBins (void) const |
| check whether there are bins but no axis | |
| Bool_t | HasUnderflow (int axis) const |
| check whether an axis has an underflow bin | |
| virtual void | Info (const char *method, const char *msgfmt,...) const |
| Issue info message. | |
| virtual Bool_t | InheritsFrom (const char *classname) const |
| Returns kTRUE if object inherits from class "classname". | |
| virtual Bool_t | InheritsFrom (const TClass *cl) const |
| Returns kTRUE if object inherits from TClass cl. | |
| virtual void | Inspect () const |
| Dump contents of this object in a graphics canvas. | |
| void | InvertBit (UInt_t f) |
| TClass * | IsA () const override |
| virtual Bool_t | IsBinFactorGlobal (void) const |
| check whether there is only a global scaling factor for this node | |
| Bool_t | IsDestructed () const |
| IsDestructed. | |
| virtual Bool_t | IsEqual (const TObject *obj) const |
| Default equal comparison (objects are equal if they have the same address in memory). | |
| virtual Bool_t | IsFolder () const |
| Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). | |
| Bool_t | IsOnHeap () const |
| Bool_t | IsSortable () const override |
| Bool_t | IsZombie () const |
| void | ls (Option_t *option="") const override |
| List TNamed name and title. | |
| void | MayNotUse (const char *method) const |
| Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). | |
| virtual Bool_t | Notify () |
| This method must be overridden to handle object notification (the base implementation is no-op). | |
| void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
| Use this method to declare a method obsolete. | |
| void | operator delete (void *, size_t) |
| Operator delete for sized deallocation. | |
| void | operator delete (void *ptr) |
| Operator delete. | |
| void | operator delete (void *ptr, void *vp) |
| Only called by placement new when throwing an exception. | |
| void | operator delete[] (void *, size_t) |
| Operator delete [] for sized deallocation. | |
| void | operator delete[] (void *ptr) |
| Operator delete []. | |
| void | operator delete[] (void *ptr, void *vp) |
| Only called by placement new[] when throwing an exception. | |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz, void *vp) |
| void * | operator new[] (size_t sz) |
| void * | operator new[] (size_t sz, void *vp) |
| virtual void | Paint (Option_t *option="") |
| This method must be overridden if a class wants to paint itself. | |
| virtual void | Pop () |
| Pop on object drawn in a pad to the top of the display list. | |
| void | Print (Option_t *option="") const override |
| Print TNamed name and title. | |
| void | PrintStream (std::ostream &out, Int_t indent=0, int debug=0) const |
| print some information about this binning tree | |
| virtual Int_t | Read (const char *name) |
| Read contents of object with specified name from the current directory. | |
| virtual void | RecursiveRemove (TObject *obj) |
| Recursively remove this object from a list. | |
| void | ResetBit (UInt_t f) |
| virtual void | SaveAs (const char *filename="", Option_t *option="") const |
| Save this object in the file specified by filename. | |
| virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
| Save a primitive as a C++ statement(s) on output stream "out". | |
| void | SetBinFactorFunction (Double_t normalisation, TF1 *userFunc=nullptr) |
| set normalisation factor and function which are used in calls to GetBinFactor() | |
| void | SetBinMapEntry (Int_t *binMap, Int_t globalBin, Int_t destBin) const |
| set one entry in a bin map | |
| void | SetBit (UInt_t f) |
| void | SetBit (UInt_t f, Bool_t set) |
| Set or unset the user status bits as specified in f. | |
| virtual void | SetDrawOption (Option_t *option="") |
| Set drawing option for 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 void | SetTitle (const char *title="") |
| Set the title of the TNamed. | |
| virtual void | SetUniqueID (UInt_t uid) |
| Set the unique object id. | |
| virtual Int_t | Sizeof () const |
| Return size of the TNamed part of the TObject. | |
| void | Streamer (TBuffer &) override |
| Stream an object of class TObject. | |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
| virtual void | SysError (const char *method, const char *msgfmt,...) const |
| Issue system error message. | |
| Bool_t | TestBit (UInt_t f) const |
| Int_t | TestBits (UInt_t f) const |
| virtual void | UseCurrentStyle () |
| Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. | |
| virtual void | Warning (const char *method, const char *msgfmt,...) const |
| Issue warning message. | |
| virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) |
| Write this object to the current directory. | |
| virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const |
| Write this object to the current directory. | |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static TH2D * | CreateHistogramOfMigrations (TUnfoldBinning const *xAxis, TUnfoldBinning const *yAxis, char const *histogramName, Bool_t originalXAxisBinning=kFALSE, Bool_t originalYAxisBinning=kFALSE, char const *histogramTitle=nullptr) |
| create a TH2D histogram capable to hold the bins of the two input binning schemes on the x and y axes, respectively | |
| static const char * | DeclFileName () |
| static Int_t | ExportXML (const TUnfoldBinning &binning, std::ostream &out, Bool_t writeHeader, Bool_t writeFooter, Int_t indent=0) |
| export a binning scheme to a stream in XML format | |
| static Longptr_t | GetDtorOnly () |
| Return destructor only flag. | |
| static Bool_t | GetObjectStat () |
| Get status of object stat flag. | |
| static TUnfoldBinningXML * | ImportXML (const TXMLDocument *document, const char *name) |
| import a binning scheme from an XML file | |
| static void | SetDtorOnly (void *obj) |
| Set destructor only flag. | |
| static void | SetObjectStat (Bool_t stat) |
| Turn on/off tracking of objects in the TObjectTable. | |
| static void | WriteDTD (const char *fileName="tunfoldbinning.dtd") |
| write dtd file | |
| static void | WriteDTD (std::ostream &out) |
| write dtd file | |
Protected Types | |
| enum | { kOnlyPrepStep = (1ULL << (3)) } |
Protected Member Functions | |
| void | AddAxisXML (TXMLNode *node) |
| import axis from XML node | |
| TString | BuildHistogramTitle (const char *histogramName, const char *histogramTitle, Int_t const *axisList) const |
| construct a title | |
| TString | BuildHistogramTitle2D (const char *histogramName, const char *histogramTitle, Int_t xAxis, const TUnfoldBinning *yAxisBinning, Int_t yAxis) const |
| construct a histogram title for a 2D histogram with different binning schemes on x and y axis | |
| Int_t * | CreateBinMap (const TH1 *hist, Int_t nDim, const Int_t *axisList, const char *axisSteering) const |
| create mapping from global bin number to a histogram for this node | |
| virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
| Interface to ErrorHandler (protected). | |
| Int_t | FillBinMapRecursive (Int_t startBin, const char *axisSteering, Int_t *binMap) const |
| recursively fill bin map | |
| Int_t | FillBinMapSingleNode (const TH1 *hist, Int_t startBin, Int_t nDim, const Int_t *axisList, const char *axisSteering, Int_t *binMap) const |
| fill bin map for a single node | |
| const TUnfoldBinning * | GetNonemptyNode (void) const |
| find a node which has non-empty distributions if there is none or if there are many, return zero | |
| const TUnfoldBinning * | GetNonemptyNode_r (int &count) const |
| TUnfoldBinning * | GetRootNode (void) |
| return root node | |
| Int_t | GetTHxxBinning (Int_t maxDim, Int_t *axisBins, Int_t *axisList, const char *axisSteering) const |
| calculate properties of a THxx histogram to store this binning | |
| Int_t | GetTHxxBinningSingleNode (Int_t maxDim, Int_t *axisBins, Int_t *axisList, const char *axisSteering) const |
| get the properties of a histogram capable to hold the distribution attached to this node | |
| Int_t | GetTHxxBinsRecursive (const char *axisSteering) const |
| calculate number of bins required to store this binning with teh given axisSteering | |
| void | Initialize (Int_t nBins) |
| initialize variables for a given number of bins | |
| void | MakeZombie () |
| void | SavePrimitiveNameTitle (std::ostream &out, const char *variable_name) |
| Save object name and title into the output stream "out". | |
| void | SetBinFactor (Double_t normalisation, TObject *factors) |
| set normalisation factors which are used in calls to GetBinFactor() | |
| TUnfoldBinning const * | ToAxisBins (Int_t globalBin, Int_t *axisBins) const |
| return distribution in which the bin is located and bin numbers on the corresponding axes | |
| Int_t | ToGlobalBin (Int_t const *axisBins, Int_t *isBelow=nullptr, Int_t *isAbove=nullptr) const |
| get global bin number, given axis bin numbers | |
| Int_t | UpdateFirstLastBin (Bool_t startWithRootNode=kTRUE) |
| update fFirstBin and fLastBin members of this node and its children | |
Static Protected Member Functions | |
| static TUnfoldBinningXML * | ImportXMLNode (TXMLNode *node) |
| recursively import one node from the XML tree | |
| static void | SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE) |
| Save object constructor in the output stream "out". | |
| static void | SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr) |
| Save invocation of primitive Draw() method Skipped if option contains "nodraw" string. | |
| static TString | SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0) |
| Save array in the output stream "out" as vector. | |
Protected Attributes | |
| TUnfoldBinning * | childNode |
| first daughter node | |
| TObjArray * | fAxisLabelList |
| for each axis its name (TObjString), or names of unconnected bins | |
| TObjArray * | fAxisList |
| for each axis the bin borders (TVectorD) | |
| Double_t | fBinFactorConstant |
| common scale factor for all bins of this node | |
| TObject * | fBinFactorFunction |
| function to calculate a scale factor from bin centres (may be a TF1 or a TVectorD | |
| Int_t | fDistributionSize |
| number of bins in this node's distribution | |
| Int_t | fFirstBin |
| global bin number of the first bin | |
| Int_t | fHasOverflow |
| bit fields indicating whether there are overflow bins on the axes | |
| Int_t | fHasUnderflow |
| bit fields indicating whether there are underflow bins on the axes | |
| Int_t | fLastBin |
| global bin number of the last(+1) bin, including daughters | |
| TString | fName |
| TString | fTitle |
| TUnfoldBinning * | nextNode |
| next sister | |
| TUnfoldBinning * | parentNode |
| mother node | |
| TUnfoldBinning * | prevNode |
| previous sister | |
Static Private Member Functions | |
| static void | AddToTObjectTable (TObject *) |
| Private helper function which will dispatch to TObjectTable::AddObj. | |
Private Attributes | |
| UInt_t | fBits |
| bit field status word | |
| UInt_t | fUniqueID |
| object unique identifier | |
Static Private Attributes | |
| static Longptr_t | fgDtorOnly = 0 |
| object for which to call dtor only (i.e. no delete) | |
| static Bool_t | fgObjectStat = kTRUE |
| if true keep track of objects in TObjectTable | |
#include <TUnfoldBinningXML.h>
|
inherited |
| Enumerator | |
|---|---|
| MAXDIM | maximum numner of axes per distribution |
Definition at line 88 of file TUnfoldBinning.h.
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
construct a new binning scheme, for use with the root streamer
Definition at line 69 of file TUnfoldBinningXML.h.
|
inherited |
Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.
In other word, this method acts as a "runtime purely virtual" warning instead of a "compiler purely virtual" error.
Definition at line 1149 of file TObject.cxx.
|
inherited |
add an axis with the specified bin borders
| [in] | name | name of the axis |
| [in] | nBin | number of bins |
| [in] | binBorders | array of bin borders, with nBin+1 elements |
| [in] | hasUnderflow | decide whether the axis has an underflow bin |
| [in] | hasOverflow | decide whether the axis has an overflow bin |
returns true if the axis has been added
Definition at line 370 of file TUnfoldBinning.cxx.
|
inherited |
add an axis with equidistant bins
| [in] | name | name of the axis |
| [in] | nBin | number of bins |
| [in] | xMin | lower edge of the first bin |
| [in] | xMax | upper edge of the last bin |
| [in] | hasUnderflow | decide whether the axis has an underflow bin |
| [in] | hasOverflow | decide whether the axis has an overflow bin |
returns true if the axis has been added
Definition at line 310 of file TUnfoldBinning.cxx.
|
inherited |
add an axis to the distribution, using the TAxis as blueprint
| [in] | axis | blueprint of the axis |
| [in] | hasUnderflow | decide whether the underflow bin should be included |
| [in] | hasOverflow | decide whether the overflow bin should be included |
returns true if the axis has been added Note: axis labels are not imported
Definition at line 345 of file TUnfoldBinning.cxx.
|
protected |
import axis from XML node
| [in] | node | node in the XML document tree |
Definition at line 376 of file TUnfoldBinningXML.cxx.
|
inherited |
add a new binning node as last last child of this node
| [in] | name | name of the node |
| [in] | nBin | number of extra bins |
| [in] | binNames | (optional) names of the bins sepatared by ';' |
this is a shortcut for AddBinning(new TUnfoldBinning(name,nBins,binNames))
Definition at line 244 of file TUnfoldBinning.cxx.
|
inherited |
add a TUnfoldBinning as the last child of this node
| [in] | binning | the new binning to be added |
return value: if succeeded, return "binning" otherwise return 0
Definition at line 257 of file TUnfoldBinning.cxx.
|
staticprivateinherited |
Private helper function which will dispatch to TObjectTable::AddObj.
Included here to avoid circular dependency between header files.
Definition at line 195 of file TObject.cxx.
|
virtualinherited |
Append graphics object to current pad.
In case no current pad is set yet, create a default canvas with the name "c1".
Definition at line 204 of file TObject.cxx.
|
virtualinherited |
Browse object. May be overridden for another default action.
Reimplemented in RooPlot, ROOT::Experimental::XRooFit::xRooNode, ROOT::Internal::THnBaseBrowsable, TApplicationRemote, TASImage, TAxis3D, TBaseClass, TBranch, TBranchClones, TBranchElement, TBranchObject, TBranchSTL, TBrowserObject, TCanvas, TChain, TClass, TCollection, TCollectionPropertyBrowsable, TDatabasePDG, TDirectory, TDirectoryFile, TEfficiency, TF1, TFolder, TGenerator, TGeoManager, TGeometry, TGeoNode, TGeoOverlap, TGeoTrack, TGeoVolume, TGraph2D, TGraph, TH1, THbookBranch, THbookFile, THbookKey, THnBase, THStack, TKey, TKeyMapFile, TLeaf, TMacro, TMapFile, TMultiDimFit, TMultiGraph, TNode, TNtuple, TNtupleD, TPad, TPair, TParticleClassPDG, TPrincipal, TRecorder, TRemoteObject, TROOT, TRootIconList, TSPlot, TStyle, TSystemDirectory, TSystemFile, TTask, TTree, TTreePerfStats, and TVirtualBranchBrowsable.
Definition at line 218 of file TObject.cxx.
|
protectedinherited |
construct a title
| [in] | histogramName | distribution name |
| [in] | histogramTitle | default title |
| [in] | axisList | array indicating wqhich axis of this node is mapped to which histogram axis |
if histogramTitle!=nullptr thsi title is used. Otherwise, the title is composed as: histogramName;axisname[axisList[0]];axisname[axisList[1]];...
Definition at line 575 of file TUnfoldBinning.cxx.
|
protectedinherited |
construct a histogram title for a 2D histogram with different binning schemes on x and y axis
| [in] | histogramName | distribution name |
| [in] | histogramTitle | default title |
| [in] | xAxis | indicates which x-axis name to use |
| [in] | yAxisBinning | binning scheme for y-axis |
| [in] | yAxis | indicates which y-axis name to use |
Definition at line 610 of file TUnfoldBinning.cxx.
|
inlineinherited |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
The intent is for this routine to be called instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();
(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.
|
static |
|
static |
|
inlinestaticconstexpr |
Definition at line 76 of file TUnfoldBinningXML.h.
|
virtualinherited |
Returns name of class to which the object belongs.
Definition at line 227 of file TObject.cxx.
|
overridevirtualinherited |
Set name and title to empty strings ("").
Reimplemented from TObject.
Reimplemented in TPrincipal, TProcessID, TStreamerInfo, TTask, TVirtualFitter, and TVirtualStreamerInfo.
Definition at line 63 of file TNamed.cxx.
|
overridevirtualinherited |
Make a clone of an object using the Streamer facility.
If newname is specified, this will be the name of the new object.
Reimplemented from TObject.
Reimplemented in TStreamerInfo, and TTreeIndex.
Definition at line 73 of file TNamed.cxx.
Compare two TNamed objects.
Returns 0 when equal, -1 when this is smaller and +1 when bigger (like strcmp).
Reimplemented from TObject.
Reimplemented in TStructNodeProperty.
Definition at line 84 of file TNamed.cxx.
|
overridevirtualinherited |
Copy this to obj.
Reimplemented from TObject.
Reimplemented in TPieSlice, TProfile2D, TProfile3D, TProfile, TStyle, TSystemDirectory, TSystemFile, TText, and TXTRU.
Definition at line 93 of file TNamed.cxx.
|
protectedinherited |
create mapping from global bin number to a histogram for this node
| [in] | hist | destination histogram |
| [in] | nDim | target dimension |
| [in] | axisList | map axes in the binning scheme to histogram axes |
| [in] | axisSteering | steering for underflow/overflow/projections |
The axisSteering is explained with the method CreateHistogram()
Definition at line 1099 of file TUnfoldBinning.cxx.
|
inherited |
create an empty bin map, useful together with the getter methods of class TUnfold and TUnfoldSys
returns: a new Int array of the proper size, all eleemnts set to -1
Definition at line 1031 of file TUnfoldBinning.cxx.
|
inherited |
create a TH2D histogram capable to hold a covariance matrix
| [in] | histogramName | name of the histogram which is created |
| [in] | originalAxisBinning | if true, try to preserve the axis binning |
| [out] | (default=nullptr) | binMap mapping of global bins to histogram bins. if(binMap==nullptr), no binMap is created |
| [in] | (default=nullptr) | histogramTitle title o fthe histogram. If zero, a title is selected automatically |
| [in] | (default=nullptr) | axisSteering steer the handling of underflow/overflow and projections |
returns a new TH2D. The options are described in greater detail with the CreateHistogram() method.
Definition at line 787 of file TUnfoldBinning.cxx.
|
inherited |
create a THxx histogram capable to hold the bins of this binning node and its children
| [in] | histogramName | name of the histogram which is created |
| [in] | originalAxisBinning | if true, try to preserve the axis binning |
| [out] | (default=nullptr) | binMap mapping of global bins to histogram bins. if(binMap==nullptr), no binMap is created |
| [in] | (default=nullptr) | histogramTitle title o fthe histogram. If zero, a title is selected automatically |
| [in] | (default=nullptr) | axisSteering steer the handling of underflow/overflow and projections |
returns a new histogram (TH1D, TH2D or TH3D)
if the parameter originalAxisBinning parameter is true, the resulting histogram has bin widths and histogram dimension (TH1D, TH2D, TH3D) in parallel to this binning node, if possible.
The binMap is an array which translates global bin numbers to bin numbers in the histogram returned by this method. The global bin numbers correspond to the bin numbers in a histogram created by calling GetRootNode()->CreateHistogram(name,false,0,0,0)
The axisSteering is a string to steer whether underflow and overflow bins are included in the bin map. Furthermore, it is possible to "collapse" axes, such that their content is summed and the axis does not show up in the created histogram.
The string looks like this: "axis[options];axis[options];..." where
Definition at line 726 of file TUnfoldBinning.cxx.
|
staticinherited |
create a TH2D histogram capable to hold the bins of the two input binning schemes on the x and y axes, respectively
\paran[in] xAxis binning scheme for the x axis
| [in] | yAxis | binning scheme for the y axis |
| [in] | histogramName | name of the histogram which is created |
| [in] | originalXAxisBinning | preserve x-axis bin widths if possible |
| [in] | originalXAxisBinning | preserve y-axis bin widths if possible |
| [in] | histogramTitle | if is non-zero, it is taken as histogram title otherwise, the title is created automatically |
returns a new TH2D.
Definition at line 830 of file TUnfoldBinning.cxx.
|
inlinestatic |
Definition at line 76 of file TUnfoldBinningXML.h.
|
inherited |
decode axis steering
| [in] | axisSteering | the steering to decode |
| [in] | options | the allowed options to extract |
| [out] | isOptionGiven | array of decoded steering options, the dimension equal to the number of characters in options |
the axis steering is given in the form "axis[option];axis[option];..."
axis : the name of the axis for which the optionlist is relevant the character * matches all axes
option : a list of characters taken from options
for each match the corresponding bit number corresponding to the axis number is set in isOptionGiven[i], where i is the position of the matching option character in options
Definition at line 2094 of file TUnfoldBinning.cxx.
|
virtualinherited |
Delete this object.
Typically called as a command via the interpreter. Normally use "delete" operator when object has been allocated on the heap.
Reimplemented in RooLinkedList, TAxis, TBtree, TCanvas, TClonesArray, TCollection, TDirectory, TDirectoryFile, TExMap, TFile, TGFrame, TGItemContext, TGTextEdit, THashList, THashTable, TKey, TKeySQL, TKeyXML, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TMap, TMVA::Results, TObjArray, TObjectTable, TOrdCollection, TProtoClass, TQCommand, TRefArray, TSystemDirectory, TSystemFile, TThread, TTree, TTreeViewer, TViewPubDataMembers, and TViewPubFunctions.
Definition at line 268 of file TObject.cxx.
Computes distance from point (px,py) to the object.
This member function must be implemented for each graphics primitive. This default function returns a big number (999999).
Reimplemented in TASImage, TAxis3D, TAxis, TBox, TBRIK, TColorWheel, TCrown, TCurlyArc, TCurlyLine, TDiamond, TEfficiency, TEllipse, TF1, TF2, TF3, TFileDrawMap, TGenerator, TGeoBBox, TGeoCompositeShape, TGeoCone, TGeoConeSeg, TGeoEltu, TGeoHalfSpace, TGeoHype, TGeoNode, TGeoOverlap, TGeoParaboloid, TGeoPcon, TGeoPgon, TGeoScaledShape, TGeoShape, TGeoShapeAssembly, TGeoSphere, TGeoTessellated, TGeoTorus, TGeoTrack, TGeoTube, TGeoTubeSeg, TGeoVGShape, TGeoVolume, TGeoXtru, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLScenePad, TGLTH3Composition, TGLViewer, TGraph2D, TGraph, TGraphEdge, TGraphNode, TGraphPolargram, TH1, THistPainter, THStack, TLine, TMarker3DBox, TMarker, TMultiGraph, TNode, TPad, TPaletteAxis, TParallelCoord, TParallelCoordRange, TParallelCoordVar, TParticle, TPave, TPCON, TPie, TPieSlice, TPoints3DABC, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TPrimary, TScatter2D, TScatter, TSPHE, TSpider, TSpline, TStyle, TText, TTreePerfStats, TTUBE, TTUBS, TVirtualHistPainter, and TXTRU.
Definition at line 284 of file TObject.cxx.
|
protectedvirtualinherited |
Interface to ErrorHandler (protected).
Reimplemented in TThread, and TTreeViewer.
Definition at line 1059 of file TObject.cxx.
|
virtualinherited |
Default Draw method for all objects.
Reimplemented in RooAbsData, RooPlot, RooStats::HypoTestInverterPlot, RooStats::SamplingDistPlot, ROOT::Experimental::XRooFit::xRooNLLVar::xRooHypoPoint, ROOT::Experimental::XRooFit::xRooNLLVar::xRooHypoSpace, ROOT::Experimental::XRooFit::xRooNode, ROOT::RGeoPainter, TArrow, TASImage, TBox, TBrowser, TButton, TCanvas, TChain, TClass, TClassTree, TCollection, TColorWheel, TDiamond, TDirectory, TEfficiency, TEllipse, TEveGeoNode, TEveGeoTopNode, TF1, TF2, TF3, TFile, TFITSHDU, TFrame, TGenerator, TGeoBatemanSol, TGeometry, TGeoNode, TGeoOverlap, TGeoPainter, TGeoParallelWorld, TGeoPhysicalNode, TGeoPolygon, TGeoShape, TGeoTrack, TGeoVGShape, TGeoVolume, TGItemContext, TGListTree, TGPicture, TGraph2D, TGraph, TGraphPolar, TGraphPolargram, TGraphStruct, TGraphTime, TH1, THelix, THStack, TLegend, TMarker, TMatrixTBase< Element >, TMatrixTBase< Double_t >, TMatrixTBase< Float_t >, TMultiDimFit, TMultiGraph, TMultiLayerPerceptron, TNode, TNodeDiv, TPad, TParallelCoord, TParallelCoordRange, TParallelCoordVar, TPave, TPaveLabel, TPavesText, TPaveText, TPie, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TRatioPlot, TSpider, TSpline, TStructViewer, TStructViewerGUI, TTree, TTreePerfStats, TVectorT< Element >, TVectorT< Double_t >, TVectorT< Float_t >, TVirtualPad, and TWbox.
Definition at line 293 of file TObject.cxx.
|
virtualinherited |
Draw class inheritance tree of the class to which this object belongs.
If a class B inherits from a class A, description of B is drawn on the right side of description of A. Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function. The following picture is the class inheritance tree of class TPaveLabel:
Reimplemented in TGFrame, TSystemDirectory, and TSystemFile.
Definition at line 308 of file TObject.cxx.
Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
If pad was not selected - gPad will be used.
Reimplemented in TAxis, TCanvas, TGFrame, TSystemDirectory, and TSystemFile.
Definition at line 319 of file TObject.cxx.
|
virtualinherited |
Dump contents of object on stdout.
Using the information in the object dictionary (class TClass) each data member is interpreted. If a data member is a pointer, the pointer value is printed
The following output is the Dump of a TArrow object:
Reimplemented in TClass, TCollection, TGFrame, TGPack, and TSystemFile.
Definition at line 367 of file TObject.cxx.
|
virtualinherited |
Issue error message.
Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.
Reimplemented in TFitResult.
Definition at line 1098 of file TObject.cxx.
|
virtualinherited |
Execute method on this object with the given parameter string, e.g.
"3.14,1,\"text\"".
Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.
Definition at line 378 of file TObject.cxx.
|
virtualinherited |
Execute method on this object with parameters stored in the TObjArray.
The TObjArray should contain an argv vector like:
Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.
Definition at line 398 of file TObject.cxx.
Execute action corresponding to an event at (px,py).
This method must be overridden if an object can react to graphics events.
Reimplemented in TASImage, TASPaletteEditor::LimitLine, TAxis3D, TAxis, TBox, TButton, TCanvas, TCrown, TCurlyArc, TCurlyLine, TDiamond, TEfficiency, TEllipse, TF1, TF2, TF3, TFrame, TGenerator, TGeoManager, TGeoNode, TGeoOverlap, TGeoShape, TGeoTrack, TGeoVolume, TGL5DDataSet, TGLEventHandler, TGLHistPainter, TGLParametricEquation, TGLScenePad, TGLTH3Composition, TGLViewer, TGraph2D, TGraph, TGraphEdge, TGraphNode, TGraphPolargram, TGroupButton, TH1, THistPainter, TLine, TLink, TMarker3DBox, TMarker, TNode, TPad, TPaletteAxis, TParallelCoord, TParallelCoordRange, TParallelCoordVar, TParticle, TPave, TPie, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TPrimary, TScatter2D, TScatter, TSliderBox, TSpider, TSpline, TText, TTreePerfStats, TView3D, TView, TVirtualHistPainter, and TWbox.
Definition at line 415 of file TObject.cxx.
| Int_t TUnfoldBinningXML::ExportXML | ( | const char * | fileName | ) | const |
export this binning scheme to a file
| [in] | fileName | name of the file |
returns true if the writing succeeded
Definition at line 577 of file TUnfoldBinningXML.cxx.
|
static |
export a binning scheme to a stream in XML format
| [in] | binning | the binning scheme to export |
| [out] | stream | to write to |
| [in] | writeHeader | set true when writing the first binning scheme to this stream |
| [in] | writeFooter | set true when writing the last binning scheme to this stream |
| [in] | indent | indentation of the XML output |
returns true if the writing succeeded
Definition at line 478 of file TUnfoldBinningXML.cxx.
|
inherited |
Definition at line 1345 of file TUnfoldBinning.cxx.
|
virtualinherited |
Issue fatal error message.
Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.
Definition at line 1126 of file TObject.cxx.
|
inherited |
map all global bins referenced by this node to the one-dimensional histogram destHist, starting with bin firstBinX
| [out] | binMap | to be used with TUnfoldSys::GetOutput() etc |
| [in] | axisSteering | steering for underflow/overflow/projections |
| [in] | firstBinX | first bin of destination histogram to be filled |
returns: highest bin number in destibation histogram plus 1
The parameter axisSteering is explained with the method CreateHistogram()
Definition at line 1072 of file TUnfoldBinning.cxx.
|
protectedinherited |
recursively fill bin map
| [in] | startBin | first histogram bin |
| [in] | axisSteering | see CreateHistogram() method |
| [out] | binMap | the bin mapping which is to be filled |
the positions binMap[GetStartBin()]...binMap[GetEndBin()-1] are filled
Definition at line 1163 of file TUnfoldBinning.cxx.
|
protectedinherited |
fill bin map for a single node
| [in] | hist | the histogram representing this node (used if nDim>0) |
| [in] | startBin | start bin in the bin map |
| [in] | nDim | number of dimensions to resolve |
| [in] | axisList[3] | TUnfoldBinning axis numbers corresponding to the axes of hist |
| [in] | axisSteering | see documentation of CreateHistogram() |
| [out] | binMap | the bin map to fill |
returns the number of bins mapped.
The result depends on the parameter nDim as follows
Definition at line 1201 of file TUnfoldBinning.cxx.
|
virtualinherited |
Encode TNamed into output buffer.
Reimplemented in TDirectoryFile, TFile, TKey, TKeySQL, TKeyXML, TSQLFile, and TXMLFile.
Definition at line 103 of file TNamed.cxx.
|
inherited |
traverse the tree and return the first node which matches the given name
| [in] | name | the identifier of the node to find (zero matches the first node) |
returns the node found or zero
Definition at line 531 of file TUnfoldBinning.cxx.
|
virtualinherited |
Must be redefined in derived classes.
This function is typically used with TCollections, but can also be used to find an object by name inside this object.
Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.
Definition at line 425 of file TObject.cxx.
Must be redefined in derived classes.
This function is typically used with TCollections, but can also be used to find an object inside this object.
Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.
Definition at line 435 of file TObject.cxx.
return scaling factor for the given global bin number
| [in] | iBin | global bin number |
returns the scaling factor for this bin. The scaling factors can be set using the method SetBinFactorFunction()
Definition at line 1738 of file TUnfoldBinning.cxx.
get the name of a bin
| [in] | iBin | global bin number |
returns a string describing the bin
Definition at line 1650 of file TUnfoldBinning.cxx.
|
inherited |
get neighbour bins along the specified axis
| [in] | bin | global bin number |
| [in] | axis | axis number of interest |
| [out] | prev | bin number of previous bin or -1 if not existing |
| [out] | distPrev | distance between bin centres |
| [out] | next | bin number of next bin or -1 if not existing |
| [out] | distNext | distance between bin centres |
| [in] | isPeriodic | (default=false) if true, the first bin is counted as neighbour of the last bin |
return code
Definition at line 1797 of file TUnfoldBinning.cxx.
get N-dimensional bin size
| [in] | iBin | global bin number |
Definition at line 1695 of file TUnfoldBinning.cxx.
|
inherited |
return bit maps indicating underflow and overflow status
| [in] | iBin | global bin number |
| [out] | uStatus | bit map indicating whether the bin is underflow |
| [out] | oStatus | bit map indicating whether the bin is overflow |
Definition at line 1850 of file TUnfoldBinning.cxx.
|
inlineinherited |
Definition at line 109 of file TUnfoldBinning.h.
|
inlineinherited |
first daughter node
Definition at line 108 of file TUnfoldBinning.h.
|
virtualinherited |
get average bin size on the specified axis
| [in] | axis | axis number |
| [in] | includeUnderflow | whether to include the underflow bin |
| [in] | includeOverflow | whether to include the overflow bin |
Definition at line 1889 of file TUnfoldBinning.cxx.
get name of an axis
Definition at line 172 of file TUnfoldBinning.h.
return bin center for a given axis and bin number
| [in] | axis | axis number |
| [in] | bin | local bin number on the specified axis |
returns the geometrical bin center. for underflow and overflow, the calculation is using the GetDistributionUnderflowBinWidth() and GetDistributionOverflowBinWidth() methods.
Definition at line 1965 of file TUnfoldBinning.cxx.
get vector of bin borders for one axis
Definition at line 169 of file TUnfoldBinning.h.
|
inlineinherited |
query dimension of this node's distribution
Definition at line 166 of file TUnfoldBinning.h.
|
inlineinherited |
number of bins in the distribution possibly including under/overflow
Definition at line 164 of file TUnfoldBinning.h.
return bin width assigned to the overflow bin
| [in] | axis | axis number |
the bin width of the last bin is returned. The method is virtual, so this behaviour can be adjusted.
Definition at line 1947 of file TUnfoldBinning.cxx.
return bin width assigned to the underflow bin
| [in] | axis | axis number |
the bin width of the first bin is returned. The method is virtual, so this behaviour can be adjusted.
Definition at line 1932 of file TUnfoldBinning.cxx.
|
virtualinherited |
Get option used by the graphics system to draw this object.
Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.
Reimplemented in TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.
Definition at line 445 of file TObject.cxx.
|
staticinherited |
Return destructor only flag.
Definition at line 1196 of file TObject.cxx.
|
inlineinherited |
last+1 bin of this node (includes children)
Definition at line 149 of file TUnfoldBinning.h.
|
inherited |
locate a bin in an N-dimensional distribution
| [in] | x | array of coordinates |
| [out] | isBelow | pointer to an integer (bit vector) to indicate coordinates which do not fit in the binning scheme |
| [out] | isAbove | pointer to an integer (bit vector) to indicate coordinates which do not fit in the binning scheme |
returns the global bin number within the distribution attached to this node. The global bin number is valid for the root node of the binning scheme. If some coordinates do not fit, zero is returned. The integers pointed to by isBelow and isAbove are set to zero. However, if coordinate i is below the lowest bin border and there is no underflow bin, the bin i is set in (*isBelow). Overflows are handled in a similar manner with (*isAbove).
If a coordinate is NaN, the result is undefined for TUnfold Version<17.6. As of version 17.6, NaN is expected to end up in the underflow or by setting the corresponding bit in (*isBelow).
Definition at line 1598 of file TUnfoldBinning.cxx.
locate a bin in a one-dimensional distribution
| [in] | x | coordinate |
returns the global bin number within the distribution attached to this node. THe global bin number is valid for the root node of the binning scheme
Definition at line 1420 of file TUnfoldBinning.cxx.
locate a bin in a two-dimensional distribution
| [in] | x | coordinate on first axis |
| [in] | y | coordinate on second axis |
returns the global bin number within the distribution attached to this node. The global bin number is valid for the root node of the binning scheme
Definition at line 1439 of file TUnfoldBinning.cxx.
locate a bin in a three-dimensional distribution
| [in] | x | coordinate on first axis |
| [in] | y | coordinate on second axis |
| [in] | z | coordinate on third axis |
returns the global bin number within the distribution attached to this node. The global bin number is valid for the root node of the binning scheme
Definition at line 1462 of file TUnfoldBinning.cxx.
|
inherited |
locate a bin in a four-dimensional distribution
| [in] | x0 | coordinate on first axis |
| [in] | x1 | coordinate on second axis |
| [in] | x2 | coordinate on third axis |
| [in] | x3 | coordinate on fourth axis |
returns the global bin number within the distribution attached to this node. The global bin number is valid for the root node of the binning scheme
Definition at line 1491 of file TUnfoldBinning.cxx.
|
inherited |
locate a bin in a five-dimensional distribution
| [in] | x0 | coordinate on first axis |
| [in] | x1 | coordinate on second axis |
| [in] | x2 | coordinate on third axis |
| [in] | x3 | coordinate on fourth axis |
| [in] | x4 | coordinate on fifth axis |
returns the global bin number within the distribution attached to this node. The global bin number is valid for the root node of the binning scheme
Definition at line 1522 of file TUnfoldBinning.cxx.
|
inherited |
locate a bin in a six-dimensional distribution
| [in] | x0 | coordinate on first axis |
| [in] | x1 | coordinate on second axis |
| [in] | x2 | coordinate on third axis |
| [in] | x3 | coordinate on fourth axis |
| [in] | x4 | coordinate on fifth axis |
| [in] | x5 | coordinate on sixth axis |
returns the global bin number within the distribution attached to this node. The global bin number is valid for the root node of the binning scheme
Definition at line 1555 of file TUnfoldBinning.cxx.
|
inherited |
return global scaling factor for this node
Definition at line 1727 of file TUnfoldBinning.cxx.
|
virtualinherited |
Returns mime type name of object.
Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.
Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TASImage, TBranch, TBranchElement, TGeoVolume, TGMainFrame, TKey, TMethodBrowsable, TSystemFile, and TVirtualBranchBrowsable.
Definition at line 472 of file TObject.cxx.
|
inlineoverridevirtualinherited |
|
inlineinherited |
Definition at line 114 of file TUnfoldBinning.h.
|
inlineinherited |
next sister node
Definition at line 113 of file TUnfoldBinning.h.
|
protectedinherited |
find a node which has non-empty distributions if there is none or if there are many, return zero
Definition at line 915 of file TUnfoldBinning.cxx.
|
protectedinherited |
Definition at line 923 of file TUnfoldBinning.cxx.
Returns string containing info about the object at position (px,py).
This method is typically overridden by classes of which the objects can report peculiarities for different positions. Returned string will be re-used (lock in MT environment).
Reimplemented in TASImage, TAxis3D, TColorWheel, TF1, TF2, TFileDrawMap, TGeoNode, TGeoTrack, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph, TH1, THistPainter, TNode, TPaletteAxis, TParallelCoordVar, and TVirtualHistPainter.
Definition at line 491 of file TObject.cxx.
|
staticinherited |
Get status of object stat flag.
Definition at line 1181 of file TObject.cxx.
|
inlinevirtualinherited |
Reimplemented in TArrow, TAxis3D, TFile, TGaxis, TGeoVolume, TH1, THelix, TLegendEntry, TMapFile, TNode, TPave, TPoints3DABC, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TPSocket, TSelector, TSocket, and TUDPSocket.
|
inlineinherited |
Definition at line 117 of file TUnfoldBinning.h.
|
inlineinherited |
mother node
Definition at line 116 of file TUnfoldBinning.h.
|
inlineinherited |
previous sister node
Definition at line 111 of file TUnfoldBinning.h.
|
protectedinherited |
return root node
Definition at line 545 of file TUnfoldBinning.cxx.
|
inherited |
return root node of the binnig scheme
Definition at line 554 of file TUnfoldBinning.cxx.
|
inlineinherited |
first bin of this node
Definition at line 147 of file TUnfoldBinning.h.
|
inherited |
return the number of histogram bins required when storing this binning in a one-dimensional histogram
| [in] | originalAxisBinning | if true, try to have the histogram axis reflect precisely the relevant axis of the binnnig scheme |
| [in] | axisSteering | steering to integrate over axis and/or skip underflow and overflow bins |
returns the number of bins of the TH1, where the underflow/overflow are not used, unless the distribution has only one axis and originalAxisBinning=true)
axisSteering is a string as follows: "axis[options];axis[options];..." where: axis = name or * is an identifier of an axis (* matches all) and: options is any combination of the letters C,U,O (other letters are ignored).
The letter C means that the corresponding axis is collapsed into one bin, i.e. one dimension is removed from the counting. The letters U,O remove for the matching axis the underflow.overflow bins from the counting
Definition at line 666 of file TUnfoldBinning.cxx.
|
protectedinherited |
calculate properties of a THxx histogram to store this binning
| [in] | maxDim | maximum dimension of the THxx (0 or 1..3) maxDim==nullptr is used to indicate that the histogram should be dimensional with all bins mapped on one axis, bin centers equal to bin numbers |
| [in] | axisSteering | see method CreateHistogram() |
| [out] | axisBins[3] | number of bins on the THxx axes |
| [out] | axisList[3] | TUnfoldBinning axis number corresponding to the THxx axis |
returns 1-3 dimension of THxx or 0 for 1-dim THxx with equidistant bins
Definition at line 887 of file TUnfoldBinning.cxx.
|
protectedinherited |
get the properties of a histogram capable to hold the distribution attached to this node
| [in] | maxDim | maximum dimension of the THxx (0 or 1..3) maxDim==nullptr is used to indicate that the histogram should 1-dimensional with all bins mapped on one axis |
| [out] | axisBins[3] | number of bins on the THxx axes |
| [out] | axisList[3] | TUnfoldBinning axis numbers corresponding to the THxx axis |
| [in] | axisSteering | see method CreateHistogram() and projection |
returns 1-3 dimension of THxx or use 1-dim THxx, binning structure is not preserved
Definition at line 953 of file TUnfoldBinning.cxx.
|
protectedinherited |
calculate number of bins required to store this binning with teh given axisSteering
| [in] | axisSteering | see method CreateHistogram() |
returns the number of bins
Definition at line 1010 of file TUnfoldBinning.cxx.
|
inlineoverridevirtualinherited |
|
inherited |
return the bin names of unconnected bins
| [in] | bin | local bin number |
Definition at line 1877 of file TUnfoldBinning.cxx.
|
virtualinherited |
Return the unique object id.
Definition at line 480 of file TObject.cxx.
Execute action in response of a timer timing out.
This method must be overridden if an object has to react to timers.
Reimplemented in TGCommandPlugin, TGDNDManager, TGFileContainer, TGHtml, TGLEventHandler, TGPopupMenu, TGraphTime, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGuiBldDragManager, TGWindow, and TTreeViewer.
Definition at line 516 of file TObject.cxx.
|
inlineoverridevirtualinherited |
Return hash value for this object.
Note: If this routine is overloaded in a derived class, this derived class should also add
Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like
Reimplemented from TObject.
|
inlineinherited |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
missing call to RecursiveRemove in destructor).
Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)
check whether the axis has an overflow bin
Definition at line 183 of file TUnfoldBinning.h.
|
inherited |
check whether there are bins but no axis
Definition at line 1868 of file TUnfoldBinning.cxx.
check whether an axis has an underflow bin
Definition at line 181 of file TUnfoldBinning.h.
|
static |
import a binning scheme from an XML file
| [in] | document | XMP document tree |
| [in] | name | identifier of the binning scheme |
returns a new TUnfoldBinningXML, if name is found in document
Definition at line 183 of file TUnfoldBinningXML.cxx.
|
staticprotected |
recursively import one node from the XML tree
| [in] | node | node in the XML document tree |
returns a new TUnfoldBinningXML
Definition at line 227 of file TUnfoldBinningXML.cxx.
|
virtualinherited |
Issue info message.
Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.
Definition at line 1072 of file TObject.cxx.
|
virtualinherited |
Returns kTRUE if object inherits from class "classname".
Reimplemented in TClass.
Definition at line 549 of file TObject.cxx.
Returns kTRUE if object inherits from TClass cl.
Reimplemented in TClass.
Definition at line 557 of file TObject.cxx.
|
protectedinherited |
initialize variables for a given number of bins
Definition at line 147 of file TUnfoldBinning.cxx.
|
virtualinherited |
Dump contents of this object in a graphics canvas.
Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.
The following picture is the Inspect of a histogram object:
Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TGFrame, TInspectorObject, and TSystemFile.
Definition at line 570 of file TObject.cxx.
|
inlineoverridevirtual |
Reimplemented from TUnfoldBinning.
Definition at line 76 of file TUnfoldBinningXML.h.
|
virtualinherited |
check whether there is only a global scaling factor for this node
Definition at line 1721 of file TUnfoldBinning.cxx.
|
inlineinherited |
IsDestructed.
Default equal comparison (objects are equal if they have the same address in memory).
More complicated classes might want to override this function.
Reimplemented in TGObject, TObjString, TPair, and TQCommand.
Definition at line 589 of file TObject.cxx.
|
virtualinherited |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Reimplemented in ROOT::Experimental::XRooFit::xRooNode, ROOT::Internal::THnBaseBrowsable, TApplicationRemote, TAxis3D, TBaseClass, TBranch, TBranchClones, TBranchElement, TBranchObject, TBranchSTL, TBrowserObject, TCanvas, TClass, TCollection, TDatabasePDG, TDirectory, TFolder, TGeoManager, TGeometry, TGeoNode, TGeoNodeMatrix, TGeoOverlap, TGeoTrack, TGeoVolume, THbookFile, THbookKey, THnBase, TKey, TMapFile, TMultiDimFit, TNode, TPad, TPair, TParticleClassPDG, TPrincipal, TRemoteObject, TROOT, TRootIconList, TSPlot, TSystemDirectory, TTask, TTree, and TVirtualBranchBrowsable.
Definition at line 579 of file TObject.cxx.
|
inlineoverridevirtualinherited |
Reimplemented from TObject.
Reimplemented in TStructNodeProperty.
|
overridevirtualinherited |
List TNamed name and title.
Reimplemented from TObject.
Reimplemented in ROOT::Experimental::XRooFit::xRooBrowser, TNode, TROOT, TStreamerBase, TStreamerElement, TStreamerInfo, TStreamerSTL, TTask, TText, and TVirtualStreamerInfo.
Definition at line 112 of file TNamed.cxx.
|
inherited |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
Definition at line 1160 of file TObject.cxx.
|
virtualinherited |
This method must be overridden to handle object notification (the base implementation is no-op).
Different objects in ROOT use the Notify method for different purposes, in coordination with other objects that call this method at the appropriate time.
For example, TLeaf uses it to load class information; TBranchRef to load contents of referenced branches TBranchRef; most notably, based on Notify, TChain implements a callback mechanism to inform interested parties when it switches to a new sub-tree.
Reimplemented in h1analysis, h1analysisTreeReader, TARInterruptHandler, TASInputHandler, TASInterruptHandler, TASLogHandler, TASSigPipeHandler, TBlinkTimer, TBranchElement, TBranchRef, TBreakLineCom, TBrowserTimer, TCollection, TDelCharCom, TDelTextCom, TFileHandler, TGContainerKeyboardTimer, TGContainerScrollTimer, TGInputHandler, TGLRedrawTimer, TGTextEditHist, TGuiBldDragManagerRepeatTimer, TIdleTimer, TInsCharCom, TInsTextCom, TInterruptHandler, TLeafObject, TMessageHandler, TNotifyLink< Type >, TNotifyLink< RNoCleanupNotifierHelper >, TNotifyLink< ROOT::Detail::TBranchProxy >, TNotifyLink< TTreeReader >, TPopupDelayTimer, TProcessEventTimer, TRefTable, TRepeatTimer, TSBRepeatTimer, TSelector, TSelectorDraw, TSelectorEntries, TSignalHandler, TSingleShotCleaner, TSocketHandler, TStdExceptionHandler, TSysEvtHandler, TTermInputHandler, TThreadTimer, TTimeOutTimer, TTimer, TTipDelayTimer, TTree, TTreeFormula, TTreeFormulaManager, TTreeReader, TViewTimer, and TViewUpdateTimer.
Definition at line 618 of file TObject.cxx.
|
inherited |
Use this method to declare a method obsolete.
Specify as of which version the method is obsolete and as from which version it will be removed.
Definition at line 1169 of file TObject.cxx.
|
inherited |
Operator delete for sized deallocation.
Definition at line 1234 of file TObject.cxx.
|
inherited |
Operator delete.
Definition at line 1212 of file TObject.cxx.
|
inherited |
Only called by placement new when throwing an exception.
Definition at line 1266 of file TObject.cxx.
|
inherited |
Operator delete [] for sized deallocation.
Definition at line 1245 of file TObject.cxx.
|
inherited |
Operator delete [].
Definition at line 1223 of file TObject.cxx.
|
inherited |
Only called by placement new[] when throwing an exception.
Definition at line 1274 of file TObject.cxx.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
virtualinherited |
This method must be overridden if a class wants to paint itself.
The difference between Paint() and Draw() is that when a object draws itself it is added to the display list of the pad in which it is drawn (and automatically redrawn whenever the pad is redrawn). While paint just draws the object without adding it to the pad display list.
Reimplemented in ROOT::Experimental::RTreeMapPainter, ROOT::RGeoPainter, TAnnotation, TArrow, TASImage, TASPaletteEditor::LimitLine, TASPaletteEditor::PaintPalette, TAxis3D, TBits, TBox, TButton, TCanvas, TClassTree, TCollection, TColorWheel, TCrown, TDiamond, TDirectory, TEfficiency, TEllipse, TEveArrow, TEveCaloViz, TEveDigitSet, TEveGeoShape, TEveGeoTopNode, TEvePlot3D, TEvePointSet, TEveProjectionAxes, TEveScene, TEveShape, TEveStraightLineSet, TEveText, TEveTriangleSet, TExec, TF1, TF2, TF3, TFile, TFileDrawMap, TFrame, TGaxis, TGenerator, TGeoBoolNode, TGeoIntersection, TGeoNode, TGeoOverlap, TGeoPainter, TGeoPhysicalNode, TGeoShape, TGeoSubtraction, TGeoTrack, TGeoUnion, TGeoVGShape, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph2D, TGraph2DPainter, TGraph, TGraphEdge, TGraphNode, TGraphPolargram, TGraphTime, TH1, THistPainter, THStack, TLatex, TLegend, TLine, TMacro, TMarker3DBox, TMarker, TMathText, TMultiGraph, TNode, TNodeDiv, TPad, TPaletteAxis, TParallelCoord, TParallelCoordRange, TParallelCoordVar, TParticle, TPave, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPie, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TPrimary, TRatioPlot, TScatter2D, TScatter, TShape, TSpectrum2Painter, TSpider, TSpline, TSQLFile, TStyle, TText, TTreePerfStats, TVirtualGeoPainter, TVirtualGeoTrack, TVirtualHistPainter, TVirtualPad, TWbox, and TXMLFile.
Definition at line 631 of file TObject.cxx.
|
virtualinherited |
Pop on object drawn in a pad to the top of the display list.
I.e. it will be drawn last and on top of all other primitives.
Reimplemented in TFrame, TPad, and TVirtualPad.
Definition at line 640 of file TObject.cxx.
|
overridevirtualinherited |
Print TNamed name and title.
Reimplemented from TObject.
Reimplemented in ROOT::Experimental::XRooFit::xRooNLLVar::xRooHypoPoint, ROOT::Experimental::XRooFit::xRooNLLVar::xRooHypoSpace, ROOT::Experimental::XRooFit::xRooNode, TParallelCoordRange, TParallelCoordVar, TParticleClassPDG, TParticlePDG, TPrincipal, TScatter2D, TScatter, TSpectrum2, TSpectrum3, TSpectrum, TSQLColumnInfo, TSQLFile, TSQLTableInfo, TText, TTree, TTreeIndex, TXMLFile, and TXTRU.
Definition at line 127 of file TNamed.cxx.
|
inherited |
print some information about this binning tree
| [out] | out | stream to write to |
| [in] | indent | initial indentation (sub-trees have indent+1) |
| [in] | debug | if debug>0 print more information |
Definition at line 428 of file TUnfoldBinning.cxx.
|
virtualinherited |
Read contents of object with specified name from the current directory.
First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().
Reimplemented in TBuffer, TKey, TKeySQL, and TKeyXML.
Definition at line 673 of file TObject.cxx.
|
virtualinherited |
Recursively remove this object from a list.
Typically implemented by classes that can contain multiple references to a same object.
Reimplemented in RooAbsCollection, RooAbsData, RooLinkedList, RooMCStudy, ROOT::Internal::TCheckHashRecursiveRemoveConsistency, ROOT::RBrowserDataCleanup, RooWorkspace, TBrowser, TChain, TCling, TCollection, TDialogCanvas, TDirectory, TEfficiency, TFileMerger, TFitEditor, TFolder, TFriendElement, TGedEditor, TGeometry, TGFileBrowser, TGraph2D, TGraph, TH1, TH1Editor, TH2Editor, THashList, THistPainter, THStack, TInspectCanvas, TLegend, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TMultiGraph, TNode, TObjArray, TObjectRefSpy, TObjectSpy, TPad, TProcessID, TROOT, TRootBrowser, TRootBrowserHistory, TRootBrowserLite, TRootContextMenu, TTree, TTreePlayer, TViewPubDataMembers, TViewPubFunctions, and TVirtualPad.
Definition at line 684 of file TObject.cxx.
|
virtualinherited |
Save this object in the file specified by filename.
otherwise the object is written to filename as a CINT/C++ script. The C++ code to rebuild this object is generated via SavePrimitive(). The "option" parameter is passed to SavePrimitive. By default it is an empty string. It can be used to specify the Draw option in the code generated by SavePrimitive.
The function is available via the object context menu.
Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TClassTree, TFolder, TGeoVolume, TGObject, TGraph, TH1, TPad, TPaveClass, TSpline3, TSpline5, TSpline, TTreePerfStats, and TVirtualPad.
Definition at line 708 of file TObject.cxx.
|
virtualinherited |
Save a primitive as a C++ statement(s) on output stream "out".
Reimplemented in TAnnotation, TArc, TArrow, TASImage, TAxis3D, TBox, TButton, TCanvas, TChain, TCrown, TCurlyArc, TCurlyLine, TCutG, TDiamond, TEfficiency, TEllipse, TExec, TF12, TF1, TF2, TF3, TFrame, TGaxis, TGButton, TGButtonGroup, TGCanvas, TGCheckButton, TGColorSelect, TGColumnLayout, TGComboBox, TGCompositeFrame, TGContainer, TGDockableFrame, TGDoubleHSlider, TGDoubleVSlider, TGedMarkerSelect, TGedPatternSelect, TGeoArb8, TGeoBBox, TGeoBoolNode, TGeoCombiTrans, TGeoCompositeShape, TGeoCone, TGeoConeSeg, TGeoCtub, TGeoDecayChannel, TGeoElementRN, TGeoEltu, TGeoGtra, TGeoHalfSpace, TGeoHMatrix, TGeoHype, TGeoIdentity, TGeoIntersection, TGeoMaterial, TGeoMedium, TGeoMixture, TGeoPara, TGeoParaboloid, TGeoPatternCylPhi, TGeoPatternCylR, TGeoPatternParaX, TGeoPatternParaY, TGeoPatternParaZ, TGeoPatternSphPhi, TGeoPatternSphR, TGeoPatternSphTheta, TGeoPatternTrapZ, TGeoPatternX, TGeoPatternY, TGeoPatternZ, TGeoPcon, TGeoPgon, TGeoRotation, TGeoScaledShape, TGeoShapeAssembly, TGeoSphere, TGeoSubtraction, TGeoTessellated, TGeoTorus, TGeoTranslation, TGeoTrap, TGeoTrd1, TGeoTrd2, TGeoTube, TGeoTubeSeg, TGeoUnion, TGeoVolume, TGeoXtru, TGFileContainer, TGFont, TGFrame, TGFSComboBox, TGGC, TGGroupFrame, TGHButtonGroup, TGHorizontal3DLine, TGHorizontalFrame, TGHorizontalLayout, TGHProgressBar, TGHScrollBar, TGHSlider, TGHSplitter, TGHtml, TGIcon, TGLabel, TGLayoutHints, TGLineStyleComboBox, TGLineWidthComboBox, TGListBox, TGListDetailsLayout, TGListLayout, TGListTree, TGListView, TGLVContainer, TGMainFrame, TGMatrixLayout, TGMdiFrame, TGMdiMainFrame, TGMdiMenuBar, TGMenuBar, TGMenuTitle, TGNumberEntry, TGNumberEntryField, TGPictureButton, TGPopupMenu, TGProgressBar, TGRadioButton, TGraph2D, TGraph2DAsymmErrors, TGraph2DErrors, TGraph, TGraphAsymmErrors, TGraphBentErrors, TGraphEdge, TGraphErrors, TGraphMultiErrors, TGraphNode, TGraphPolar, TGraphPolargram, TGraphStruct, TGroupButton, TGRowLayout, TGShapedFrame, TGShutter, TGShutterItem, TGSplitFrame, TGStatusBar, TGTab, TGTabLayout, TGTableLayout, TGTableLayoutHints, TGTextButton, TGTextEdit, TGTextEntry, TGTextLBEntry, TGTextView, TGTileLayout, TGToolBar, TGTransientFrame, TGTripleHSlider, TGTripleVSlider, TGVButtonGroup, TGVertical3DLine, TGVerticalFrame, TGVerticalLayout, TGVFileSplitter, TGVProgressBar, TGVScrollBar, TGVSlider, TGVSplitter, TGXYLayout, TGXYLayoutHints, TH1, TH2Poly, THelix, THStack, TLatex, TLegend, TLine, TMacro, TMarker3DBox, TMarker, TMathText, TMultiGraph, TPad, TPaletteAxis, TParallelCoord, TParallelCoordVar, TPave, TPaveClass, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPie, TPieSlice, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TProfile2D, TProfile3D, TProfile, TRootContainer, TRootEmbeddedCanvas, TScatter2D, TScatter, TSlider, TSliderBox, TSpline3, TSpline5, TStyle, TText, TTreePerfStats, and TWbox.
Definition at line 858 of file TObject.cxx.
|
staticprotectedinherited |
Save object constructor in the output stream "out".
Can be used as first statement when implementing SavePrimitive() method for the object
Definition at line 777 of file TObject.cxx.
|
staticprotectedinherited |
Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
Definition at line 845 of file TObject.cxx.
|
protectedinherited |
Save object name and title into the output stream "out".
Definition at line 135 of file TNamed.cxx.
|
staticprotectedinherited |
Save array in the output stream "out" as vector.
Create unique variable name based on prefix value Returns name of vector which can be used in constructor or in other places of C++ code If flag === kTRUE, just add empty line If flag === 111, check if array is empty and return nullptr or <vectorname>.data()
Definition at line 796 of file TObject.cxx.
|
protectedinherited |
set normalisation factors which are used in calls to GetBinFactor()
| [in] | normalisation | normalisation factor |
| [in] | binfactor | object which defines a factor for each bin |
IN the presnet implementation, binfactor can be a TF1 or a TVectorD. The TF1 is evaluated a the bin centes of the relevant axes. The TVectorD is indexed by the global bin number minus the start bin number of this node.
Definition at line 501 of file TUnfoldBinning.cxx.
|
inherited |
set normalisation factor and function which are used in calls to GetBinFactor()
| [in] | normalisation | normalisation factor |
| [in] | userFunc | function evaluated at the (multi-dimensional) bin centres |
Definition at line 517 of file TUnfoldBinning.cxx.
|
inherited |
set one entry in a bin map
| [out] | binMap | to be used with TUnfoldSys::GetOutput() etc |
| [in] | source | bin, global bin number in this binning scheme |
| [in] | destination | bin in the output histogram |
Definition at line 1050 of file TUnfoldBinning.cxx.
Set or unset the user status bits as specified in f.
Definition at line 888 of file TObject.cxx.
|
virtualinherited |
Set drawing option for object.
This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().
Reimplemented in RooPlot, TAxis, TBrowser, TGedFrame, TGFrame, TPad, TPaveStats, TRootBrowserLite, TSystemDirectory, and TSystemFile.
Definition at line 871 of file TObject.cxx.
|
staticinherited |
Set destructor only flag.
Definition at line 1204 of file TObject.cxx.
|
virtualinherited |
Set the name of the TNamed.
WARNING: if the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.
Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, ROOT::Experimental::XRooFit::xRooNode, TChain, TColor, TDirectory, TEfficiency, TEventList, TEveScene, TFormula, TGraph2D, TGraph, TH1, TNode, TRotMatrix, TShape, TSystemDirectory, TSystemFile, and TTree.
Definition at line 149 of file TNamed.cxx.
|
virtualinherited |
Set all the TNamed parameters (name and title).
WARNING: if the name is changed and the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.
Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, TContextMenu, TGraph2D, TGraph, TH1, and TNode.
Definition at line 163 of file TNamed.cxx.
|
staticinherited |
Turn on/off tracking of objects in the TObjectTable.
Definition at line 1188 of file TObject.cxx.
|
virtualinherited |
Set the title of the TNamed.
Reimplemented in Axis2, RooPlot, ROOT::Experimental::XRooFit::xRooNode, ROOT::TSchemaRule::TSources, TASImage, TEfficiency, TF1, TGraph2D, TGraph, TH1, THnBase, TParallelCoordVar, TSystemDirectory, and TSystemFile.
Definition at line 173 of file TNamed.cxx.
|
virtualinherited |
Set the unique object id.
Definition at line 899 of file TObject.cxx.
|
virtualinherited |
Return size of the TNamed part of the TObject.
Reimplemented in TDirectory, TDirectoryFile, TFile, TKey, TSQLFile, and TXMLFile.
Definition at line 182 of file TNamed.cxx.
|
overridevirtual |
Stream an object of class TObject.
Reimplemented from TUnfoldBinning.
|
inline |
Definition at line 76 of file TUnfoldBinningXML.h.
|
virtualinherited |
Issue system error message.
Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.
Definition at line 1112 of file TObject.cxx.
|
protectedinherited |
return distribution in which the bin is located and bin numbers on the corresponding axes
| [in] | globalBin | global bin number |
| [out] | local | bin numbers of the distribution's axes |
returns the distribution in which the globalBin is located or 0 if the globalBin is outside this node and its children
Definition at line 2043 of file TUnfoldBinning.cxx.
|
protectedinherited |
get global bin number, given axis bin numbers
| [in] | axisBins[] | bin numbers on each axis |
| [out] | isBelow | indicates bins are in underflow but there is no undeflow bin |
| [out] | isAbove | indicates bins are in overflow but there is no overflow bin |
return: global bin nuber or -1 if not matched.
Definition at line 1996 of file TUnfoldBinning.cxx.
update fFirstBin and fLastBin members of this node and its children
| [in] | startWithRootNode | if true, start the update with the root node |
Definition at line 168 of file TUnfoldBinning.cxx.
|
virtualinherited |
|
virtualinherited |
Issue warning message.
Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.
Definition at line 1084 of file TObject.cxx.
|
virtualinherited |
Write this object to the current directory.
For more see the const version of this method.
Reimplemented in ROOT::TBufferMergerFile, TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.
Definition at line 989 of file TObject.cxx.
|
virtualinherited |
Write this object to the current directory.
The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".
Writing an object to a file involves the following steps:
Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.
If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().
The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. NOTE: Neither kOverwrite nor kWriteDelete reduces the size of a TFile– the space is simply freed up to be overwritten; in the case of a TTree, it is more complicated. If one opens a TTree, appends some entries, then writes it out, the behaviour is effectively the same. If, however, one creates a new TTree and writes it out in this way, only the metadata is replaced, effectively making the old data invisible without deleting it. TTree::Delete() can be used to mark all disk space occupied by a TTree as free before overwriting its metadata this way. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.
An object is read from the file into memory via TKey::Read() or via TObject::Read().
The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.
Reimplemented in TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.
Definition at line 964 of file TObject.cxx.
|
static |
write dtd file
| [in] | file | regular file for writing the dtd |
Definition at line 171 of file TUnfoldBinningXML.cxx.
|
static |
write dtd file
| [out] | out | stream for writing the dtd |
Definition at line 147 of file TUnfoldBinningXML.cxx.
|
protectedinherited |
first daughter node
Definition at line 63 of file TUnfoldBinning.h.
|
protectedinherited |
for each axis its name (TObjString), or names of unconnected bins
Definition at line 71 of file TUnfoldBinning.h.
|
protectedinherited |
for each axis the bin borders (TVectorD)
Definition at line 69 of file TUnfoldBinning.h.
|
protectedinherited |
common scale factor for all bins of this node
Definition at line 85 of file TUnfoldBinning.h.
|
protectedinherited |
function to calculate a scale factor from bin centres (may be a TF1 or a TVectorD
Definition at line 83 of file TUnfoldBinning.h.
|
privateinherited |
|
protectedinherited |
number of bins in this node's distribution
Definition at line 77 of file TUnfoldBinning.h.
|
protectedinherited |
global bin number of the first bin
Definition at line 79 of file TUnfoldBinning.h.
|
staticprivateinherited |
|
protectedinherited |
bit fields indicating whether there are overflow bins on the axes
Definition at line 75 of file TUnfoldBinning.h.
|
protectedinherited |
bit fields indicating whether there are underflow bins on the axes
Definition at line 73 of file TUnfoldBinning.h.
|
protectedinherited |
global bin number of the last(+1) bin, including daughters
Definition at line 81 of file TUnfoldBinning.h.
|
privateinherited |
|
protectedinherited |
next sister
Definition at line 65 of file TUnfoldBinning.h.
|
protectedinherited |
mother node
Definition at line 61 of file TUnfoldBinning.h.
|
protectedinherited |
previous sister
Definition at line 67 of file TUnfoldBinning.h.