GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4FitDataGraph.h>
Public Member Functions | |
TGo4FitDataGraph () | |
TGo4FitDataGraph (const char *iName, TGraph *=0, Bool_t iGraphOwned=kFALSE, Bool_t AddAmpl=kFALSE) | |
virtual | ~TGo4FitDataGraph () |
TGraph * | GetGraph () |
void | SetGraph (TGraph *iGraph, Bool_t iGraphOwned=kFALSE) |
TGo4FitDataIter * | MakeIter () |
virtual void | FillSlotList (TSeqCollection *list) |
virtual void | Print (Option_t *option) const |
Public Member Functions inherited from TGo4FitData | |
TGo4FitData () | |
TGo4FitData (const char *iName, const char *iTitle, Int_t iDataType=dtHistogram, Bool_t AddAmpl=kFALSE) | |
virtual | ~TGo4FitData () |
const Int_t | GetDataType () |
Bool_t | GetUseBinScale () |
void | SetUseBinScale (Bool_t iUseBinScale) |
virtual Bool_t | CanAmplTouch () |
Int_t | GetSigmaSource () const |
Double_t | GetSigmaValue () const |
void | SetSigmaSource (Int_t TakeFrom, Double_t SigmaValue=1.) |
void | SetSigmaValue (Double_t SigmaValue) |
void | SetExcludeLessThen (Double_t limit=0.) |
Double_t | GetExcludeLessThen () const |
Bool_t | SetNumberOfTransSlots (Int_t nslots) |
Int_t | GetNumberOfTransSlots () |
TGo4FitSlot * | GetAxisTransSlot (Int_t nslot) |
TGo4FitAxisTrans * | GetAxisTrans (Int_t nslot) |
void | SetAxisTrans (Int_t nslot, TGo4FitAxisTrans *Trans, Bool_t TransOwned=kFALSE) |
void | AddAxisTrans (TGo4FitAxisTrans *Trans, Bool_t TransOwned=kFALSE) |
void | SetAxisTransNeeded (Int_t nslot, Bool_t iNeeded=kFALSE) |
virtual Bool_t | IsAnyDataTransform () |
TObject * | CreateDrawObject (const char *ObjName) |
Bool_t | DefineScaleMinMax (Int_t naxis, Double_t &min, Double_t &max) |
Int_t | DefineDimensions () |
Int_t | DefineBinsSize () |
Bool_t | IsCompatibleData (TGo4FitData *data) |
void | ApplyRangesForModelMask (TGo4FitComponent *model, Char_t *ModelMask) |
Public Member Functions inherited from TGo4FitComponent | |
TGo4FitComponent () | |
TGo4FitComponent (const char *iName, const char *iTitle) | |
virtual | ~TGo4FitComponent () |
TGo4FitParameter * | GetAmplPar () |
const char * | GetAmplName () |
const char * | GetAmplFullName () |
Double_t | GetAmplValue () |
void | SetAmplValue (Double_t iAmpl) |
Double_t | GetAmplError () |
void | SetAmplError (Double_t iError) |
Bool_t | MakeAmpl (Bool_t isFixed=kFALSE) |
Bool_t | RemoveAmpl () |
void | SetRange (Int_t naxis, Double_t min, Double_t max) |
void | ExcludeRange (Int_t naxis, Double_t min, Double_t max) |
void | SetRangeMin (Int_t naxis, Double_t value) |
void | SetRangeMax (Int_t naxis, Double_t value) |
void | AddRangeCut (TCutG *cut, Bool_t exclude=kFALSE) |
void | ClearRanges (Int_t naxis=-1) |
Bool_t | IsAnyRangeLimits () |
Bool_t | GetRangeMin (Int_t naxis, Double_t &value) |
Bool_t | GetRangeMax (Int_t naxis, Double_t &value) |
Int_t | GetNumRangeCondition () const |
void | GetRangeCondition (Int_t n, Int_t &typ, Int_t &naxis, Double_t &left, Double_t &right) const |
void | SetRangeCondition (Int_t n, Int_t typ, Int_t naxis, Double_t left, Double_t right) |
void | AddRangeCondition (Int_t typ, Int_t naxis, Double_t left, Double_t right) |
void | RemoveRangeCondition (Int_t n) |
Int_t | GetNumRangeCut () const |
TCutG * | GetRangeCut (Int_t n) const |
Bool_t | IsRangeCutExcluding (Int_t n) |
void | SetRangeCutExcluding (Int_t n, Bool_t exclude=kTRUE) |
void | RemoveRangeCut (Int_t n) |
Bool_t | CheckRangeConditions (const Double_t *values, Int_t numaxis) |
virtual void | CollectParsTo (TGo4FitParsList &list) |
void | SetUseBuffers (Bool_t iUse) |
Bool_t | GetUseBuffers () |
Public Member Functions inherited from TGo4FitParsList | |
TGo4FitParsList () | |
TGo4FitParsList (Bool_t IsParsOwned) | |
TGo4FitParsList (const char *Name, const char *Title, Bool_t IsParsOwned) | |
virtual | ~TGo4FitParsList () |
virtual Int_t | NumPars () |
TGo4FitParameter * | GetPar (Int_t n) |
Int_t | GetParIndex (const TGo4FitParameter *par) |
TGo4FitParameter * | FindPar (const char *ParName) |
TGo4FitParameter * | FindPar (const char *OwnerFullName, const char *ParName) |
TGo4FitParameter * | FindPar (TGo4FitParameter *par) |
Double_t | GetParValue (const char *ParName) |
Bool_t | SetParValue (const char *ParName, Double_t iValue) |
void | GetParsValues (Double_t *pars) |
void | SetParsValues (Double_t *pars) |
Double_t | GetParError (const char *ParName) |
Bool_t | SetParError (const char *ParName, Double_t iError) |
virtual Bool_t | SetParFixed (const char *ParName, Bool_t iFixed=kTRUE) |
virtual Bool_t | GetParFixed (const char *ParName) |
Int_t | NumFixedPars () |
Int_t | NumFreePars () |
virtual Bool_t | SetParRange (const char *ParName, Double_t RangeMin, Double_t RangeMax) |
virtual Bool_t | GetParRange (const char *ParName, Double_t &RangeMin, Double_t &RangeMax) |
virtual Bool_t | SetParEpsilon (const char *ParName, Double_t Epsilon) |
virtual Bool_t | GetParEpsilon (const char *ParName, Double_t &Epsilon) |
void | SetParName (Int_t n, const char *name) |
const char * | GetParName (Int_t n) |
const char * | GetParFullName (Int_t n) |
void | SetParsNames (const char *name0="Par0", const char *name1="Par1", const char *name2="Par2", const char *name3="Par3", const char *name4="Par4", const char *name5="Par5", const char *name6="Par6", const char *name7="Par7", const char *name8="Par8", const char *name9="Par9") |
void | SetParsValues (Double_t par0=0., Double_t par1=0., Double_t par2=0., Double_t par3=0., Double_t par4=0., Double_t par5=0., Double_t par6=0., Double_t par7=0., Double_t par8=0., Double_t par9=0.) |
virtual void | MemorizePars () |
virtual bool | CanRollbackPars () |
virtual void | RememberPars () |
Bool_t | IsAllParsFixed () |
TGo4FitParameter * | CreatePar (const char *ParName, const char *Title, Double_t iValue=0) |
Bool_t | RemovePar (const char *name) |
Bool_t | RemovePar (TGo4FitParameter *par) |
void | PrintPars () const |
void | ClearPars () |
Public Member Functions inherited from TGo4FitNamed | |
TGo4FitNamed () | |
TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=0) | |
virtual | ~TGo4FitNamed () |
const char * | GetFullName () |
const char * | GetOwnerFullName () |
void | SetOwner (TNamed *iOwner) |
TNamed * | GetOwner () |
void | Print (Option_t *option) const |
Public Member Functions inherited from TGo4FitSlotList | |
TGo4FitSlotList () | |
virtual | ~TGo4FitSlotList () |
void | SetUpdateSlotList () |
const TObjArray * | GetSlotList (Bool_t ForceUpdate=kFALSE) |
Int_t | NumSlots () |
TGo4FitSlot * | GetSlot (Int_t nslot) |
TGo4FitSlot * | FindSlot (const char *FullSlotName) |
Bool_t | ConnectSlots (TGo4FitSlot *slot1, TGo4FitSlot *slot2) |
Bool_t | ConnectSlots (const char *Slot1FullName, const char *Slot2FullName) |
TGo4FitSlot * | SetObject (TObject *obj, Bool_t iOwned=kFALSE) |
TGo4FitSlot * | SetObject (const char *PlaceName, TObject *obj, Bool_t iOwned=kFALSE) |
TGo4FitSlot * | IsObjectInSlots (TObject *obj) |
Bool_t | CheckObjects (Bool_t MakeOut=kTRUE) |
Bool_t | IsEmptySlots () |
void | ClearObjects (const char *PlaceName=0, Bool_t NonOwned=kTRUE) |
void | ClearSlot (TGo4FitSlot *slot, Bool_t NonOwned) |
void | SetSaveFlagForObjects (Int_t iSaveFlag, const char *PlaceName=0) |
Protected Attributes | |
TGo4FitSlot | fxGraph |
Protected Attributes inherited from TGo4FitData | |
Int_t | fiDataType |
Bool_t | fbUseBinScale |
Int_t | fiTakeSigmasFrom |
Double_t | fdSigmaValue |
Double_t | fdExcludeLessThen |
TObjArray | fxAxisTrans |
Protected Attributes inherited from TGo4FitSlotList | |
TObjArray * | fxSlotList |
Bool_t | fbUpdateSlotList |
Additional Inherited Members | |
Public Types inherited from TGo4FitData | |
enum | { dtHistogram = 1, dtGraph = 2 } |
Protected Member Functions inherited from TGo4FitData | |
virtual Bool_t | Initialize (Int_t UseBuffers=-1) |
virtual void | Finalize () |
Bool_t | BuffersAllocated () const |
Int_t | GetBinsSize () const |
Int_t | GetScalesSize () const |
Double_t * | GetBinsValues () |
Double_t * | GetBinsDevs () |
Double_t * | GetBinsResult () |
const Double_t * | GetScaleValues (const Int_t nbin) |
const Double_t * | GetWidthValues (const Int_t nbin) |
const Int_t * | GetFullIndex (Int_t nbin) |
Int_t | GetIndexesSize () const |
Protected Member Functions inherited from TGo4FitComponent | |
TGo4FitParameter * | NewParameter (const char *Name, const char *Title, Double_t iValue=0., Bool_t Fixed=kFALSE, Int_t AtIndx=-1) |
TGo4FitParameter * | NewAmplitude (const char *Name=0, Double_t iValue=0., Bool_t IsFixed=kFALSE, Int_t AtIndx=0) |
Int_t | GetAmplIndex () |
void | SetAmplIndex (Int_t iAmplIndex=-1) |
Protected Member Functions inherited from TGo4FitParsList | |
TGo4FitParameter * | AddPar (TGo4FitParameter *par) |
TGo4FitParameter * | InsertPar (TGo4FitParameter *par, Int_t indx) |
void | SetParsOwner (TGo4FitNamed *iOwner) |
void | ClearParsBlocking () |
virtual TGo4FitParameter * | Get (Int_t n) |
TGo4FitParameter * | Find (const char *ParName) |
TGo4FitParameter * | Find (const char *OwnerFullName, const char *ParName) |
TGo4FitParameter * | Find (TGo4FitParameter *par) |
Bool_t | RemoveParByIndex (Int_t indx) |
Protected Member Functions inherited from TGo4FitSlotList | |
void | CheckDuplicatesOnSlot () |
void | PrepareSlotsForWriting () |
ClassDef (TGo4FitSlotList, 1) | |
Data object, which provides access to TGraph and TGraphErrors ROOT objects.
TGraph is just N points with X and Y coordinates. This is mean, that it may be only one-dimensional. The TGraph object can be assigned to TGo4FitDataGraph object in constructor, in SetGraph() method or in SetObject() method of fitter. TGraph object may owned, or may not owned by data object. TGo4FitDataGraph gets Y values as bins containment. If no calibration object is sets up, X can be used as axis values. If TGraphErrors object is assigned, the error values of Y can be used as sigmas in chi-square calculations (fit-function type should be ff_chi_square).
Definition at line 30 of file TGo4FitDataGraph.h.
TGo4FitDataGraph::TGo4FitDataGraph | ( | ) |
Default constructor.
Definition at line 22 of file TGo4FitDataGraph.cxx.
TGo4FitDataGraph::TGo4FitDataGraph | ( | const char * | iName, |
TGraph * | iGraph = 0 , |
||
Bool_t | iGraphOwned = kFALSE , |
||
Bool_t | AddAmpl = kFALSE |
||
) |
Create TGo4FitDataGraph object with given name. Pointer on TGraph and ownership flag can be provided. Scaling factor (amplitude) also can be added.
Definition at line 28 of file TGo4FitDataGraph.cxx.
References TGo4FitData::SetExcludeLessThen().
|
virtual |
Destroys TGo4FitDataGraph object.
Definition at line 35 of file TGo4FitDataGraph.cxx.
|
virtual |
Add pointer on slot, which should contain TGraph object, to slots list.
Reimplemented from TGo4FitData.
Definition at line 49 of file TGo4FitDataGraph.cxx.
References TGo4FitData::FillSlotList(), and fxGraph.
|
inline |
Return pointer on TGraph object.
Definition at line 53 of file TGo4FitDataGraph.h.
References fxGraph, and TGo4FitSlot::GetObject().
Referenced by TGo4FitDataGraphIter::ReadCurrentPoint(), and TGo4FitDataGraphIter::StartReset().
|
virtual |
Create TGo4FitDataGraphIter iterator, assosiated with given data object..
Reimplemented from TGo4FitData.
Definition at line 38 of file TGo4FitDataGraph.cxx.
|
virtual |
Print information on stndard output.
Reimplemented from TGo4FitData.
Definition at line 55 of file TGo4FitDataGraph.cxx.
References fxGraph, TGo4FitSlot::Print(), and TGo4FitData::Print().
void TGo4FitDataGraph::SetGraph | ( | TGraph * | iGraph, |
Bool_t | iGraphOwned = kFALSE |
||
) |
Set TGraph object. Ownership flag can also be sets up. By default TGraph object is not owned.
Definition at line 43 of file TGo4FitDataGraph.cxx.
References TGo4FitSlot::ClearObject(), fxGraph, and TGo4FitSlot::SetObject().
Referenced by TGo4Fitter::SetGraph().
|
protected |
Slot to for TGraph object. fxGraph
Definition at line 82 of file TGo4FitDataGraph.h.
Referenced by FillSlotList(), GetGraph(), Print(), and SetGraph().