![]() |
KaliVeda
Toolkit for HIC analysis
|
Base class for identification ridge lines corresponding to different nuclear species.
Each line is named "Z=x A=y" where x is the atomic number of the corresponding element (can be set with SetZ()) and y is the mass number (SetA). If only Z is set, the mass number is calculated according to one of the mass formulae defined in KVNucleus class. The default is the default for KVNucleus; you can change it with SetMassFormula.
The sorting function Compare() sorts the lines as a function of increasing Z, then increasing A (i.e. p,d,t,3He,4He,6He, etc. etc.)
Definition at line 33 of file KVIDZALine.h.
#include <KVIDZALine.h>
Public Member Functions | |
KVIDZALine () | |
KVIDZALine (const KVIDZALine &) | |
copy constructor More... | |
virtual | ~ KVIDZALine () |
virtual Int_t | Compare (const TObject *) const |
void | Copy (TObject &obj) const |
copy 'this' to 'obj' More... | |
TGraphErrors * | GetLineWithWidth () |
Double_t | GetWidth () const |
virtual void | Print (Option_t *opt="") const |
void | ReadAsciiFile_KVIDZLine (std::ifstream &) |
void | SetWidth (Double_t w) |
![]() | |
KVIDLine () | |
Default ctor. More... | |
KVIDLine (const KVIDLine &) | |
copy constructor More... | |
KVIDLine (const TGraph &gr) | |
initialize KVIDLine using TGraph copy ctor More... | |
virtual | ~ KVIDLine () |
Double_t | DistanceToLine (Double_t px, Double_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2, Int_t &) |
Double_t | DistanceToLine (Double_t px, Double_t py, Int_t &) |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
void | GetEndPoint (Double_t &x, Double_t &y) const |
void | GetStartPoint (Double_t &x, Double_t &y) const |
Bool_t | IsBetweenEndPoints (Double_t x, Double_t y, const Char_t *axis="") const |
Bool_t | PosRelToLine (Option_t *opt, Double_t px, Double_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2) |
virtual void | WaitForPrimitive () |
Bool_t | WhereAmI (Double_t px, Double_t py, Option_t *opt) |
![]() | |
KVIDentifier () | |
Default constructor. More... | |
KVIDentifier (const KVIDentifier &) | |
KVIDentifier (const TCutG &) | |
copy a TCutG More... | |
KVIDentifier (const TGraph &) | |
copy a TGraph More... | |
virtual | ~KVIDentifier () |
Destructor. More... | |
virtual Int_t | AddPointAtTheEnd () |
virtual void | ChechHierarchy (KVIDentifier *gr) |
virtual void | CloneScaleStore (Int_t newzt, Int_t newat, Double_t dy=0., Double_t sx=1., Double_t sy=1.) |
Int_t | Compare (const TObject *) const |
virtual Int_t | ContinueDrawing () |
Continue to draw an existing the line. More... | |
void | Copy (TObject &obj) const |
Copy attributes of this identifier into 'obj'. More... | |
void | CopyGraph (const TGraph &) |
Copy coordinates of points from the TGraph. More... | |
void | CopyGraph (TGraph *) |
Copy coordinates of points from the TGraph. More... | |
virtual Int_t | DecreaseNumberOfPoints () |
virtual void | Delete (Option_t *option="") |
virtual void | DrawClass () const |
virtual TObject * | DrawClone (Option_t *option="") const |
virtual void | DrawPanel () |
virtual void | Dump () const |
void | ExtendLine (bool fromBeginning, Double_t Limit, Option_t *Direction) |
void | ExtendLine (Double_t, Option_t *Direction="") |
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 Int_t | GetA () const |
virtual Int_t | GetID () const |
virtual Int_t | GetMassFormula () const |
KVIDGraph * | GetParent () const |
Get pointer to parent ID graph. More... | |
virtual Double_t | GetPID () const |
virtual Int_t | GetZ () const |
virtual Int_t | IncreaseNumberOfPoints () |
virtual Int_t | InsertPoint () |
Insert a new point at the mouse position. More... | |
virtual Int_t | InsertSmoothPoint () |
Insert a new point at the mouse X position using a smooth evaluation of the Y. More... | |
virtual void | Inspect () const |
virtual Bool_t | OnlyZId () const |
virtual void | ReadAsciiFile (std::ifstream &) |
virtual Int_t | RemoveFirstPoint () |
virtual Int_t | RemoveLastPoint () |
virtual Int_t | RemovePoint () |
virtual Int_t | RemovePoint (Int_t i) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
virtual void | Scale (Double_t sx=-1, Double_t sy=-1) |
virtual void | Scale (TF1 *sx, TF1 *sy) |
virtual void | SetA (Int_t atnum) |
virtual void | SetAandZ (Int_t atnum, Int_t ztnum) |
virtual void | SetDrawOption (Option_t *option="") |
virtual void | SetFillAttributes () |
virtual void | SetLineAttributes () |
virtual void | SetMarkerAttributes () |
virtual void | SetMassFormula (Int_t mf) |
virtual void | SetMaximum (Double_t maximum=-1111) |
virtual void | SetMinimum (Double_t minimum=-1111) |
virtual void | SetOnlyZId (Bool_t onlyz=kTRUE) |
void | SetParent (KVIDGraph *) |
Set pointer to parent ID graph. More... | |
virtual void | SetTitle (const char *title="") |
virtual void | SetZ (Int_t ztnum) |
virtual Int_t | SortPoints (Bool_t ascending=kTRUE) |
virtual Bool_t | TestPoint (Double_t, Double_t) |
virtual void | WriteAsciiFile (std::ofstream &, const Char_t *name_prefix="") |
Private Member Functions | |
virtual void | ReadAsciiFile_extras (std::ifstream &) |
Read Z & A of line. More... | |
virtual void | SetAsymWidth (Double_t d_l, Double_t d_r) |
virtual void | SetName (const char *name) |
virtual void | WriteAsciiFile_extras (std::ofstream &, const Char_t *name_prefix="") |
Write Z & A of line. More... | |
Private Attributes | |
TGraphErrors * | fLineWithWidth |
used to display width of line More... | |
Double_t | fWidth |
the "width" of the line More... | |
Friends | |
class | KVIDZAGrid |
Additional Inherited Members | |
![]() | |
static KVIDLine * | MakeIDLine (TObject *obj, Double_t xdeb=-1., Double_t xfin=-1., Double_t np=1., Bool_t save=kFALSE) |
KVIDZALine::KVIDZALine | ( | ) |
Default ctor Line width is set to zero Default identification is set to proton
Definition at line 34 of file KVIDZALine.cpp.
KVIDZALine::KVIDZALine | ( | const KVIDZALine & | obj | ) |
copy constructor
Definition at line 49 of file KVIDZALine.cpp.
|
virtual |
|
inlinevirtual |
Used to sort lists of KVIDZALines. Sorts the lines as a function of increasing Z, then increasing A (i.e. p,d,t,3He,4He,6He, etc. etc.)
First compare Z : only if Z1=Z2 do we need to compare A
same Z: compare A
Reimplemented in KVIDCsIRLLine.
Definition at line 85 of file KVIDZALine.h.
void KVIDZALine::Copy | ( | TObject & | obj | ) | const |
copy 'this' to 'obj'
Definition at line 61 of file KVIDZALine.cpp.
TGraphErrors * KVIDZALine::GetLineWithWidth | ( | ) |
Return pointer to TGraphError object which can be used to visualise the natural width of this identification line. If line width = 16000, the error bar is set to 0
Definition at line 179 of file KVIDZALine.cpp.
|
inline |
Definition at line 61 of file KVIDZALine.h.
|
virtual |
Print out for line The optional "opt" string, if given, is printed in parentheses after the line's name This is used by KVIDGrid in order to show which lines are "ID" lines and which are "OK" lines (i.e. used to define an identifiable area in a data map).
Reimplemented from KVIDentifier.
Reimplemented in KVIDCsIRLLine.
Definition at line 159 of file KVIDZALine.cpp.
|
privatevirtual |
void KVIDZALine::ReadAsciiFile_KVIDZLine | ( | std::ifstream & | ) |
/*********** BACKWARDS COMPATIBILITY FIX ************* special read method for old KVIDZLines
Read coordinates of line in file buffer stream Format is : Z number_of_points x1 y1 x2 y2 ... etc. etc.
Definition at line 126 of file KVIDZALine.cpp.
|
privatevirtual |
Set the natural width of the line depending on its asymptotic separation a gauche (d_l) and a droite (d_r) from a neighbouring line. This method is used by KVIDGrid::CalculateLineWidths
For ordinary Z/(Z,A) lines in a dE-E grid, this is just the average of the two asymptotic distances.
Reimplemented in KVIDCsIRLLine.
Definition at line 214 of file KVIDZALine.cpp.
|
inlineprivatevirtual |
redeclared as 'protected' method, to avoid users setting name directly (name is generated from A & Z of line)
Reimplemented from KVIDentifier.
Definition at line 46 of file KVIDZALine.h.
|
inline |
Definition at line 65 of file KVIDZALine.h.
|
privatevirtual |
|
friend |
Definition at line 35 of file KVIDZALine.h.
|
private |
used to display width of line
Definition at line 40 of file KVIDZALine.h.
|
private |
the "width" of the line
Definition at line 39 of file KVIDZALine.h.