KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVIDZAFromZGrid Class Reference

Detailed Description

Hybrid charge & mass identification grid.

Such a grid can identify simultaneously both the mass and charge of detected particles (if contains a conversion table for the given element), or solely the charge (if no conversion table).

The conversion table has to be included in the parameter list of the grid as follow:

<PARAMETER> PIDRANGE=[zmax]
<PARAMETER> PIDRANGE[z]=[a1]:[PID min],[PID mean],[PID max]|[a2]:[PID min],[PID mean],[PID max]|[a3]:[PID min],[PID mean],[PID max]
(...)
double min(double x, double y)
double max(double x, double y)

with:

  • [zmax] highest Z for which A will be extracted
  • [z] charge corresponding to the following line
  • [ai] mass corresponding to the following interval
  • [PID mean] PID value of the peak corresponding to mass [ai]
  • [PID min/max] PID interval corresponding to mass [ai] used to attribute the ICODE (optional)

Identification quality codes

After each identification attempt, the value returned by GetQualityCode() indicates whether the identification was successful or not. The meaning of the different codes depends on the type of identification.

Z & A (mass & charge) isotopic identification grid

Z-only charge identification grid

In both cases, an acceptable identification is achieved if the quality code is kICODE0, kICODE1, kICODE2, or kICODE3.
Points with codes kICODE4 or kICODE5 are normally considered as "noise" and should be rejected.
Points which are (vertically) out of range for this grid have code kICODE6 (point too far below) or kICODE7 (point too far above).
Points with code kICODE8 are totally out of range.

Definition at line 79 of file KVIDZAFromZGrid.h.

#include <KVIDZAFromZGrid.h>

Inheritance diagram for KVIDZAFromZGrid:

Public Types

enum  PIDType { kNone , kPeackType , kIntType }
 
- Public Types inherited from KVIDZAGrid
enum  {
  kICODE0 , kICODE1 , kICODE2 , kICODE3 ,
  kICODE4 , kICODE5 , kICODE6 , kICODE7 ,
  kICODE8 , kICODE9 , kICODE10
}
 
- Public Types inherited from TGraph
enum  EStatusBits
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 

Public Member Functions

 KVIDZAFromZGrid ()
 
void ClearPIDIntervals ()
 
void Copy (TObject &obj) const
 
virtual double DeduceAfromPID (KVIdentificationResult *idr) const
 
void ExportToGrid ()
 
interval_setGetIntervalSet (int zint) const
 
KVListGetIntervalSets ()
 
KVMultiGaussIsotopeFitGetMultiGaussFit (int z) const
 
Bool_t HasMassIDCapability () const
 
virtual void Identify (Double_t x, Double_t y, KVIdentificationResult *) const
 
void Initialize ()
 
void LoadPIDRanges ()
 
bool MassIdentificationFromMultiGaussFit (KVMultiGaussIsotopeFit *, KVIdentificationResult *) const
 
void PrintPIDLimits ()
 
virtual void ReadFromAsciiFile (std::ifstream &gridfile)
 
void ReloadPIDRanges ()
 
void ResetPIDRanges ()
 
void SetOnlyZId (Bool_t=kTRUE)
 
virtual void WriteToAsciiFile (std::ofstream &gridfile)
 
- Public Member Functions inherited from KVIDZAGrid
 KVIDZAGrid ()
 default ctor.
 
 KVIDZAGrid (const KVIDZAGrid &)
 Copy constructor.
 
virtual ~KVIDZAGrid ()
 default dtor.
 
virtual void CalculateLineWidths ()
 
virtual TClassDefaultIDLineClass ()
 
void DrawLinesWithWidth ()
 
KVIDLineGetClosestLine () const
 
Double_t GetDistanceClosestLine () const
 
UChar_t GetIndexClosest () const
 
Int_t GetQualityCode () const
 
virtual KVIDZALineGetZALine (Int_t z, Int_t a, Int_t &) const
 
virtual KVIDZALineGetZLine (Int_t z, Int_t &) const
 
Int_t GetZmax () const
 
KVIDZALineGetZmaxLine () const
 
virtual void IdentZ (Double_t x, Double_t y, Double_t &Z)
 
virtual void IdentZA (Double_t x, Double_t y, Int_t &Z, Double_t &A)
 
KVIDGraphMakeSubsetGraph (Int_t Zmin, Int_t Zmax, const Char_t *="")
 virtual void MakeEDeltaEZGrid(Int_t Zmin, Int_t Zmax, Int_t npoints=20, Double_t gamma = 2);//*MENU*
 
KVIDGraphMakeSubsetGraph (TList *, TClass *=0)
 
void ReCheckQuality (Int_t &Z, Double_t &A)
 
void RemoveLine (Int_t Z, Int_t A=-1)
 Remove and destroy identifier.
 
void RemoveZLines (const Char_t *ZList)
 Remove and destroy identifiers.
 
void SetManualWidth (Double_t manual_width=.3, Double_t manual_width_scaling=0.05)
 
void SetVarXVarY (const char *VarX, const char *VarY)
 
- Public Member Functions inherited from KVIDGrid
 KVIDGrid ()
 Default constructor.
 
virtual ~KVIDGrid ()
 
virtual TClassDefaultOKLineClass ()
 
KVIDLineFindNearestEmbracingIDLine (Double_t x, Double_t y, const Char_t *position, const Char_t *axis, Int_t &idx, Int_t &idx_min, Int_t &idx_max, Double_t &dist, Double_t &dist_min, Double_t &dist_max) const
 
KVIDLineFindNearestIDLineFast (Double_t x, Double_t y, const Char_t *position, Int_t &idx, Int_t &idx_min, Int_t &idx_max, Double_t &dist, Double_t &dist_min, Double_t &dist_max) const
 
KVIDLineFindNextEmbracingLine (Int_t &index, Int_t inc_index, Double_t x, Double_t y, const Char_t *axis) const
 
Int_t GetIDLinesEmbracingPoint (const Char_t *direction, Double_t x, Double_t y) const
 
KVIDLineNewLine (const Char_t *idline_class="")
 
- Public Member Functions inherited from KVIDGraph
 KVIDGraph ()
 
 KVIDGraph (const KVIDGraph &)
 Copy constructor.
 
virtual ~KVIDGraph ()
 
virtual Bool_t AcceptIDForTest (const KVIdentificationResult &idr)
 
void Add (TString, KVIDentifier *)
 
KVIDentifierAdd (TString, TString)
 
virtual void AddCut (KVIDentifier *cut)
 
virtual void AddIdentifier (KVIDentifier *id)
 
void AddIDTelescope (KVBase *t)
 
void AddIDTelescopes (const TList *)
 Associate this graph with all ID telescopes in list.
 
virtual void AddInfo (KVIDentifier *info)
 
void AddParameter (char *Name, char *Value)
 
virtual Int_t CheckVersion (Int_t version)
 
virtual void Clear (Option_t *opt="")
 
void ClearListOfTelescopes ()
 
void ClearPad (TVirtualPad *)
 
virtual void Delete (Option_t *option="")
 
void Draw (Option_t *opt="")
 
virtual void DrawAndAdd (const Char_t *type="ID", const Char_t *classname="KVIDentifier")
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void DrawPanel ()
 
virtual void Dump () const
 
virtual Bool_t ExistVersion (Int_t version)
 
void ExtendBeginningAllIdentLines (Double_t, Option_t *="")
 
void ExtendEndAllIdentLines (Double_t, Option_t *="")
 
void FindAxisLimits ()
 Calculate X/Y min/max of all objects in graph.
 
virtual TFitResultPtr Fit (const char *formula, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
 
virtual TFitResultPtr Fit (TF1 *f1, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
 
virtual void FitPanel ()
 virtual void SetTitle(const char *title="") {TGraph::SetTitle(title);};
 
KVIDentifierGetCut (const Char_t *name) const
 
KVListGetCuts ()
 
const KVListGetCuts () const
 
KVIDentifierGetIdentifier (const Char_t *name) const
 
KVIDentifierGetIdentifier (Int_t Z, Int_t A) const
 
KVIDentifierGetIdentifierAt (Int_t index) const
 
KVListGetIdentifiers ()
 
const KVListGetIdentifiers () const
 
const Char_tGetIDTelescopeLabel () const
 
const TListGetIDTelescopes () const
 
KVIDentifierGetInfo (const Char_t *name) const
 
KVListGetInfos ()
 
const KVListGetInfos () const
 
KVIDGraphGetLastSavedVersion () const
 
Int_t GetMassFormula () const
 
const Char_tGetName () const
 
const Char_tGetNamesOfIDTelescopes () const
 
Int_t GetNumberOfCuts () const
 
Int_t GetNumberOfIdentifiers () const
 
Int_t GetNumberOfInfos () const
 
TVirtualPadGetPad () const
 
KVNameValueListGetParameters ()
 
const KVNameValueListGetParameters () const
 
TString GetPattern (void)
 
const Char_tGetRunList () const
 
const KVNumberListGetRuns () const
 
Axis_t GetXmax () const
 
Axis_t GetXmin () const
 
Double_t GetXScaleFactor ()
 
Axis_t GetYmax () const
 
Axis_t GetYmin () const
 
Double_t GetYScaleFactor ()
 
Bool_t HandlesIDTelescope (KVBase *t) const
 
void Increment (Float_t x)
 
virtual Int_t InsertPoint ()
 
virtual void Inspect () const
 
TVirtualPadIsDrawn () const
 
virtual Bool_t IsIdentifiable (Double_t, Double_t, TString *rejected_by=nullptr) const
 
Bool_t IsSorted () const
 
void Modified ()
 
void Print (Option_t *opt="") const
 Print out all objects in graph.
 
void ReadAsciiFile (const Char_t *filename)
 
virtual void ReadAsciiFile_WP (Int_t version=-1)
 lecture des grilles avec version suivant un modele de fichier
 
void RemoveCut (KVIDentifier *)
 Remove and destroy cut.
 
void RemoveIdentifier (KVIDentifier *)
 Remove and destroy identifier.
 
void RemoveIDTelescope (KVBase *t)
 
void RemoveInfo (KVIDentifier *)
 Remove and destroy cut.
 
virtual Int_t RemovePoint ()
 
virtual Int_t RemovePoint (Int_t i)
 
void ResetDraw ()
 
void ResetPad ()
 
void RevertToLastSavedVersion ()
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
void Scale (TF1 *sx, TF1 *sy)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetEditable (Bool_t editable=kTRUE)
 
virtual void SetFillAttributes ()
 
virtual void SetInfos (Double_t, Double_t, KVIdentificationResult *) const
 loop over KVIDGraph::fInfoZones to set flags in KVIdentificationResult
 
virtual void SetLineAttributes ()
 
void SetLineColor (Color_t lcolor)
 
void SetLineStyle (Style_t lstyle)
 
void SetLineWidth (Width_t lwidth)
 
virtual void SetMarkerAttributes ()
 
void SetMassFormula (Int_t)
 
virtual void SetMassIDCapability (Bool_t yes=kTRUE)
 
virtual void SetMaximum (Double_t maximum=-1111)
 
virtual void SetMinimum (Double_t minimum=-1111)
 
virtual void SetName (const char *name)
 
void SetPattern (TString pattern)
 
void SetRunList (const char *runlist)
 
void SetRuns (const KVNumberList &nl)
 Set list of runs for which grid is valid.
 
virtual void SetVarX (const char *v)
 
virtual void SetVarY (const char *v)
 
void SetXScaleFactor (Double_t=0)
 
void SetXVariable (const char *v)
 void SetIDTelescopes();// MENU={Hierarchy="Set.../ID Telescopes"}
 
void SetYScaleFactor (Double_t=0)
 
void SetYVariable (const char *v)
 
void SortIdentifiers ()
 
virtual void TestIdentification (TH2F *data, KVHashList &histos, KVNameValueList &histo_names)
 
void UnDraw ()
 
void UpdateLastSavedVersion ()
 update last saved version. mkae copy of current state of graph.
 
void WriteAsciiFile (const Char_t *filename)
 Open, write and close ascii file containing this grid.
 
virtual void WriteAsciiFile_WP (Int_t version=-1)
 
- Public Member Functions inherited from TCutG
 TCutG ()
 
 TCutG (const char *name, Int_t n, const Double_t *x, const Double_t *y)
 
 TCutG (const char *name, Int_t n, const Float_t *x, const Float_t *y)
 
 TCutG (const char *name, Int_t n=0)
 
 TCutG (const TCutG &cutg)
 
 ~TCutG () override
 
virtual Double_t Area () const
 
virtual void Center (Double_t &cx, Double_t &cy) const
 
TObjectGetObjectX () const
 
TObjectGetObjectY () const
 
const char * GetVarX () const
 
const char * GetVarY () const
 
virtual Double_t IntegralHist (TH2 *h, Option_t *option="") const
 
TClassIsA () const override
 
TCutGoperator= (const TCutG &)
 
void SavePrimitive (std::ostream &out, Option_t *option="") override
 
virtual void SetObjectX (TObject *obj)
 
virtual void SetObjectY (TObject *obj)
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TGraph
 TGraph ()
 
 TGraph (const char *filename, const char *format="%lg %lg", Option_t *option="")
 
 TGraph (const TF1 *f, Option_t *option="")
 
 TGraph (const TGraph &gr)
 
 TGraph (const TH1 *h)
 
 TGraph (const TVectorD &vx, const TVectorD &vy)
 
 TGraph (const TVectorF &vx, const TVectorF &vy)
 
 TGraph (Int_t n)
 
 TGraph (Int_t n, const Double_t *x, const Double_t *y)
 
 TGraph (Int_t n, const Double_t *y, Double_t start=0., Double_t step=1.)
 
 TGraph (Int_t n, const Float_t *x, const Float_t *y)
 
 TGraph (Int_t n, const Int_t *x, const Int_t *y)
 
 ~TGraph () override
 
virtual void AddPoint (Double_t x, Double_t y)
 
virtual void Apply (TF1 *f)
 
void Browse (TBrowser *b) override
 
virtual Double_t Chisquare (TF1 *f1, Option_t *option="") const
 
virtual void ComputeRange (Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const
 
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 
void Draw (Option_t *chopt="") override
 
virtual void DrawGraph (Int_t n, const Double_t *x=nullptr, const Double_t *y=nullptr, Option_t *option="")
 
virtual void DrawGraph (Int_t n, const Float_t *x, const Float_t *y, Option_t *option="")
 
virtual void DrawGraph (Int_t n, const Int_t *x, const Int_t *y, Option_t *option="")
 
virtual Double_t Eval (Double_t x, TSpline *spline=nullptr, Option_t *option="") const
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 
virtual void Expand (Int_t newsize)
 
virtual void Expand (Int_t newsize, Int_t step)
 
TObjectFindObject (const char *name) const override
 
TObjectFindObject (const TObject *obj) const override
 
virtual Double_t GetCorrelationFactor () const
 
virtual Double_t GetCovariance () const
 
Bool_t GetEditable () const
 
virtual Double_t GetErrorX (Int_t bin) const
 
virtual Double_t GetErrorXhigh (Int_t bin) const
 
virtual Double_t GetErrorXlow (Int_t bin) const
 
virtual Double_t GetErrorY (Int_t bin) const
 
virtual Double_t GetErrorYhigh (Int_t bin) const
 
virtual Double_t GetErrorYlow (Int_t bin) const
 
virtual Double_tGetEX () const
 
virtual Double_tGetEXhigh () const
 
virtual Double_tGetEXhighd () const
 
virtual Double_tGetEXlow () const
 
virtual Double_tGetEXlowd () const
 
virtual Double_tGetEY () const
 
virtual Double_tGetEYhigh () const
 
virtual Double_tGetEYhighd () const
 
virtual Double_tGetEYlow () const
 
virtual Double_tGetEYlowd () const
 
TF1GetFunction (const char *name) const
 
virtual TH1FGetHistogram () const
 
TListGetListOfFunctions () const
 
Double_t GetMaximum () const
 
Int_t GetMaxSize () const
 
virtual Double_t GetMean (Int_t axis=1) const
 
Double_t GetMinimum () const
 
Int_t GetN () const
 
char * GetObjectInfo (Int_t px, Int_t py) const override
 
virtual Int_t GetPoint (Int_t i, Double_t &x, Double_t &y) const
 
virtual Double_t GetPointX (Int_t i) const
 
virtual Double_t GetPointY (Int_t i) const
 
virtual Double_t GetRMS (Int_t axis=1) const
 
Double_tGetX () const
 
TAxisGetXaxis () const
 
Double_tGetY () const
 
TAxisGetYaxis () const
 
virtual void InitExpo (Double_t xmin=0, Double_t xmax=0)
 
virtual void InitGaus (Double_t xmin=0, Double_t xmax=0)
 
virtual void InitPolynom (Double_t xmin=0, Double_t xmax=0)
 
virtual void InsertPointBefore (Int_t ipoint, Double_t x, Double_t y)
 
virtual Double_t Integral (Int_t first=0, Int_t last=-1) const
 
TClassIsA () const override
 
virtual Bool_t IsEditable () const
 
virtual Bool_t IsHighlight () const
 
virtual Int_t IsInside (Double_t x, Double_t y) const
 
virtual void LeastSquareFit (Int_t m, Double_t *a, Double_t xmin=0, Double_t xmax=0)
 
virtual void LeastSquareLinearFit (Int_t n, Double_t &a0, Double_t &a1, Int_t &ifail, Double_t xmin=0, Double_t xmax=0)
 
virtual Int_t Merge (TCollection *list)
 
virtual void MovePoints (Double_t dx, Double_t dy, Bool_t logx=kFALSE, Bool_t logy=kFALSE)
 
TGraphoperator= (const TGraph &)
 
void Paint (Option_t *chopt="") override
 
void PaintGraph (Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)
 
void PaintGrapHist (Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)
 
virtual void PaintStats (TF1 *fit)
 
void Print (Option_t *chopt="") const override
 
void RecursiveRemove (TObject *obj) override
 
void SaveAs (const char *filename, Option_t *option="") const override
 
void SavePrimitive (std::ostream &out, Option_t *option="") override
 
virtual void Scale (Double_t c1=1., Option_t *option="y")
 
virtual void Set (Int_t n)
 
virtual void SetHighlight (Bool_t set=kTRUE)
 
virtual void SetHistogram (TH1F *h)
 
void SetName (const char *name="") override
 
void SetNameTitle (const char *name="", const char *title="") override
 
virtual void SetPoint (Int_t i, Double_t x, Double_t y)
 
virtual void SetPointX (Int_t i, Double_t x)
 
virtual void SetPointY (Int_t i, Double_t y)
 
virtual void SetStats (Bool_t stats=kTRUE)
 
void SetTitle (const char *title="") override
 
virtual void Sort (Bool_t(*greater)(const TGraph *, Int_t, Int_t)=&TGraph::CompareX, Bool_t ascending=kTRUE, Int_t low=0, Int_t high=-1111)
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void UseCurrentStyle () override
 
void Zero (Int_t &k, Double_t AZ, Double_t BZ, Double_t E2, Double_t &X, Double_t &Y, Int_t maxiterations)
 
- 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 ()
 
void Clear (Option_t *option="") override
 
TObjectClone (const char *newname="") const override
 
Int_t Compare (const TObject *obj) const override
 
void Copy (TObject &named) const override
 
virtual void FillBuffer (char *&buffer)
 
const char * GetName () const override
 
const char * GetTitle () const override
 
ULong_t Hash () const override
 
TClassIsA () const override
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 
TNamedoperator= (const TNamed &rhs)
 
void Print (Option_t *option="") const override
 
virtual Int_t Sizeof () const
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- 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 Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 
virtual void Fatal (const char *method, const char *msgfmt,...) 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
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 
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, void *vp)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, void *vp)
 
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)
 
void ResetBit (UInt_t f)
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetUniqueID (UInt_t uid)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
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 Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=nullptr, 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 SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- 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 SetFillColor (Color_t fcolor)
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 
virtual void SetFillStyle (Style_t fstyle)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- 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 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)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Private Member Functions

int is_inside (double pid) const
 

Private Attributes

KVUniqueNameList fFits
 multi-gaussian fits for mass id
 
Bool_t fHasMassIDRegion
 set to true if grid has a limited region for mass identification, indicated by an info "MassID"
 
Bool_t fIgnoreMassID
 
Bool_t fPIDRange
 
KVList fTables
 intervals for mass id
 
Int_t fZmaxInt
 
Int_t fZminInt
 

Additional Inherited Members

- Static Public Member Functions inherited from KVIDGraph
static KVIDGraphAddGraphs (KVIDGraph *g1, Int_t id1_min, Int_t id1_max, KVIDGraph *g2, Int_t id2_min, Int_t id2_max)
 
static Bool_t GetAutoAdd ()
 
static KVIDGraphMakeIDGraph (const Char_t *)
 
static void SetAutoAdd (Bool_t yes=kTRUE)
 
- Static Public Member Functions inherited from TCutG
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGraph
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static Bool_t CompareArg (const TGraph *gr, Int_t left, Int_t right)
 
static Bool_t CompareRadius (const TGraph *gr, Int_t left, Int_t right)
 
static Bool_t CompareX (const TGraph *gr, Int_t left, Int_t right)
 
static Bool_t CompareY (const TGraph *gr, Int_t left, Int_t right)
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
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 TAttLine
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttFill
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttMarker
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Width_t GetMarkerLineWidth (Style_t style)
 
static Style_t GetMarkerStyleBase (Style_t style)
 
- Public Attributes inherited from TGraph
 kClipFrame
 
 kIsHighlight
 
 kIsSortedX
 
 kNoStats
 
 kNotEditable
 
 kResetHisto
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Member Functions inherited from TGraph
virtual Double_t ** Allocate (Int_t newsize)
 
Double_t ** AllocateArrays (Int_t Narrays, Int_t arraySize)
 
virtual void CopyAndRelease (Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
 
virtual Bool_t CopyPoints (Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
 
Bool_t CtorAllocate ()
 
virtual Bool_t DoMerge (const TGraph *g)
 
Double_t ** ExpandAndCopy (Int_t size, Int_t iend)
 
virtual void FillZero (Int_t begin, Int_t end, Bool_t from_ctor=kTRUE)
 
TString SaveArray (std::ostream &out, const char *suffix, Int_t frameNumber, Double_t *arr)
 
void SaveHistogramAndFunctions (std::ostream &out, const char *varname, Int_t &frameNumber, Option_t *option)
 
Double_t ** ShrinkAndCopy (Int_t size, Int_t iend)
 
virtual void SwapPoints (Int_t pos1, Int_t pos2)
 
virtual void UpdateArrays (const std::vector< Int_t > &sorting_indices, Int_t numSortedPoints, Int_t low)
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 
- Static Protected Member Functions inherited from TGraph
static void SwapValues (Double_t *arr, Int_t pos1, Int_t pos2)
 
- Protected Attributes inherited from TCutG
TObjectfObjectX
 
TObjectfObjectY
 
TString fVarX
 
TString fVarY
 
- Protected Attributes inherited from TGraph
TListfFunctions
 
TH1FfHistogram
 
Double_t fMaximum
 
Int_t fMaxSize
 
Double_t fMinimum
 
Int_t fNpoints
 
Double_tfX
 
Double_tfY
 
- 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
 

Member Enumeration Documentation

◆ PIDType

Enumerator
kNone 
kPeackType 
kIntType 

Definition at line 82 of file KVIDZAFromZGrid.h.

Constructor & Destructor Documentation

◆ KVIDZAFromZGrid()

KVIDZAFromZGrid::KVIDZAFromZGrid ( )

Default constructor Grid is declared as a 'ZOnlyGrid' by default (this is internal mechanics)

Definition at line 19 of file KVIDZAFromZGrid.cpp.

Member Function Documentation

◆ ClearPIDIntervals()

void KVIDZAFromZGrid::ClearPIDIntervals ( )

Definition at line 221 of file KVIDZAFromZGrid.cpp.

◆ Copy()

void KVIDZAFromZGrid::Copy ( TObject obj) const
virtual

This method copies the current state of 'this' object into 'obj' You should add here any member variables, for example: (supposing a member variable KVIDZAFromZGrid::fToto) CastedObj.fToto = fToto; or CastedObj.SetToto( GetToto() );

Reimplemented from KVIDZAGrid.

Definition at line 42 of file KVIDZAFromZGrid.cpp.

◆ DeduceAfromPID()

double KVIDZAFromZGrid::DeduceAfromPID ( KVIdentificationResult idr) const
virtual

First look for a set of mass intervals in which the PID of the identification result falls, if there is one (see KVIDZAFromZGrid::is_inside). If an interval set is found for a Z different to the original identification, idr->Z is changed. Then call interval_set::eval for the mass interval for this Z.

Definition at line 444 of file KVIDZAFromZGrid.cpp.

◆ ExportToGrid()

void KVIDZAFromZGrid::ExportToGrid ( )

Definition at line 466 of file KVIDZAFromZGrid.cpp.

◆ GetIntervalSet()

interval_set * KVIDZAFromZGrid::GetIntervalSet ( int  zint) const

Definition at line 190 of file KVIDZAFromZGrid.cpp.

◆ GetIntervalSets()

KVList * KVIDZAFromZGrid::GetIntervalSets ( )
inline

Definition at line 116 of file KVIDZAFromZGrid.h.

◆ GetMultiGaussFit()

KVMultiGaussIsotopeFit * KVIDZAFromZGrid::GetMultiGaussFit ( int  z) const
inline

Definition at line 151 of file KVIDZAFromZGrid.h.

◆ HasMassIDCapability()

Bool_t KVIDZAFromZGrid::HasMassIDCapability ( ) const
inlinevirtual

Overrides KVIDGraph::HasMassIDCapability

Returns true if at least one mass interval (PID range) is defined, UNLESS fIgnoreMassID=true (set by putting <PARAMETER> IgnoreMassID=1 in grid file)

Note that IsOnlyZId() returns kTRUE for KVIDZAFromZGrid and thus should not be used to know if a grid can identify masses

Reimplemented from KVIDGraph.

Definition at line 127 of file KVIDZAFromZGrid.h.

◆ Identify()

void KVIDZAFromZGrid::Identify ( Double_t  x,
Double_t  y,
KVIdentificationResult idr 
) const
virtual

Fill the KVIdentificationResult object with the results of identification for point (x,y) corresponding to some physically measured quantities related to a reconstructed nucleus.

If identification is successful, idr->IDOK = true. In this case, idr->Aident and idr->Zident indicate whether isotopic or only Z identification was acheived.

In case of unsuccessful identification, idr->IDOK = false, BUT idr->Zident and/or idr->Aident may be true: this is to indicate which kind of identification was attempted but failed (this changes the meaning of the quality code)

Reimplemented from KVIDZAGrid.

Definition at line 349 of file KVIDZAFromZGrid.cpp.

◆ Initialize()

void KVIDZAFromZGrid::Initialize ( )
virtual

General initialisation method for identification grid. This method MUST be called once before using the grid for identifications. The ID lines are sorted. The natural line widths of all ID lines are calculated. The line with the largest Z (Zmax line) is found.

Reimplemented from KVIDZAGrid.

Definition at line 274 of file KVIDZAFromZGrid.cpp.

◆ is_inside()

int KVIDZAFromZGrid::is_inside ( double  pid) const
private

Look for a set of mass-interval definitions in which the given PID falls (PID from linearisation of Z identification). In principle this should be the set corresponding to Z=nint(PID), but if not Z+/-1 are also tried. Returns the value of Z for the set found (or 0 if no set found)

Definition at line 238 of file KVIDZAFromZGrid.cpp.

◆ LoadPIDRanges()

void KVIDZAFromZGrid::LoadPIDRanges ( )

Definition at line 126 of file KVIDZAFromZGrid.cpp.

◆ MassIdentificationFromMultiGaussFit()

bool KVIDZAFromZGrid::MassIdentificationFromMultiGaussFit ( KVMultiGaussIsotopeFit fitfunc,
KVIdentificationResult idr 
) const

Definition at line 317 of file KVIDZAFromZGrid.cpp.

◆ PrintPIDLimits()

void KVIDZAFromZGrid::PrintPIDLimits ( )

((interval_set*)fTables.At(12))->fIntervals.ls(); for (int zz = fZminInt; zz <= fZmaxInt; zz++) { Info("PrintPIDLimits", "Z=%2d [%.4lf %.4lf]", zz, ((interval_set*)fTables.At(zz - fZminInt))->fPIDmins.at(0), ((interval_set*)fTables.At(zz - fZminInt))->fPIDmaxs.at(((interval_set*)fTables.At(zz - fZminInt))->fNPIDs - 1)); }

Definition at line 207 of file KVIDZAFromZGrid.cpp.

◆ ReadFromAsciiFile()

void KVIDZAFromZGrid::ReadFromAsciiFile ( std::ifstream &  gridfile)
virtual

fPIDRange = kFALSE; KVIDGraph::ReadFromAsciiFile(gridfile); if (GetParameters()->HasParameter("PIDRANGE")) { fPIDRange = kTRUE; fZmaxInt = GetParameters()->GetIntValue("PIDRANGE"); LoadPIDRanges(); }

Reimplemented from KVIDGraph.

Definition at line 73 of file KVIDZAFromZGrid.cpp.

◆ ReloadPIDRanges()

void KVIDZAFromZGrid::ReloadPIDRanges ( )

Definition at line 180 of file KVIDZAFromZGrid.cpp.

◆ ResetPIDRanges()

void KVIDZAFromZGrid::ResetPIDRanges ( )

Definition at line 170 of file KVIDZAFromZGrid.cpp.

◆ SetOnlyZId()

void KVIDZAFromZGrid::SetOnlyZId ( Bool_t  = kTRUE)
inlinevirtual

Overrides KVIDGraph::SetOnlyZId

fOnlyZId is really an internal variable, and must always be kTRUE for a KVIDZAFromZGrid.

Therefore we disable the possibility to change it.

Reimplemented from KVIDGraph.

Definition at line 139 of file KVIDZAFromZGrid.h.

◆ WriteToAsciiFile()

void KVIDZAFromZGrid::WriteToAsciiFile ( std::ofstream &  gridfile)
virtual

Reimplemented from KVIDGraph.

Definition at line 116 of file KVIDZAFromZGrid.cpp.

Member Data Documentation

◆ fFits

KVUniqueNameList KVIDZAFromZGrid::fFits
private

multi-gaussian fits for mass id

Definition at line 93 of file KVIDZAFromZGrid.h.

◆ fHasMassIDRegion

Bool_t KVIDZAFromZGrid::fHasMassIDRegion
private

set to true if grid has a limited region for mass identification, indicated by an info "MassID"

Definition at line 96 of file KVIDZAFromZGrid.h.

◆ fIgnoreMassID

Bool_t KVIDZAFromZGrid::fIgnoreMassID
private

Definition at line 95 of file KVIDZAFromZGrid.h.

◆ fPIDRange

Bool_t KVIDZAFromZGrid::fPIDRange
private

Definition at line 90 of file KVIDZAFromZGrid.h.

◆ fTables

KVList KVIDZAFromZGrid::fTables
private

intervals for mass id

Definition at line 92 of file KVIDZAFromZGrid.h.

◆ fZmaxInt

Int_t KVIDZAFromZGrid::fZmaxInt
private

Definition at line 89 of file KVIDZAFromZGrid.h.

◆ fZminInt

Int_t KVIDZAFromZGrid::fZminInt
private

Definition at line 91 of file KVIDZAFromZGrid.h.