KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KVIDZAFromZGrid Class Reference

Hybrid 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]
(...)

with:

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 76 of file KVIDZAFromZGrid.h.

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 ()
 
virtual ~KVIDZAFromZGrid ()
 Destructor. More...
 
void ClearPIDIntervals ()
 
void Copy (TObject &obj) const
 
virtual double DeduceAfromPID (KVIdentificationResult *idr) const
 
void ExportToGrid ()
 
interval_setGetIntervalSet (int zint) const
 
KVListGetIntervalSets ()
 
Bool_t HasMassIDCapability () const
 
virtual void Identify (Double_t x, Double_t y, KVIdentificationResult *) const
 
void Initialize ()
 
void LoadPIDRanges ()
 
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. More...
 
 KVIDZAGrid (const KVIDZAGrid &)
 Copy constructor. More...
 
virtual ~ KVIDZAGrid ()
 
void AddParameter (char *Name, char *Value)
 
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* More...
 
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. More...
 
void RemoveZLines (const Char_t *ZList)
 Remove and destroy identifiers. More...
 
void SetManualWidth (Double_t manual_width=.3, Double_t manual_width_scaling=0.05)
 
void SetVarXVarY (char *VarX, char *VarY)
 
- Public Member Functions inherited from KVIDGrid
 KVIDGrid ()
 Default constructor. More...
 
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. More...
 
virtual ~KVIDGraph ()
 Destructor. More...
 
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. More...
 
virtual void AddInfo (KVIDentifier *info)
 
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 FindAxisLimits ()
 Calculate X/Y min/max of all objects in graph. More...
 
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);}; More...
 
KVIDentifierGetCut (const Char_t *name) const
 
KVListGetCuts () const
 
KVIDentifierGetIdentifier (const Char_t *name) const
 
KVIDentifierGetIdentifier (Int_t Z, Int_t A) const
 
KVIDentifierGetIdentifierAt (Int_t index) const
 
KVListGetIdentifiers () const
 
const Char_tGetIDTelescopeLabel () const
 
const TListGetIDTelescopes () const
 
KVIDentifierGetInfo (const Char_t *name) 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
 
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. More...
 
void ReadAsciiFile (const Char_t *filename)
 
virtual void ReadAsciiFile_WP (Int_t version=-1)
 lecture des grilles avec version suivant un modele de fichier More...
 
void RemoveCut (KVIDentifier *)
 Remove and destroy cut. More...
 
void RemoveIdentifier (KVIDentifier *)
 Remove and destroy identifier. More...
 
void RemoveIDTelescope (KVBase *t)
 
void RemoveInfo (KVIDentifier *)
 Remove and destroy cut. More...
 
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 More...
 
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. More...
 
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"} More...
 
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. More...
 
void WriteAsciiFile (const Char_t *filename)
 Open, write and close ascii file containing this grid. More...
 
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)
 
virtual ~TCutG ()
 
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
 
TCutGoperator= (const TCutG &)
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
virtual void SetObjectX (TObject *obj)
 
virtual void SetObjectY (TObject *obj)
 
- 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 Float_t *x, const Float_t *y)
 
 TGraph (Int_t n, const Int_t *x, const Int_t *y)
 
virtual ~TGraph ()
 
virtual void AddPoint (Double_t x, Double_t y)
 
virtual void Apply (TF1 *f)
 
virtual void Browse (TBrowser *b)
 
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
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
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
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Expand (Int_t newsize)
 
virtual void Expand (Int_t newsize, Int_t step)
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
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
 
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
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
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
 
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 &)
 
virtual void Paint (Option_t *chopt="")
 
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)
 
virtual void RecursiveRemove (TObject *obj)
 
virtual void Set (Int_t n)
 
virtual void SetHighlight (Bool_t set=kTRUE)
 
virtual void SetHistogram (TH1F *h)
 
virtual void SetNameTitle (const char *name="", const char *title="")
 
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)
 
virtual void SetTitle (const char *title="")
 
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)
 
virtual void UseCurrentStyle ()
 
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 ()
 
virtual TObjectClone (const char *newname="") const
 
virtual Int_t Compare (const TObject *obj) const
 
virtual void FillBuffer (char *&buffer)
 
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 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 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 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)
 
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)
 
void ResetBit (UInt_t f)
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
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 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 SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 
- 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)
 
- 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)
 

Protected Member Functions

int is_inside (double pid) const
 
- Protected Member Functions inherited from KVIDZAGrid
virtual Bool_t FindFourEmbracingLines (Double_t x, Double_t y, const Char_t *position)
 
void init ()
 initialisation More...
 
void SetZmax (Int_t z)
 
- Protected Member Functions inherited from KVIDGrid
void init ()
 Initialisations, used by constructors. More...
 
void ReadIdentifierFromAsciiFile (TString &name, TString &type, TString &cl, std::ifstream &gridfile)
 
- Protected Member Functions inherited from KVIDGraph
virtual void BackwardsCompatibilityFix ()
 
void init ()
 
Bool_t IsOnlyZId () const
 
virtual KVIDentifierNew (const Char_t *)
 Create new object of class "id_class" which derives from KVIDentifier. More...
 
void Scale (Double_t sx=-1, Double_t sy=-1)
 Called by SetX/YScaleFactor methods to rescale every point of every object in the grid. More...
 
void WriteParameterListOfIDTelescopes ()
 
- 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)
 
Double_t ** ShrinkAndCopy (Int_t size, Int_t iend)
 
virtual void SwapPoints (Int_t pos1, Int_t pos2)
 
- 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

Bool_t fHasMassIDRegion
 set to true if grid has a limited region for mass identification, indicated by an info "MassID" More...
 
Bool_t fIgnoreMassID
 
Bool_t fPIDRange
 
KVList fTables
 
Int_t fZmaxInt
 
Int_t fZminInt
 
- Protected Attributes inherited from KVIDZAGrid
Int_t Ainf
 
Int_t Ainfi
 
Int_t Aint
 mass of line used to identify particle More...
 
Int_t Asup
 
Int_t Asups
 
Double_t dinf
 
Double_t dinfi
 
Double_t dsup
 
Double_t dsups
 
KVIDLinefClosest
 closest line to last-identified point More...
 
Double_t fDistanceClosest
 distance from point to closest line More...
 
Int_t fICode
 code de retour More...
 
Int_t fIdxClosest
 index of closest line in main list fIdentifiers More...
 
KVIDLinefLinf
 
KVIDLinefLinfi
 
KVIDLinefLsup
 
KVIDLinefLsups
 
UShort_t fZMax
 largest Z of lines in grid More...
 
KVIDZALinefZMaxLine
 line with biggest Z and A More...
 
Int_t kinf
 
Int_t kinfi
 
Int_t ksup
 
Int_t ksups
 used by IdentZA and IdentZ More...
 
Double_t winf
 
Double_t winfi
 
Double_t wsup
 
Double_t wsups
 
Int_t Zinf
 
Int_t Zinfi
 
Int_t Zint
 Z of line used to identify particle. More...
 
Int_t Zsup
 
Int_t Zsups
 
- Protected Attributes inherited from KVIDGraph
KVListfCuts
 cuts used to define area in which identification is possible More...
 
TString fDyName
 dynamically generated name More...
 
KVListfIdentifiers
 list of identification objects More...
 
KVListfInfoZones
 contours/lines used to add info to particles (ex: punch-through) More...
 
KVIDGraphfLastSavedVersion
 copy of last save version of grid, used for 'undo' More...
 
Double_t fLastScaleX
 last applied scaling factor on X More...
 
Double_t fLastScaleY
 last applied scaling factor on Y More...
 
Int_t fMassFormula
 OPTION={GetMethod="GetMassFormula";SetMethod="SetMassFormula";Items=(0="Beta-stability", 1="VEDA mass", 2="EAL mass", 3="EAL residues", 99="2Z+1")} More...
 
Bool_t fOnlyZId
 set to kTRUE when only to be used to give Z identification of nuclei, no mass info More...
 
TVirtualPadfPad
 pad in which graph is drawn More...
 
KVNameValueListfPar
 parameters associated to grid More...
 
TString fPattern
 pattern of filenames used to write or read grid More...
 
KVNumberList fRunList
 runs for which grid is valid More...
 
TList fTelescopes
 ID telescopes for which grid is valid. More...
 
Axis_t fXmax
 min/max X coordinates of graph More...
 
Axis_t fXmin
 
Axis_t fYmax
 min/max Y coordinates of graph More...
 
Axis_t fYmin
 
- 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
 

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 KVIDGraphMakeIDGraph (const Char_t *)
 
static void SetAutoAdd (Bool_t yes=kTRUE)
 
- Static Public Member Functions inherited from TGraph
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 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)
 
- 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
 
- Static Protected Member Functions inherited from TGraph
static void SwapValues (Double_t *arr, Int_t pos1, Int_t pos2)
 
- Static Protected Attributes inherited from KVIDGraph
static Bool_t fAutoAddGridManager = kTRUE
 if =kTRUE, grids are automatically added to ID grid manager on creation (default) More...
 

#include <KVIDZAFromZGrid.h>

Inheritance diagram for KVIDZAFromZGrid:
Inheritance graph
[legend]

Member Enumeration Documentation

◆ PIDType

Enumerator
kNone 
kPeackType 
kIntType 

Definition at line 79 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.

◆ ~KVIDZAFromZGrid()

KVIDZAFromZGrid::~KVIDZAFromZGrid ( )
virtual

Destructor.

Definition at line 35 of file KVIDZAFromZGrid.cpp.

Member Function Documentation

◆ ClearPIDIntervals()

void KVIDZAFromZGrid::ClearPIDIntervals ( )

Definition at line 224 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 51 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 407 of file KVIDZAFromZGrid.cpp.

◆ ExportToGrid()

void KVIDZAFromZGrid::ExportToGrid ( )

Definition at line 429 of file KVIDZAFromZGrid.cpp.

◆ GetIntervalSet()

interval_set * KVIDZAFromZGrid::GetIntervalSet ( int  zint) const

Definition at line 193 of file KVIDZAFromZGrid.cpp.

◆ GetIntervalSets()

KVList* KVIDZAFromZGrid::GetIntervalSets ( )
inline

Definition at line 111 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 122 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 317 of file KVIDZAFromZGrid.cpp.

◆ Initialize()

void KVIDZAFromZGrid::Initialize ( void  )
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 277 of file KVIDZAFromZGrid.cpp.

◆ is_inside()

int KVIDZAFromZGrid::is_inside ( double  pid) const
protected

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 241 of file KVIDZAFromZGrid.cpp.

◆ LoadPIDRanges()

void KVIDZAFromZGrid::LoadPIDRanges ( )

Definition at line 129 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 210 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 76 of file KVIDZAFromZGrid.cpp.

◆ ReloadPIDRanges()

void KVIDZAFromZGrid::ReloadPIDRanges ( )

Definition at line 183 of file KVIDZAFromZGrid.cpp.

◆ ResetPIDRanges()

void KVIDZAFromZGrid::ResetPIDRanges ( )

Definition at line 173 of file KVIDZAFromZGrid.cpp.

◆ SetOnlyZId()

void KVIDZAFromZGrid::SetOnlyZId ( Bool_t  yes = kTRUE)
inlinevirtual

Use this method if the graph is only to be used for Z identification (no isotopic information). Default is to identify both Z & A (fOnlyZid = kFALSE). Note that setting fOnlyZid=kTRUE changes the way line widths are calculated (see KVIDGrid::CalculateLineWidths)

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 134 of file KVIDZAFromZGrid.h.

◆ WriteToAsciiFile()

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

Write info on this grid in already-open ascii file stream 'gridfile'. This begins with the line ++ClassName where '"ClassName'" is the name of the class of the actual instance of this object followed by informations on the grid and its objects.

The names associated to the X & Y axis of the identification map are written on lines beginning with VARX> VARY> Any associated parameters are written before the objects, starting with PARAMETER> then the name of the parameter and its value e.e. PARAMETER> ChIo pressure=45.5 A single '!' on a line by itself signals the end of the informations for this grid.

Scaling factors Any scaling factors are written in the file as PARAMETER> XScaleFactor=... PARAMETER> YScaleFactor=... However the coordinates written in the file are the unscaled factors When the file is read back again, the unscaled coordinates are read in and then the scaling is applied.

Reimplemented from KVIDGraph.

Definition at line 119 of file KVIDZAFromZGrid.cpp.

Member Data Documentation

◆ fHasMassIDRegion

Bool_t KVIDZAFromZGrid::fHasMassIDRegion
protected

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

Definition at line 92 of file KVIDZAFromZGrid.h.

◆ fIgnoreMassID

Bool_t KVIDZAFromZGrid::fIgnoreMassID
protected

Definition at line 91 of file KVIDZAFromZGrid.h.

◆ fPIDRange

Bool_t KVIDZAFromZGrid::fPIDRange
protected

Definition at line 87 of file KVIDZAFromZGrid.h.

◆ fTables

KVList KVIDZAFromZGrid::fTables
protected

Definition at line 89 of file KVIDZAFromZGrid.h.

◆ fZmaxInt

Int_t KVIDZAFromZGrid::fZmaxInt
protected

Definition at line 86 of file KVIDZAFromZGrid.h.

◆ fZminInt

Int_t KVIDZAFromZGrid::fZminInt
protected

Definition at line 88 of file KVIDZAFromZGrid.h.


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