KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KVTGID Class Referenceabstract

Abstract base class for particle identfication using functionals developed by L. Tassan-Got (IPN Orsay)

These functionals are defined in the KVTGIDFunctions namespace, and the functional used by each KVTGID object is defined by giving its name to the constructor. These objects are persistent, i.e. can be retrieved from a ROOT file and used for identification.

GetIdentification() method performs an identification. Status code can be retrieved afterwards using GetStatus();

A KVIDGrid identification grid can be generated from the functional in order to visualise the corresponding identification lines. (MakeIDGrid)

The following methods must be defined by child-classes:

SetIdent() -- determine how to set the identification for each line in the grid
AddLine() -- define the type of IDLine added to the grid
NewGrid() -- define the type of IDGrid to generate
int type
virtual KVIDLine * AddLine(KVIDGrid *)=0
virtual void SetIdent(KVIDLine *, Double_t ID)=0
TLine * line

Definition at line 43 of file KVTGID.h.

Public Types

enum  { kStatus_OK , kStatus_NotBetween_IDMin_IDMax }
 status codes for GetIdentification More...
 
- Public Types inherited from TF1
enum class  EAddToList { kDefault , kAdd , kNo }
 
enum  EStatusBits
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 

Public Member Functions

 KVTGID ()
 Default ctor. More...
 
 KVTGID (const Char_t *name, const Char_t *function, Double_t xmin, Double_t xmax, Int_t npar, Int_t par_x, Int_t par_y)
 
 KVTGID (const KVTGID &)
 copy constructor More...
 
virtual ~ KVTGID ()
 
void AddIDTelescope (KVBase *tel)
 
virtual void AddLineToGrid (KVIDGrid *g, Int_t ID, Int_t npoints, Double_t xmin, Double_t xmax, Bool_t log_scale=kFALSE)
 
void ClearIDTelescopes ()
 
Int_t Compare (const TObject *obj) const
 
virtual void Copy (TObject &tgid) const
 Copy this KVTGID function into the KVTGID object referenced by tgid. More...
 
Double_t GetAlpha () const
 
Double_t GetBeta () const
 
Double_t GetDistanceToLine (Double_t x, Double_t y, Int_t id, Double_t *params=0)
 
Double_t GetEta () const
 
Int_t GetFunctionalType () const
 
const Char_tGetFunctionName () const
 
Double_t GetG () const
 
virtual Double_t GetIdentification (Double_t ID_min, Double_t ID_max, Double_t &ID_quality, Double_t *par=0)
 
Double_t GetIDmax () const
 
Double_t GetIDmin () const
 
const KVStringGetIDTelescopes () const
 
Double_t GetLambda () const
 
Int_t GetLightEnergyDependence () const
 
Int_t GetMassFormula () const
 
Double_t GetMu () const
 
Double_t GetNu () const
 
Double_t GetPdx () const
 
Double_t GetPdy () const
 
virtual Int_t GetStatus () const
 
virtual const Char_tGetStatusString () const
 Returns explanatory message for value of GetStatus() More...
 
const KVNumberListGetValidRuns () const
 
const Char_tGetVarX () const
 
const Char_tGetVarY () const
 
Double_t GetXi () const
 
Int_t GetZorA () const
 
Bool_t IsValidForRun (Int_t run) const
 
Bool_t IsValidForTelescope (KVBase *tel) const
 
virtual void Print (Option_t *option="") const
 Print info on functional and grid. More...
 
void SetAlpha (Double_t val)
 
void SetBeta (Double_t val)
 
void SetEta (Double_t val)
 
void SetG (Double_t val)
 
void SetIDmax (Double_t x)
 
void SetIDmin (Double_t x)
 
void SetIDTelescopes (const TCollection *)
 
void SetLambda (Double_t val)
 
void SetLTGParameterNames ()
 
void SetLTGParameters (Double_t *par)
 
void SetLTGParameters (Float_t *par)
 
void SetMassformula (Int_t val)
 
void SetMu (Double_t val)
 
void SetNu (Double_t val)
 
void SetPdx (Double_t val)
 
void SetPdy (Double_t val)
 
void SetValidRuns (const KVNumberList &r)
 
void SetVarX (const Char_t *x)
 
void SetVarY (const Char_t *x)
 
void SetXi (Double_t val)
 
void WriteToAsciiFile (std::ofstream &) const
 Write parameters of LTG fit in file. More...
 
- Public Member Functions inherited from TF1
 TF1 ()
 
 TF1 (const char *name, const char *formula, Double_t xmin, Double_t xmax, Option_t *option)
 
 TF1 (const char *name, const char *formula, Double_t xmin=0, Double_t xmax=1, EAddToList addToGlobList=EAddToList::kDefault, bool vectorize=false)
 
 TF1 (const char *name, const PtrObj &p, MemFn memFn, Double_t xmin, Double_t xmax, Int_t npar, const char *, const char *, EAddToList addToGlobList=EAddToList::kDefault)
 
 TF1 (const char *name, const PtrObj &p, MemFn memFn, Double_t xmin, Double_t xmax, Int_t npar, Int_t ndim=1, EAddToList addToGlobList=EAddToList::kDefault)
 
 TF1 (const char *name, Double_t xmin, Double_t xmax, Int_t npar, Int_t ndim=1, EAddToList addToGlobList=EAddToList::kDefault)
 
 TF1 (const char *name, Double_t(*fcn)(const Double_t *, const Double_t *), Double_t xmin=0, Double_t xmax=1, Int_t npar=0, Int_t ndim=1, EAddToList addToGlobList=EAddToList::kDefault)
 
 TF1 (const char *name, Double_t(*fcn)(Double_t *, Double_t *), Double_t xmin=0, Double_t xmax=1, Int_t npar=0, Int_t ndim=1, EAddToList addToGlobList=EAddToList::kDefault)
 
 TF1 (const char *name, Func f, Double_t xmin, Double_t xmax, Int_t npar, const char *, EAddToList addToGlobList=EAddToList::kDefault)
 
 TF1 (const char *name, Func f, Double_t xmin, Double_t xmax, Int_t npar, Int_t ndim=1, EAddToList addToGlobList=EAddToList::kDefault)
 
 TF1 (const char *name, ROOT::Math::ParamFunctor f, Double_t xmin=0, Double_t xmax=1, Int_t npar=0, Int_t ndim=1, EAddToList addToGlobList=EAddToList::kDefault)
 
 TF1 (const char *name, std::function< T(const T *data, const Double_t *param)> &fcn, Double_t xmin=0, Double_t xmax=1, Int_t npar=0, Int_t ndim=1, EAddToList addToGlobList=EAddToList::kDefault)
 
 TF1 (const char *name, T(*fcn)(const T *, const Double_t *), Double_t xmin=0, Double_t xmax=1, Int_t npar=0, Int_t ndim=1, EAddToList addToGlobList=EAddToList::kDefault)
 
 TF1 (const TF1 &f1)
 
virtual ~TF1 ()
 
virtual void AddParameter (const TString &name, Double_t value)
 
virtual Bool_t AddToGlobalList (Bool_t on=kTRUE)
 
virtual void Browse (TBrowser *b)
 
virtual Double_t CentralMoment (Double_t n, Double_t a, Double_t b, const Double_t *params=0, Double_t epsilon=0.000001)
 
TObjectClone (const char *newname=0) const
 
virtual TH1CreateHistogram ()
 
virtual Double_t Derivative (Double_t x, Double_t *params=0, Double_t epsilon=0.001) const
 
virtual Double_t Derivative2 (Double_t x, Double_t *params=0, Double_t epsilon=0.001) const
 
virtual Double_t Derivative3 (Double_t x, Double_t *params=0, Double_t epsilon=0.001) const
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void Draw (Option_t *option="")
 
virtual TF1DrawCopy (Option_t *option="") const
 
virtual TObjectDrawDerivative (Option_t *option="al")
 
virtual void DrawF1 (Double_t xmin, Double_t xmax, Option_t *option="")
 
virtual TObjectDrawIntegral (Option_t *option="al")
 
virtual Double_t Eval (Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
 
virtual Double_t EvalPar (const Double_t *x, const Double_t *params=0)
 
T EvalPar (const T *x, const Double_t *params=0)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void FixParameter (Int_t ipar, Double_t value)
 
Double_t GetChisquare () const
 
virtual TString GetExpFormula (Option_t *option="") const
 
virtual TFormulaGetFormula ()
 
virtual const TFormulaGetFormula () const
 
virtual TH1GetHistogram () const
 
virtual const TObjectGetLinearPart (Int_t i) const
 
virtual Double_t GetMaximum (Double_t xmin=0, Double_t xmax=0, Double_t epsilon=1.E-10, Int_t maxiter=100, Bool_t logx=false) const
 
virtual Double_t GetMaximumStored () const
 
virtual Double_t GetMaximumX (Double_t xmin=0, Double_t xmax=0, Double_t epsilon=1.E-10, Int_t maxiter=100, Bool_t logx=false) const
 
TMethodCallGetMethodCall () const
 
virtual Double_t GetMinimum (Double_t xmin=0, Double_t xmax=0, Double_t epsilon=1.E-10, Int_t maxiter=100, Bool_t logx=false) const
 
virtual Double_t GetMinimumStored () const
 
virtual Double_t GetMinimumX (Double_t xmin=0, Double_t xmax=0, Double_t epsilon=1.E-10, Int_t maxiter=100, Bool_t logx=false) const
 
virtual Int_t GetNDF () const
 
virtual Int_t GetNdim () const
 
virtual Int_t GetNpar () const
 
virtual Int_t GetNpx () const
 
virtual Int_t GetNumber () const
 
virtual Int_t GetNumberFitPoints () const
 
virtual Int_t GetNumberFreeParameters () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Double_t GetParameter (const TString &name) const
 
virtual Double_t GetParameter (Int_t ipar) const
 
virtual Double_tGetParameters () const
 
virtual void GetParameters (Double_t *params)
 
TObjectGetParent () const
 
virtual Double_t GetParError (Int_t ipar) const
 
virtual const Double_tGetParErrors () const
 
virtual void GetParLimits (Int_t ipar, Double_t &parmin, Double_t &parmax) const
 
virtual const char * GetParName (Int_t ipar) const
 
virtual Int_t GetParNumber (const char *name) const
 
virtual Double_t GetProb () const
 
virtual Int_t GetQuantiles (Int_t nprobSum, Double_t *q, const Double_t *probSum)
 
virtual Double_t GetRandom (Double_t xmin, Double_t xmax, TRandom *rng=nullptr, Option_t *opt=nullptr)
 
virtual Double_t GetRandom (TRandom *rng=nullptr, Option_t *opt=nullptr)
 
virtual void GetRange (Double_t &xmin, Double_t &xmax) const
 
virtual void GetRange (Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const
 
virtual void GetRange (Double_t &xmin, Double_t &ymin, Double_t &zmin, Double_t &xmax, Double_t &ymax, Double_t &zmax) const
 
virtual Double_t GetSave (const Double_t *x)
 
virtual Double_t GetVariable (const TString &name)
 
virtual Double_t GetX (Double_t y, Double_t xmin=0, Double_t xmax=0, Double_t epsilon=1.E-10, Int_t maxiter=100, Bool_t logx=false) const
 
TAxisGetXaxis () const
 
virtual Double_t GetXmax () const
 
virtual Double_t GetXmin () const
 
TAxisGetYaxis () const
 
TAxisGetZaxis () const
 
virtual void GradientPar (const Double_t *x, Double_t *grad, Double_t eps=0.01)
 
void GradientPar (const T *x, T *grad, Double_t eps=0.01)
 
virtual Double_t GradientPar (Int_t ipar, const Double_t *x, Double_t eps=0.01)
 
T GradientPar (Int_t ipar, const T *x, Double_t eps=0.01)
 
void GradientParTempl (const T *x, T *grad, Double_t eps=0.01)
 
T GradientParTempl (Int_t ipar, const T *x, Double_t eps=0.01)
 
virtual void InitArgs (const Double_t *x, const Double_t *params)
 
virtual Double_t Integral (Double_t a, Double_t b, Double_t epsrel=1.e-12)
 
virtual Double_t IntegralError (Double_t a, Double_t b, const Double_t *params=0, const Double_t *covmat=0, Double_t epsilon=1.E-2)
 
virtual Double_t IntegralError (Int_t n, const Double_t *a, const Double_t *b, const Double_t *params=0, const Double_t *covmat=0, Double_t epsilon=1.E-2)
 
virtual Double_t IntegralFast (Int_t num, Double_t *x, Double_t *w, Double_t a, Double_t b, Double_t *params=0, Double_t epsilon=1e-12)
 
virtual Double_t IntegralMultiple (Int_t n, const Double_t *a, const Double_t *b, Double_t epsrel, Double_t &relerr)
 
virtual Double_t IntegralMultiple (Int_t n, const Double_t *a, const Double_t *b, Int_t maxpts, Double_t epsrel, Double_t epsabs, Double_t &relerr, Int_t &nfnevl, Int_t &ifail)
 
virtual Double_t IntegralMultiple (Int_t n, const Double_t *a, const Double_t *b, Int_t, Int_t maxpts, Double_t epsrel, Double_t &relerr, Int_t &nfnevl, Int_t &ifail)
 
virtual Double_t IntegralOneDim (Double_t a, Double_t b, Double_t epsrel, Double_t epsabs, Double_t &err)
 
virtual Bool_t IsEvalNormalized () const
 
virtual Bool_t IsInside (const Double_t *x) const
 
virtual Bool_t IsLinear () const
 
virtual Bool_t IsValid () const
 
bool IsVectorized ()
 
virtual Double_t Mean (Double_t a, Double_t b, const Double_t *params=0, Double_t epsilon=0.000001)
 
virtual Double_t Moment (Double_t n, Double_t a, Double_t b, const Double_t *params=0, Double_t epsilon=0.000001)
 
T operator() (const T *x, const Double_t *params=nullptr)
 
virtual Double_t operator() (Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
 
TF1operator= (const TF1 &rhs)
 
virtual void Paint (Option_t *option="")
 
virtual void ReleaseParameter (Int_t ipar)
 
virtual void Save (Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax)
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
virtual void SetChisquare (Double_t chi2)
 
virtual void SetFitResult (const ROOT::Fit::FitResult &result, const Int_t *indpar=0)
 
void SetFunction (Func f)
 
void SetFunction (PtrObj &p, MemFn memFn)
 
virtual void SetMaximum (Double_t maximum=-1111)
 
virtual void SetMinimum (Double_t minimum=-1111)
 
virtual void SetNDF (Int_t ndf)
 
virtual void SetNormalized (Bool_t flag)
 
virtual void SetNpx (Int_t npx=100)
 
virtual void SetNumberFitPoints (Int_t npfits)
 
virtual void SetParameter (const TString &name, Double_t value)
 
virtual void SetParameter (Int_t param, Double_t value)
 
virtual void SetParameters (const Double_t *params)
 
virtual void SetParameters (Double_t p0, Double_t p1, Double_t p2=0, Double_t p3=0, Double_t p4=0, Double_t p5=0, Double_t p6=0, Double_t p7=0, Double_t p8=0, Double_t p9=0, Double_t p10=0)
 
virtual void SetParent (TObject *p=0)
 
virtual void SetParError (Int_t ipar, Double_t error)
 
virtual void SetParErrors (const Double_t *errors)
 
virtual void SetParLimits (Int_t ipar, Double_t parmin, Double_t parmax)
 
virtual void SetParName (Int_t ipar, const char *name)
 
virtual void SetParNames (const char *name0="p0", const char *name1="p1", const char *name2="p2", const char *name3="p3", const char *name4="p4", const char *name5="p5", const char *name6="p6", const char *name7="p7", const char *name8="p8", const char *name9="p9", const char *name10="p10")
 
virtual void SetRange (Double_t xmin, Double_t xmax)
 
virtual void SetRange (Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax)
 
virtual void SetRange (Double_t xmin, Double_t ymin, Double_t zmin, Double_t xmax, Double_t ymax, Double_t zmax)
 
virtual void SetSavedPoint (Int_t point, Double_t value)
 
virtual void SetTitle (const char *title="")
 
virtual void SetVectorized (Bool_t vectorized)
 
virtual void Update ()
 
virtual Double_t Variance (Double_t a, Double_t b, const Double_t *params=0, Double_t epsilon=0.000001)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 
virtual void Clear (Option_t *option="")
 
virtual void FillBuffer (char *&buffer)
 
virtual const char * GetName () const
 
virtual const char * GetTitle () const
 
virtual ULong_t Hash () const
 
virtual Bool_t IsSortable () const
 
virtual void ls (Option_t *option="") const
 
TNamedoperator= (const TNamed &rhs)
 
virtual void SetName (const char *name)
 
virtual void SetNameTitle (const char *name, const char *title)
 
virtual Int_t Sizeof () const
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Delete (Option_t *option="")
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void Dump () const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 
virtual Bool_t IsFolder () const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete[] (void *ptr)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
virtual void RecursiveRemove (TObject *obj)
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 
virtual ~TAttLine ()
 
void Copy (TAttLine &attline) const
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 
virtual Color_t GetLineColor () const
 
virtual Style_t GetLineStyle () const
 
virtual Width_t GetLineWidth () const
 
virtual void Modify ()
 
virtual void ResetAttLine (Option_t *option="")
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 
virtual void SetLineAttributes ()
 
virtual void SetLineColor (Color_t lcolor)
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 
virtual void SetLineStyle (Style_t lstyle)
 
virtual void SetLineWidth (Width_t lwidth)
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 
virtual ~TAttFill ()
 
void Copy (TAttFill &attfill) const
 
virtual Color_t GetFillColor () const
 
virtual Style_t GetFillStyle () const
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 
virtual void ResetAttFill (Option_t *option="")
 
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
 
virtual void SetFillAttributes ()
 
virtual void SetFillColor (Color_t fcolor)
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 
virtual void SetFillStyle (Style_t fstyle)
 
- Public Member Functions inherited from TAttMarker
 TAttMarker ()
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 
virtual ~TAttMarker ()
 
void Copy (TAttMarker &attmarker) const
 
virtual Color_t GetMarkerColor () const
 
virtual Size_t GetMarkerSize () const
 
virtual Style_t GetMarkerStyle () const
 
virtual void Modify ()
 
virtual void ResetAttMarker (Option_t *toption="")
 
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
 
virtual void SetMarkerAttributes ()
 
virtual void SetMarkerColor (Color_t mcolor=1)
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 
virtual void SetMarkerSize (Size_t msize=1)
 
virtual void SetMarkerStyle (Style_t mstyle=1)
 

Static Public Member Functions

static Int_t GetNumberOfLTGParameters (Int_t type, Int_t light)
 
static KVTGIDMakeTGID (const Char_t *name, Int_t type, Int_t light, Int_t ZorA, Int_t mass)
 
static KVTGIDReadFromAsciiFile (const Char_t *name, std::ifstream &)
 
- Static Public Member Functions inherited from TF1
static void AbsValue (Bool_t reject=kTRUE)
 
static void CalcGaussLegendreSamplingPoints (Int_t num, Double_t *x, Double_t *w, Double_t eps=3.0e-11)
 
static Bool_t DefaultAddToGlobalList (Bool_t on=kTRUE)
 
static Double_t DerivativeError ()
 
static TF1GetCurrent ()
 
static void InitStandardFunctions ()
 
static Bool_t RejectedPoint ()
 
static void RejectPoint (Bool_t reject=kTRUE)
 
static void SetCurrent (TF1 *f1)
 
- Static Public Member Functions inherited from TObject
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Static Public Member Functions inherited from TAttMarker
static Width_t GetMarkerLineWidth (Style_t style)
 
static Style_t GetMarkerStyleBase (Style_t style)
 

Protected Member Functions

virtual KVIDLineAddLine (KVIDGrid *)=0
 
void init ()
 
virtual void SetIdent (KVIDLine *, Double_t ID)=0
 
void SetStringTelescopes (const Char_t *s)
 
- Protected Member Functions inherited from TF1
 TF1 (EFType functionType, const char *name, Double_t xmin, Double_t xmax, Int_t npar, Int_t ndim, EAddToList addToGlobList, TF1Parameters *params=nullptr, TF1FunctorPointer *functor=nullptr)
 
Bool_t ComputeCdfTable (Option_t *opt)
 
virtual TH1DoCreateHistogram (Double_t xmin, Double_t xmax, Bool_t recreate=kFALSE)
 
void DoInitialize (EAddToList addToGlobList)
 
virtual Double_t GetMinMaxNDim (Double_t *x, Bool_t findmax, Double_t epsilon=0, Int_t maxiter=0) const
 
virtual void GetRange (Double_t *xmin, Double_t *xmax) const
 
void IntegrateForNormalization ()
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 

Protected Attributes

Int_t fAlpha
 
Int_t fBeta
 
Int_t fEta
 
Int_t fG
 
Double_t fID_max
 maximum ID fitted with functional More...
 
Double_t fID_min
 minimum ID fitted with functional More...
 
Int_t fLambda
 indices of parameters More...
 
Int_t fLight
 with (1) or without (0) CsI light-energy dependence More...
 
Int_t fMassFormula
 mass formula used to calculate A from Z (if Z identification used) More...
 
Int_t fMu
 
Int_t fNu
 
Int_t fPdx
 
Int_t fPdy
 
KVNumberList fRuns
 list of runs for which fit is valid More...
 
Int_t fStatus
 transient member, holds status code of last call to GetIdentification More...
 
KVString fTelescopes
 list of telescopes for which fit is valid More...
 
TString fTGIDFunctionName
 name of KVTGIDFunctions:: namespace function used for identification More...
 
Int_t fType
 type of functional (=0 standard, =1 extended) More...
 
TString fVarX
 quantity used for X coordinates More...
 
TString fVarY
 quantity used for Y coordinates More...
 
Int_t fXi
 
Int_t fZorA
 used for Z (1) or A (0) identification More...
 
- Protected Attributes inherited from TF1
std::vector< Double_tfAlpha
 
std::vector< Double_tfBeta
 
Double_t fChisquare
 
std::unique_ptr< TF1AbsCompositionfComposition
 
std::unique_ptr< TFormulafFormula
 
std::unique_ptr< TF1FunctorPointerfFunctor
 
std::vector< Double_tfGamma
 
TH1fHistogram
 
std::vector< Double_tfIntegral
 
Double_t fMaximum
 
std::unique_ptr< TMethodCallfMethodCall
 
Double_t fMinimum
 
Int_t fNDF
 
Int_t fNdim
 
Bool_t fNormalized
 
Double_t fNormIntegral
 
Int_t fNpar
 
Int_t fNpfits
 
Int_t fNpx
 
std::unique_ptr< TF1ParametersfParams
 
TObjectfParent
 
std::vector< Double_tfParErrors
 
std::vector< Double_tfParMax
 
std::vector< Double_tfParMin
 
std::vector< Double_tfSave
 
EFType fType
 
Double_t fXmax
 
Double_t fXmin
 
 kCompositionFcn
 
 kFormula
 
 kInterpreted
 
 kPtrScalarFreeFcn
 
 kTemplScalar
 
 kTemplVec
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 
Style_t fLineStyle
 
Width_t fLineWidth
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 
Style_t fFillStyle
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 
Size_t fMarkerSize
 
Style_t fMarkerStyle
 

Additional Inherited Members

- Public Attributes inherited from TF1
 kNotDraw
 
 kNotGlobal
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Types inherited from TF1
enum  EFType
 
- Static Protected Attributes inherited from TF1
static std::atomic< Bool_tfgAbsValue
 
static std::atomic< Bool_tfgAddToGlobList
 
static TF1fgCurrent
 
static Bool_t fgRejectPoint
 

#include <KVTGID.h>

Inheritance diagram for KVTGID:
Inheritance graph
[legend]

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

status codes for GetIdentification

Enumerator
kStatus_OK 
kStatus_NotBetween_IDMin_IDMax 

Definition at line 98 of file KVTGID.h.

Constructor & Destructor Documentation

◆ KVTGID() [1/3]

KVTGID::KVTGID ( )

Default ctor.

Definition at line 61 of file KVTGID.cpp.

◆ KVTGID() [2/3]

KVTGID::KVTGID ( const KVTGID obj)

copy constructor

Definition at line 127 of file KVTGID.cpp.

◆ KVTGID() [3/3]

KVTGID::KVTGID ( const Char_t name,
const Char_t function,
Double_t  xmin,
Double_t  xmax,
Int_t  npar,
Int_t  par_x,
Int_t  par_y 
)

Create TF1 named "name" using "function", range xmin->xmax and number of parameters npar.

The given function name must correspond to one of the functions defined in the KVTGIDFunctions namespace (without the "KVTGIDFunctions::" scope, i.e. function="tassangot_Z" is a valid argument for this constructor). The resulting object can be written to and read back from a ROOT file and the function pointer will be reinitialised automatically when the object is read back from the file.

par_x and par_y are the indices of the parameters of the functional which correspond to the 'X' and 'Y' coordinates of the identification map, respectively.

NOTE: the function pointer passed to the TF1 constructor is just a dummy to make sure that the right constructor is called, and that the TF1 is set up correctly. The actual function used is set using the name given as argument 'function'.

Definition at line 88 of file KVTGID.cpp.

◆ ~ KVTGID()

virtual KVTGID::~ KVTGID ( )
inlinevirtual

Definition at line 113 of file KVTGID.h.

Member Function Documentation

◆ AddIDTelescope()

void KVTGID::AddIDTelescope ( KVBase tel)
inline

Adds tel to list of ID telescopes for which this fit is valid

Definition at line 283 of file KVTGID.h.

◆ AddLine()

virtual KVIDLine* KVTGID::AddLine ( KVIDGrid )
protectedpure virtual

Implemented in KVTGIDZA, and KVTGIDZ.

◆ AddLineToGrid()

void KVTGID::AddLineToGrid ( KVIDGrid g,
Int_t  ID,
Int_t  npoints,
Double_t  xmin,
Double_t  xmax,
Bool_t  log_scale = kFALSE 
)
virtual

Add a line to the grid 'g' for identification label 'ID' with 'npoints' points calculated between X-coordinates xmin and xmax. Points are omitted if the resulting value of the functional is not a number (TMath::IsNan = kTRUE).

If log_scale=kTRUE (default is kFALSE), more points are used at the beginning of the line than at the end, with a logarithmic dependence. add new line to grid

Reimplemented in KVTGIDZA.

Definition at line 241 of file KVTGID.cpp.

◆ ClearIDTelescopes()

void KVTGID::ClearIDTelescopes ( )
inline

Definition at line 279 of file KVTGID.h.

◆ Compare()

Int_t KVTGID::Compare ( const TObject obj) const
virtual

Used to sort list of KVTGID in KVTGIDManager ID obj with smallest IDmax will be first in sorted list

Reimplemented from TNamed.

Definition at line 318 of file KVTGID.cpp.

◆ Copy()

void KVTGID::Copy ( TObject tgid) const
virtual

Copy this KVTGID function into the KVTGID object referenced by tgid.

Reimplemented from TF1.

Definition at line 139 of file KVTGID.cpp.

◆ GetAlpha()

Double_t KVTGID::GetAlpha ( ) const
inline

Definition at line 199 of file KVTGID.h.

◆ GetBeta()

Double_t KVTGID::GetBeta ( ) const
inline

Definition at line 207 of file KVTGID.h.

◆ GetDistanceToLine()

Double_t KVTGID::GetDistanceToLine ( Double_t  x,
Double_t  y,
Int_t  id,
Double_t params = 0 
)

Given a point (x,y) (which could, for example, be a point in a KVIDGrid line which we want to fit) we give the (vertical) distance to the functional identification line 'id'. If the point is below the line the distance is positive, if the point is above the line it is negative. If the parameter array 'params' is not given, we use the current values of the parameters.

Definition at line 364 of file KVTGID.cpp.

◆ GetEta()

Double_t KVTGID::GetEta ( ) const
inline

Definition at line 231 of file KVTGID.h.

◆ GetFunctionalType()

Int_t KVTGID::GetFunctionalType ( ) const
inline

Definition at line 84 of file KVTGID.h.

◆ GetFunctionName()

const Char_t* KVTGID::GetFunctionName ( ) const
inline

Definition at line 103 of file KVTGID.h.

◆ GetG()

Double_t KVTGID::GetG ( ) const
inline

Definition at line 175 of file KVTGID.h.

◆ GetIdentification()

Double_t KVTGID::GetIdentification ( Double_t  ID_min,
Double_t  ID_max,
Double_t ID_quality,
Double_t par = 0 
)
virtual

Use the functional with the current parameter values in order to perform an identification. The value returned is the estimated identification value. If the identification is not possible, -1 is returned (ID_quality=-1 also).

For status code use GetStatus().

ID_min and ID_max are the lower & upper limits for the identification. The functional must change sign between these two limits in order for the identification to be possible. ID_quality is the (absolute) value of the functional corresponding to the estimated identification: it is the distance from the identified point to the nearest identification line. Ideally it should be zero or as small as possible.

Optional argument "par" allows to replace the current parameters.

Definition at line 188 of file KVTGID.cpp.

◆ GetIDmax()

Double_t KVTGID::GetIDmax ( ) const
inline

Definition at line 120 of file KVTGID.h.

◆ GetIDmin()

Double_t KVTGID::GetIDmin ( ) const
inline

Definition at line 128 of file KVTGID.h.

◆ GetIDTelescopes()

const KVString& KVTGID::GetIDTelescopes ( ) const
inline

Definition at line 295 of file KVTGID.h.

◆ GetLambda()

Double_t KVTGID::GetLambda ( ) const
inline

Definition at line 159 of file KVTGID.h.

◆ GetLightEnergyDependence()

Int_t KVTGID::GetLightEnergyDependence ( ) const
inline

Definition at line 92 of file KVTGID.h.

◆ GetMassFormula()

Int_t KVTGID::GetMassFormula ( ) const
inline

Definition at line 239 of file KVTGID.h.

◆ GetMu()

Double_t KVTGID::GetMu ( ) const
inline

Definition at line 167 of file KVTGID.h.

◆ GetNu()

Double_t KVTGID::GetNu ( ) const
inline

Definition at line 215 of file KVTGID.h.

◆ GetNumberOfLTGParameters()

Int_t KVTGID::GetNumberOfLTGParameters ( Int_t  type,
Int_t  light 
)
static

Static function returning number of parameters used by Tassan-Got functional. Depends on type of functional (type) and whether non-linear light response is calculated or not (light). According to the (type, light) combination the numbers and orders of parameters are : type=0 light=0 5 parameters: lambda, mu, g, pdx, pdy type=0 light<>0 6 parameters: lambda, mu, g, pdx, pdy, eta type<>0 light=0 9 parameters: lambda, alpha, beta, mu, nu, xi, g, pdx, pdy type<>0 light<>0 10 parameters: lambda, alpha, beta, mu, nu, xi, g, pdx, pdy, eta}

Definition at line 700 of file KVTGID.cpp.

◆ GetPdx()

Double_t KVTGID::GetPdx ( ) const
inline

Definition at line 183 of file KVTGID.h.

◆ GetPdy()

Double_t KVTGID::GetPdy ( ) const
inline

Definition at line 191 of file KVTGID.h.

◆ GetStatus()

virtual Int_t KVTGID::GetStatus ( void  ) const
inlinevirtual

Definition at line 144 of file KVTGID.h.

◆ GetStatusString()

const Char_t * KVTGID::GetStatusString ( ) const
virtual

Returns explanatory message for value of GetStatus()

Definition at line 341 of file KVTGID.cpp.

◆ GetValidRuns()

const KVNumberList& KVTGID::GetValidRuns ( ) const
inline

Definition at line 252 of file KVTGID.h.

◆ GetVarX()

const Char_t* KVTGID::GetVarX ( ) const
inline

Definition at line 266 of file KVTGID.h.

◆ GetVarY()

const Char_t* KVTGID::GetVarY ( ) const
inline

Definition at line 274 of file KVTGID.h.

◆ GetXi()

Double_t KVTGID::GetXi ( ) const
inline

Definition at line 223 of file KVTGID.h.

◆ GetZorA()

Int_t KVTGID::GetZorA ( ) const
inline

Definition at line 88 of file KVTGID.h.

◆ init()

void KVTGID::init ( void  )
protected

Default intitialisations We remove this object from gROOT->GetListOfFunctions() to stop the TF1 constructors from deleting previous KVTGID's with the same name

Definition at line 29 of file KVTGID.cpp.

◆ IsValidForRun()

Bool_t KVTGID::IsValidForRun ( Int_t  run) const
inline

Returns kTRUE if 'run' is contained in list of runs for which fit is valid, fRuns. If fRuns is empty, returns kTRUE for ALL runs.

Definition at line 256 of file KVTGID.h.

◆ IsValidForTelescope()

Bool_t KVTGID::IsValidForTelescope ( KVBase tel) const
inline

return kTRUE if fit is good for this telescope

Definition at line 289 of file KVTGID.h.

◆ MakeTGID()

KVTGID * KVTGID::MakeTGID ( const Char_t name,
Int_t  type,
Int_t  light,
Int_t  ZorA,
Int_t  mass 
)
static

Static function used to create TGID objects

type --—> type of functional

  • type : =0->basic functional <>0->extended functional
  • * For the basic formula :
  • yy = ((g*E)**(mu+1)+lambda**(mu+1)*Z**2*A**mu)**(1/(mu+1))-g*E + pdy
  • * For the extended formula :
  • yy = ((g*E)**(mu+nu+1)+(lambda*Z**alpha*A**beta)**(mu+nu+1)+
  • xi*A**mu*(g*E)**nu)**(1/(mu+mu+1))-g*E + pdy

light --—> treatment of CsI total light output

  • light : =0->no non-linear light response <>0->non-linear light response included
  • * If ih=0 no non-linear light response : E=xx-pdx
  • * If ih<>0 non-linear light response included :
  • E = sqrt(h**2+2*rho*h*(1+log(1+h/rho)))
  • rho=eta*Z**2*A and h=xx-pdx

ZorA --—> functional used to find Z or A

  • ZorA : =0->A <>0->Z

Definition at line 429 of file KVTGID.cpp.

◆ Print()

void KVTGID::Print ( Option_t option = "") const
virtual

Print info on functional and grid.

Reimplemented from TF1.

Definition at line 300 of file KVTGID.cpp.

◆ ReadFromAsciiFile()

KVTGID * KVTGID::ReadFromAsciiFile ( const Char_t name,
std::ifstream &  gridfile 
)
static

Read parameters of LTG fit in file (which must have been written with current version of KVTGID::WriteToAsciiFile)

Definition at line 813 of file KVTGID.cpp.

◆ SetAlpha()

void KVTGID::SetAlpha ( Double_t  val)
inline

Definition at line 195 of file KVTGID.h.

◆ SetBeta()

void KVTGID::SetBeta ( Double_t  val)
inline

Definition at line 203 of file KVTGID.h.

◆ SetEta()

void KVTGID::SetEta ( Double_t  val)
inline

Definition at line 227 of file KVTGID.h.

◆ SetG()

void KVTGID::SetG ( Double_t  val)
inline

Definition at line 171 of file KVTGID.h.

◆ SetIdent()

virtual void KVTGID::SetIdent ( KVIDLine ,
Double_t  ID 
)
protectedpure virtual

Implemented in KVTGIDZA, and KVTGIDZ.

◆ SetIDmax()

void KVTGID::SetIDmax ( Double_t  x)
inline

Definition at line 116 of file KVTGID.h.

◆ SetIDmin()

void KVTGID::SetIDmin ( Double_t  x)
inline

Definition at line 124 of file KVTGID.h.

◆ SetIDTelescopes()

void KVTGID::SetIDTelescopes ( const TCollection list)

set list of ID telescopes for which fit is valid. any previous list is deleted.

Definition at line 743 of file KVTGID.cpp.

◆ SetLambda()

void KVTGID::SetLambda ( Double_t  val)
inline

Definition at line 155 of file KVTGID.h.

◆ SetLTGParameterNames()

void KVTGID::SetLTGParameterNames ( )

Definition at line 723 of file KVTGID.cpp.

◆ SetLTGParameters() [1/2]

void KVTGID::SetLTGParameters ( Double_t par)

'par' is an array containing the LTG functional parameters, whose number and order depends on fType & fLight:

fType=0, fLight=0: Double_t par[5];

par[0] = lambda par[1] = mu par[2] = g par[3] = pdx par[4] = pdy

fType=0, fLight<>0: Double_t par[6];

par[0] = lambda par[1] = mu par[2] = g par[3] = pdx par[4] = pdy par[5] = eta

fType<>0, fLight=0: Double_t par[9];

par[0] = lambda par[1] = alpha par[2] = beta par[3] = mu par[4] = nu par[5] = xi par[6] = g par[7] = pdx par[8] = pdy

fType<>0, fLight<>0: Double_t par[10];

par[0] = lambda par[1] = alpha par[2] = beta par[3] = mu par[4] = nu par[5] = xi par[6] = g par[7] = pdx par[8] = pdy par[9] = eta

Definition at line 527 of file KVTGID.cpp.

◆ SetLTGParameters() [2/2]

void KVTGID::SetLTGParameters ( Float_t par)

'par' is an array containing the LTG functional parameters, whose number and order depends on fType & fLight:

fType=0, fLight=0: Double_t par[5];

par[0] = lambda par[1] = mu par[2] = g par[3] = pdx par[4] = pdy

fType=0, fLight<>0: Double_t par[6];

par[0] = lambda par[1] = mu par[2] = g par[3] = pdx par[4] = pdy par[5] = eta

fType<>0, fLight=0: Double_t par[9];

par[0] = lambda par[1] = alpha par[2] = beta par[3] = mu par[4] = nu par[5] = xi par[6] = g par[7] = pdx par[8] = pdy

fType<>0, fLight<>0: Double_t par[10];

par[0] = lambda par[1] = alpha par[2] = beta par[3] = mu par[4] = nu par[5] = xi par[6] = g par[7] = pdx par[8] = pdy par[9] = eta

Definition at line 630 of file KVTGID.cpp.

◆ SetMassformula()

void KVTGID::SetMassformula ( Int_t  val)
inline

Definition at line 235 of file KVTGID.h.

◆ SetMu()

void KVTGID::SetMu ( Double_t  val)
inline

Definition at line 163 of file KVTGID.h.

◆ SetNu()

void KVTGID::SetNu ( Double_t  val)
inline

Definition at line 211 of file KVTGID.h.

◆ SetPdx()

void KVTGID::SetPdx ( Double_t  val)
inline

Definition at line 179 of file KVTGID.h.

◆ SetPdy()

void KVTGID::SetPdy ( Double_t  val)
inline

Definition at line 187 of file KVTGID.h.

◆ SetStringTelescopes()

void KVTGID::SetStringTelescopes ( const Char_t s)
inlineprotected

Set directly the contents of fTelescopes

Definition at line 76 of file KVTGID.h.

◆ SetValidRuns()

void KVTGID::SetValidRuns ( const KVNumberList r)
inline

Definition at line 248 of file KVTGID.h.

◆ SetVarX()

void KVTGID::SetVarX ( const Char_t x)
inline

Definition at line 262 of file KVTGID.h.

◆ SetVarY()

void KVTGID::SetVarY ( const Char_t x)
inline

Definition at line 270 of file KVTGID.h.

◆ SetXi()

void KVTGID::SetXi ( Double_t  val)
inline

Definition at line 219 of file KVTGID.h.

◆ WriteToAsciiFile()

void KVTGID::WriteToAsciiFile ( std::ofstream &  gridfile) const

Write parameters of LTG fit in file.

Definition at line 758 of file KVTGID.cpp.

Member Data Documentation

◆ fAlpha

Int_t KVTGID::fAlpha
protected

Definition at line 58 of file KVTGID.h.

◆ fBeta

Int_t KVTGID::fBeta
protected

Definition at line 59 of file KVTGID.h.

◆ fEta

Int_t KVTGID::fEta
protected

Definition at line 62 of file KVTGID.h.

◆ fG

Int_t KVTGID::fG
protected

Definition at line 55 of file KVTGID.h.

◆ fID_max

Double_t KVTGID::fID_max
protected

maximum ID fitted with functional

Definition at line 48 of file KVTGID.h.

◆ fID_min

Double_t KVTGID::fID_min
protected

minimum ID fitted with functional

Definition at line 47 of file KVTGID.h.

◆ fLambda

Int_t KVTGID::fLambda
protected

indices of parameters

Definition at line 53 of file KVTGID.h.

◆ fLight

Int_t KVTGID::fLight
protected

with (1) or without (0) CsI light-energy dependence

Definition at line 64 of file KVTGID.h.

◆ fMassFormula

Int_t KVTGID::fMassFormula
protected

mass formula used to calculate A from Z (if Z identification used)

Definition at line 66 of file KVTGID.h.

◆ fMu

Int_t KVTGID::fMu
protected

Definition at line 54 of file KVTGID.h.

◆ fNu

Int_t KVTGID::fNu
protected

Definition at line 60 of file KVTGID.h.

◆ fPdx

Int_t KVTGID::fPdx
protected

Definition at line 56 of file KVTGID.h.

◆ fPdy

Int_t KVTGID::fPdy
protected

Definition at line 57 of file KVTGID.h.

◆ fRuns

KVNumberList KVTGID::fRuns
protected

list of runs for which fit is valid

Definition at line 68 of file KVTGID.h.

◆ fStatus

Int_t KVTGID::fStatus
protected

transient member, holds status code of last call to GetIdentification

Definition at line 49 of file KVTGID.h.

◆ fTelescopes

KVString KVTGID::fTelescopes
protected

list of telescopes for which fit is valid

Definition at line 71 of file KVTGID.h.

◆ fTGIDFunctionName

TString KVTGID::fTGIDFunctionName
protected

name of KVTGIDFunctions:: namespace function used for identification

Definition at line 51 of file KVTGID.h.

◆ fType

Int_t KVTGID::fType
protected

type of functional (=0 standard, =1 extended)

Definition at line 63 of file KVTGID.h.

◆ fVarX

TString KVTGID::fVarX
protected

quantity used for X coordinates

Definition at line 69 of file KVTGID.h.

◆ fVarY

TString KVTGID::fVarY
protected

quantity used for Y coordinates

Definition at line 70 of file KVTGID.h.

◆ fXi

Int_t KVTGID::fXi
protected

Definition at line 61 of file KVTGID.h.

◆ fZorA

Int_t KVTGID::fZorA
protected

used for Z (1) or A (0) identification

Definition at line 65 of file KVTGID.h.


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