simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TSParameter Class Reference

#include <TSParameter.h>

Inheritance diagram for TSParameter:
TSVariable TSVariable ServerClientMgr TSNamed ServerClientMgr TSNamed ServerClientMgr TSNamed ServerClientMgr TSNamed TSNuiParam TSNuiParam TSParamFunction TSParamFunction

Public Member Functions

 TSParameter (TString name, TString label, TString title, TString unit="")
 
 TSParameter (const TSParameter &)
 
void Clear ()
 
void ClearError ()
 
void ClearAsymErrors ()
 
void Copy (const TSParameter &)
 
virtual TSParameterClone (TString name, int)
 
virtual TObject * Clone (const char *name="")
 
void Fix ()
 
virtual double GetError () const
 
virtual double GetErrorLow () const
 
virtual double GetErrorUp () const
 
virtual double GetErrorFrac () const
 
virtual double GetPrecision () const
 
virtual double GetStep () const
 
bool HasAsymErrors () const
 
bool HasError () const
 
bool IsFixed () const
 
void Init ()
 
void Print () const
 
void Release ()
 
void SetAsymErrors (double err_low, double err_up)
 
void SetError (double err)
 
void SetFixed (double)
 
void SetPrecision (double)
 
void SetStep (double s)
 
virtual bool SetFunction (TString expr, const TSArgList &)
 
TSArgListGetPrimaryParamList () const
 
void PrintPrimaryParamList () const
 
int GetNumOfPrimPars () const
 
 TSParameter (TString name, TString label, TString title, TString unit="")
 
 TSParameter (const TSParameter &)
 
void Clear ()
 
void ClearError ()
 
void ClearAsymErrors ()
 
void Copy (const TSParameter &)
 
virtual TSParameterClone (TString name, int) const
 
virtual TObject * Clone (const char *name="") const
 
void Fix ()
 
virtual double GetError () const
 
virtual double GetErrorLow () const
 
virtual double GetErrorUp () const
 
virtual double GetErrorFrac () const
 
virtual double GetPrecision () const
 
virtual double GetStep () const
 
bool HasAsymErrors () const
 
bool HasError () const
 
bool IsFixed () const
 
void Init ()
 
void Print () const
 
void Release ()
 
void SetAsymErrors (double err_low, double err_up)
 
void SetError (double err)
 
void SetFixed (double)
 
void SetPrecision (double)
 
void SetStep (double s)
 
virtual bool SetFunction (TString expr, const TSArgList &)
 
TSArgListGetPrimaryParamList () const
 
void PrintPrimaryParamList () const
 
int GetNumOfPrimPars () const
 
- Public Member Functions inherited from TSVariable
 TSVariable (TString name, TString label, TString title, TString unit="")
 
 TSVariable (const TSVariable &)
 
void Clear ()
 
bool ContainsRange (double min, double max) const
 
bool ContainsRange (const TSVariable &) const
 
void Copy (const TSVariable &)
 
TSVariableClone (TString name="") const
 
void ForceToRange (bool)
 
double GetMin () const
 
double GetMax () const
 
TString GetAxisTitle () const
 
TString GetAxisUnit () const
 
TString GetDefinition () const
 
TString GetDescription () const
 
TString GetRange () const
 
double GetRangeCenter () const
 
TString GetLabelAndRange () const
 
TString GetLabelAndValue () const
 
TString GetLabelAndValue (double) const
 
TString GetTitleXY (TString tity="entries") const
 
TString GetUnit () const
 
virtual double GetValue () const
 
bool HasRange () const
 
bool HasRangeForced () const
 
bool HasUnit () const
 
bool HasValue () const
 
bool IsInside (double) const
 
void Print () const
 
bool RangeIsContained (double min, double max) const
 
bool RangeIsContained (const TSVariable &) const
 
bool RangesOverlap (double min, double max) const
 
bool RangesOverlap (const TSVariable &) const
 
void RemoveRange ()
 
bool SameRange (double min, double max) const
 
bool SameRange (const TSVariable &) const
 
void SetLabel (TString)
 
int SetRange (double, double)
 
void SetTitle (TString)
 
void SetUnit (TString)
 
void SetValue (double)
 
 TSVariable (TString name, TString label, TString title, TString unit="")
 
 TSVariable (const TSVariable &)
 
void Clear ()
 
bool ContainsRange (double min, double max) const
 
bool ContainsRange (const TSVariable &) const
 
void Copy (const TSVariable &)
 
TSVariableClone (TString name="") const
 
void ForceToRange (bool)
 
double GetMin () const
 
double GetMax () const
 
TString GetAxisTitle () const
 
TString GetAxisUnit () const
 
TString GetDefinition () const
 
TString GetDescription () const
 
TString GetRange () const
 
double GetRangeCenter () const
 
TString GetLabelAndRange () const
 
TString GetLabelAndValue () const
 
TString GetLabelAndValue (double) const
 
TString GetTitleXY (TString tity="entries") const
 
TString GetUnit () const
 
virtual double GetValue () const
 
bool HasRange () const
 
bool HasRangeForced () const
 
bool HasUnit () const
 
bool HasValue () const
 
bool IsInside (double) const
 
void Print () const
 
bool RangeIsContained (double min, double max) const
 
bool RangeIsContained (const TSVariable &) const
 
bool RangesOverlap (double min, double max) const
 
bool RangesOverlap (const TSVariable &) const
 
void RemoveRange ()
 
bool SameRange (double min, double max) const
 
bool SameRange (const TSVariable &) const
 
void SetLabel (TString)
 
int SetRange (double, double)
 
void SetTitle (TString)
 
void SetUnit (TString)
 
void SetValue (double)
 
- Public Member Functions inherited from TSNamed
 TSNamed (TString name, TString label, TString title)
 
void Clear ()
 
TString GetLabel () const
 
TString Label () const
 
TString Name () const
 
TString Title () const
 
const char * GetName () const
 
const char * GetTitle () const
 
virtual void SetName (TString)
 
 TSNamed (TString name, TString label, TString title)
 
void Clear ()
 
TString GetLabel () const
 
TString Label () const
 
TString Name () const
 
TString Title () const
 
const char * GetName () const
 
const char * GetTitle () const
 
virtual void SetName (TString)
 
- Public Member Functions inherited from ServerClientMgr
 ServerClientMgr (TString owner_name)
 
 ServerClientMgr (const ServerClientMgr &)
 
void AddClient (ServerClientMgr *)
 
void AddServer (ServerClientMgr *)
 
bool AnyClientChanged ()
 
bool AnyServerChanged ()
 
bool BroadcastActive ()
 
void BroadcastToClients (int)
 
void BroadcastToServers (int)
 
ServerClientMgrGetClient (int) const
 
int GetClientStatus (int) const
 
ServerClientMgrGetServer (int) const
 
int GetServerStatus (int) const
 
int GetNumOfClients () const
 
int GetNumOfServers () const
 
int GetNumOfClientsChanged () const
 
int GetNumOfServersChanged () const
 
TString GetOwnerName () const
 
TString GetStatusName (int) const
 
void PrintServersAndClients ()
 
void RemoveClient (ServerClientMgr *)
 
void RemoveServer (ServerClientMgr *)
 
void ResetAll ()
 
void SetClientStatus (ServerClientMgr *, int)
 
void SetServerStatus (ServerClientMgr *, int)
 
bool ServerChanged (ServerClientMgr *)
 
bool ServerRemoved (ServerClientMgr *)
 
 ServerClientMgr (TString owner_name)
 
 ServerClientMgr (const ServerClientMgr &)
 
void AddClient (ServerClientMgr *)
 
void AddServer (ServerClientMgr *)
 
bool AnyClientChanged ()
 
bool AnyServerChanged ()
 
bool BroadcastActive ()
 
void BroadcastToClients (int)
 
void BroadcastToServers (int)
 
ServerClientMgrGetClient (int) const
 
int GetClientStatus (int) const
 
ServerClientMgrGetServer (int) const
 
int GetServerStatus (int) const
 
int GetNumOfClients () const
 
int GetNumOfServers () const
 
int GetNumOfClientsChanged () const
 
int GetNumOfServersChanged () const
 
TString GetOwnerName () const
 
TString GetStatusName (int) const
 
void PrintServersAndClients ()
 
void RemoveClient (ServerClientMgr *)
 
void RemoveServer (ServerClientMgr *)
 
void ResetAll ()
 
void SetClientStatus (ServerClientMgr *, int)
 
void SetServerStatus (ServerClientMgr *, int)
 
bool ServerChanged (ServerClientMgr *)
 
bool ServerRemoved (ServerClientMgr *)
 

Protected Member Functions

virtual void fClearPrimaryParamList ()
 
virtual void fClearPrimaryParamList ()
 

Protected Attributes

TSArgListfPrimaryParamList
 

Additional Inherited Members

- Public Attributes inherited from ServerClientMgr
int kChanged
 
int kUnChanged
 
int kRemoved
 
- Static Public Attributes inherited from ServerClientMgr
static bool kBroadcastIsActive = false
 
static bool kDebug = false
 

Detailed Description

Created on: May 25, 2014 Author: Silvestro di Luise Silve.nosp@m.stro.nosp@m..Di.L.nosp@m.uise.nosp@m.@cern.nosp@m..ch

Class to implement a general Parameter. It inherits from a Variable. A Parameter is a Variable with an Error (or Asymmetric Errors) and a State: Fixed/Free; If a range is specified and Parameter is fixed to a value outside the range than the value is fixed to the closest range limit; Other settings useful for the fit are available: e.g. Precision

Member Function Documentation

void TSParameter::SetAsymErrors ( double  err_low,
double  err_up 
)

Errors must be: lower negative and upper positive OR equals and positive otherwise they are set to zero

Referenced by TSMinimizer::Minimize().


The documentation for this class was generated from the following files: