KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVIDGraph Class Referenceabstract

Detailed Description

Base class for particle identification in a 2D map.

Definition at line 32 of file KVIDGraph.h.

#include <KVIDGraph.h>

Inheritance diagram for KVIDGraph:

Public Member Functions

 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 Copy (TObject &) const
 Copy this to 'obj'.
 
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)
 
virtual Int_t GetQualityCode () const
 
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
 
virtual Bool_t HasMassIDCapability () const
 
virtual void Identify (Double_t, Double_t, KVIdentificationResult *) const =0
 
void Increment (Float_t x)
 
virtual void Initialize ()=0
 
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
 
virtual void ReadFromAsciiFile (std::ifstream &gridfile)
 
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)
 
virtual void SetOnlyZId (Bool_t yes=kTRUE)
 
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)
 
virtual void WriteToAsciiFile (std::ofstream &gridfile)
 
- 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)
 

Static Public Member Functions

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)
 

Private Member Functions

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.
 
virtual void ReadIdentifierFromAsciiFile (TString &name, TString &type, TString &cl, std::ifstream &gridfile)
 Read in new identifier object from file.
 
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.
 
void WriteParameterListOfIDTelescopes ()
 

Private Attributes

KVList fCuts
 cuts used to define area in which identification is possible
 
TString fDyName
 dynamically generated name
 
KVList fIdentifiers
 list of identification objects
 
KVList fInfoZones
 contours/lines used to add info to particles (ex: punch-through)
 
KVIDGraphfLastSavedVersion
 copy of last save version of grid, used for 'undo'
 
Double_t fLastScaleX
 last applied scaling factor on X
 
Double_t fLastScaleY
 last applied scaling factor on Y
 
Int_t fMassFormula
 OPTION={GetMethod="GetMassFormula";SetMethod="SetMassFormula";Items=(0="Beta-stability", 1="VEDA mass", 2="EAL mass", 3="EAL residues", 99="2Z+1")}
 
Bool_t fOnlyZId
 set to kTRUE when only to be used to give Z identification of nuclei, no mass info
 
TVirtualPadfPad
 pad in which graph is drawn
 
KVNameValueList fPar
 parameters associated to grid
 
TString fPattern
 pattern of filenames used to write or read grid
 
KVNumberList fRunList
 runs for which grid is valid
 
TList fTelescopes
 ID telescopes for which grid is valid.
 
Axis_t fXmax
 min/max X coordinates of graph
 
Axis_t fXmin
 
Axis_t fYmax
 min/max Y coordinates of graph
 
Axis_t fYmin
 

Static Private Attributes

static Bool_t fAutoAddGridManager = kTRUE
 if =kTRUE, grids are automatically added to ID grid manager on creation (default)
 

Friends

class KVIDGridManager
 

Additional Inherited Members

- Public Types inherited from TGraph
enum  EStatusBits
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- 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
 

Constructor & Destructor Documentation

◆ KVIDGraph() [1/2]

KVIDGraph::KVIDGraph ( )

Definition at line 158 of file KVIDGraph.cpp.

◆ KVIDGraph() [2/2]

KVIDGraph::KVIDGraph ( const KVIDGraph grid)

Copy constructor.

Definition at line 175 of file KVIDGraph.cpp.

◆ ~KVIDGraph()

KVIDGraph::~KVIDGraph ( )
virtual

Destructor remove from grid manager

Definition at line 188 of file KVIDGraph.cpp.

Member Function Documentation

◆ AcceptIDForTest()

virtual Bool_t KVIDGraph::AcceptIDForTest ( const KVIdentificationResult idr)
inlinevirtual

Used by TestIdentification method

The result of the identification may be excluded from the histograms of PID and PID vs. Eres, depending on e.g. some status code of the identification algorithm. By default, this returns the value of idr.IDOK, but may be overridden in child classes.

Definition at line 75 of file KVIDGraph.h.

◆ Add() [1/2]

void KVIDGraph::Add ( TString  type,
KVIDentifier id 
)

Add the object to the list of cuts or identifiers: type = "ID" --> calls AddIdentifier(id) type = "OK" or "cut" --> calls AddCut(id)

Definition at line 838 of file KVIDGraph.cpp.

◆ Add() [2/2]

KVIDentifier * KVIDGraph::Add ( TString  type,
TString  classname 
)

Create and add the object to the list of cuts or identifiers: type = "ID" --> calls AddIdentifier(id) type = "OK" or "cut" --> calls AddCut(id)

Definition at line 858 of file KVIDGraph.cpp.

◆ AddCut()

virtual void KVIDGraph::AddCut ( KVIDentifier cut)
inlinevirtual

Add cut to the graph. It will be deleted by the graph.

Modified();

Definition at line 353 of file KVIDGraph.h.

◆ AddGraphs()

KVIDGraph * KVIDGraph::AddGraphs ( KVIDGraph g1,
Int_t  id1_min,
Int_t  id1_max,
KVIDGraph g2,
Int_t  id2_min,
Int_t  id2_max 
)
static

Static method taking lines id1_min to id2_min from grid g1 and lines id2_min to id2_max from grid g2 and making a new grid containing them. Returns the pointer to the new grid.

It is assumed that g1 and g2 are grids of the same class. The new grid will be an object of the same class as g1.

Any scaling factors are applied to the line coordinates as they are copied from their parent grids. As scaling may be different in g1 and g2, the resulting grid has no scaling factor, but the coordinates of all its lines result from application of the different scaling factors of the two grids. make new grid

Definition at line 1219 of file KVIDGraph.cpp.

◆ AddIdentifier()

virtual void KVIDGraph::AddIdentifier ( KVIDentifier id)
inlinevirtual

Add identifier to the graph. It will be deleted by the graph.

if grid is Z-identification only, set mass formula for line according to mass formula of grid

Modified();

Reimplemented in KVTGIDGrid.

Definition at line 340 of file KVIDGraph.h.

◆ AddIDTelescope()

void KVIDGraph::AddIDTelescope ( KVBase t)
inline

Associate this graph with an identification telescope, i.e. add the telescope to the list of telescopes which can use this graph for identification purposes.

Definition at line 407 of file KVIDGraph.h.

◆ AddIDTelescopes()

void KVIDGraph::AddIDTelescopes ( const TList tels)

Associate this graph with all ID telescopes in list.

Definition at line 1516 of file KVIDGraph.cpp.

◆ AddInfo()

virtual void KVIDGraph::AddInfo ( KVIDentifier info)
inlinevirtual

Add info lines/cuts to the graph. It will be deleted by the graph.

Modified();

Definition at line 364 of file KVIDGraph.h.

◆ AddParameter()

void KVIDGraph::AddParameter ( char *  Name,
char *  Value 
)
inline

Definition at line 85 of file KVIDGraph.h.

◆ BackwardsCompatibilityFix()

void KVIDGraph::BackwardsCompatibilityFix ( )
privatevirtual

Called after reading a grid from an ascii file. Tries to convert information written by an old version of the class:

PARAMETER> First run=... -—> <PARAMETER> Runlist=... PARAMETER> Last run=...

Reimplemented in KVIDGChIoSi, and KVIDGCsI.

Definition at line 1361 of file KVIDGraph.cpp.

◆ CheckVersion()

Int_t KVIDGraph::CheckVersion ( Int_t  version)
virtual

version>=0 check si la version demandee du fichier grille existe version-1 renvoie la derniere version existante si la version demandee n existe pas return -1 creation d un fichier tampon dans le repertoire ou se situe les fichiers grilles efface a la fin de la methode

Definition at line 1423 of file KVIDGraph.cpp.

◆ Clear()

void KVIDGraph::Clear ( Option_t opt = "")
virtual

reset the grid (destroying any previously defined identifiers) ready to start anew. resets axis limits scaling factors (if any) are removed

Reimplemented from TObject.

Definition at line 203 of file KVIDGraph.cpp.

◆ ClearListOfTelescopes()

void KVIDGraph::ClearListOfTelescopes ( )
inline

Definition at line 112 of file KVIDGraph.h.

◆ ClearPad()

void KVIDGraph::ClearPad ( TVirtualPad pad)

Definition at line 49 of file KVIDGraph.cpp.

◆ Copy()

void KVIDGraph::Copy ( TObject obj) const
virtual

Copy this to 'obj'.

Reimplemented from TObject.

Reimplemented in KVIDZAGrid, and KVIDZAFromZGrid.

Definition at line 115 of file KVIDGraph.cpp.

◆ Delete()

virtual void KVIDGraph::Delete ( Option_t option = "")
inlinevirtual

-— The following redeclarations are here just to remove the MENU tag which -— is present in TObject.h, to stop these methods appearing in the ID line context menus

Reimplemented from TObject.

Definition at line 485 of file KVIDGraph.h.

◆ Draw()

void KVIDGraph::Draw ( Option_t opt = "")
virtual

Draw all objects in graph on the current display, if one exists: i.e. in order to superimpose the grid on a 2D display of data, use KVIDGraph::Draw() (no option "same" needed).

If no TCanvas exists, or if one exists but it is empty, a frame large enough to display all the objects in the graph will be generated.

The title of the canvas is set to the name of the graph

If the graph is already displayed (i.e. if fPad!=0), we call UnDraw() in order to remove it from the display. This is so that double-clicking a graph in the IDGridManagerGUI list makes it disappear if it is already drawn.

Reimplemented from TObject.

Definition at line 888 of file KVIDGraph.cpp.

◆ DrawAndAdd()

void KVIDGraph::DrawAndAdd ( const Char_t Type = "ID",
const Char_t Classname = "KVIDentifier" 
)
virtual

Use this method to add objects to a grid which is drawn in the current pad gPad. We wait for the user to draw the line with the graphical editor (we put the pad automatically into this mode, there is no need to use the Editor toolbar). Then we retrieve this TGraph, create a new KVIDentifier-derived object of class "classname", and add it to the "type" list (= "OK"/"cut" or "ID").

Definition at line 1174 of file KVIDGraph.cpp.

◆ DrawClass()

virtual void KVIDGraph::DrawClass ( ) const
inlinevirtual

Reimplemented from TObject.

Definition at line 489 of file KVIDGraph.h.

◆ DrawClone()

virtual TObject * KVIDGraph::DrawClone ( Option_t option = "") const
inlinevirtual

Reimplemented from TObject.

Definition at line 493 of file KVIDGraph.h.

◆ DrawPanel()

virtual void KVIDGraph::DrawPanel ( )
inlinevirtual

Reimplemented from TGraph.

Definition at line 469 of file KVIDGraph.h.

◆ Dump()

virtual void KVIDGraph::Dump ( ) const
inlinevirtual

Reimplemented from TObject.

Definition at line 497 of file KVIDGraph.h.

◆ ExistVersion()

virtual Bool_t KVIDGraph::ExistVersion ( Int_t  version)
inlinevirtual

Definition at line 230 of file KVIDGraph.h.

◆ ExtendBeginningAllIdentLines()

void KVIDGraph::ExtendBeginningAllIdentLines ( Double_t  newX,
Option_t Direction = "" 
)

Extend the first segment of each identification line back to new coordinate newX

See KVIDentifier::ExtendLine()

Definition at line 1017 of file KVIDGraph.cpp.

◆ ExtendEndAllIdentLines()

void KVIDGraph::ExtendEndAllIdentLines ( Double_t  newX,
Option_t Direction = "" 
)

Extend the last segment of each identification line to new coordinate newX

See KVIDentifier::ExtendLine()

Definition at line 1033 of file KVIDGraph.cpp.

◆ FindAxisLimits()

void KVIDGraph::FindAxisLimits ( )

Calculate X/Y min/max of all objects in graph.

Definition at line 1073 of file KVIDGraph.cpp.

◆ Fit() [1/2]

virtual TFitResultPtr KVIDGraph::Fit ( const char *  formula,
Option_t option = "",
Option_t goption = "",
Axis_t  xmin = 0,
Axis_t  xmax = 0 
)
inlinevirtual

Reimplemented from TGraph.

Definition at line 474 of file KVIDGraph.h.

◆ Fit() [2/2]

virtual TFitResultPtr KVIDGraph::Fit ( TF1 f1,
Option_t option = "",
Option_t goption = "",
Axis_t  xmin = 0,
Axis_t  xmax = 0 
)
inlinevirtual

Reimplemented from TGraph.

Definition at line 478 of file KVIDGraph.h.

◆ FitPanel()

virtual void KVIDGraph::FitPanel ( )
inlinevirtual

virtual void SetTitle(const char *title="") {TGraph::SetTitle(title);};

Reimplemented from TGraph.

Definition at line 465 of file KVIDGraph.h.

◆ GetAutoAdd()

static Bool_t KVIDGraph::GetAutoAdd ( )
inlinestatic

if static method KVIDGraph::GetAutoAdd() returns kTRUE, all grids are automatically added to ID Grid Manager if not, this mechanism is disabled

Definition at line 106 of file KVIDGraph.h.

◆ GetCut()

KVIDentifier * KVIDGraph::GetCut ( const Char_t name) const
inline

Definition at line 280 of file KVIDGraph.h.

◆ GetCuts() [1/2]

KVList * KVIDGraph::GetCuts ( )
inline

Returns list of cuts (derived from KVIDentifier)

Definition at line 313 of file KVIDGraph.h.

◆ GetCuts() [2/2]

const KVList * KVIDGraph::GetCuts ( ) const
inline

Returns list of cuts (derived from KVIDentifier)

Definition at line 308 of file KVIDGraph.h.

◆ GetIdentifier() [1/2]

KVIDentifier * KVIDGraph::GetIdentifier ( const Char_t name) const
inline

Definition at line 276 of file KVIDGraph.h.

◆ GetIdentifier() [2/2]

KVIDentifier * KVIDGraph::GetIdentifier ( Int_t  Z,
Int_t  A 
) const

Return pointer to identifier with atomic number Z and mass number A. If this is a 'OnlyZId()' graph we ignore A.

Definition at line 310 of file KVIDGraph.cpp.

◆ GetIdentifierAt()

KVIDentifier * KVIDGraph::GetIdentifierAt ( Int_t  index) const
inline

Return identifier at position 'index' (=0,1,...) in list of identifiers

Definition at line 271 of file KVIDGraph.h.

◆ GetIdentifiers() [1/2]

KVList * KVIDGraph::GetIdentifiers ( )
inline

Returns list of identifier objects (derived from KVIDentifier)

Definition at line 303 of file KVIDGraph.h.

◆ GetIdentifiers() [2/2]

const KVList * KVIDGraph::GetIdentifiers ( ) const
inline

Returns list of identifier objects (derived from KVIDentifier)

Definition at line 298 of file KVIDGraph.h.

◆ GetIDTelescopeLabel()

const Char_t * KVIDGraph::GetIDTelescopeLabel ( ) const
inline

Returns type of ID telescope to which this grid is associated (actually returns value of KVBase::GetLabel())

Definition at line 430 of file KVIDGraph.h.

◆ GetIDTelescopes()

const TList * KVIDGraph::GetIDTelescopes ( ) const
inline

Definition at line 245 of file KVIDGraph.h.

◆ GetInfo()

KVIDentifier * KVIDGraph::GetInfo ( const Char_t name) const
inline

Definition at line 284 of file KVIDGraph.h.

◆ GetInfos() [1/2]

KVList * KVIDGraph::GetInfos ( )
inline

Returns list of cuts (derived from KVIDentifier)

Definition at line 323 of file KVIDGraph.h.

◆ GetInfos() [2/2]

const KVList * KVIDGraph::GetInfos ( ) const
inline

Returns list of cuts (derived from KVIDentifier)

Definition at line 318 of file KVIDGraph.h.

◆ GetLastSavedVersion()

KVIDGraph * KVIDGraph::GetLastSavedVersion ( ) const
inline

Definition at line 116 of file KVIDGraph.h.

◆ GetMassFormula()

Int_t KVIDGraph::GetMassFormula ( ) const
inline

Definition at line 438 of file KVIDGraph.h.

◆ GetName()

const Char_t * KVIDGraph::GetName ( ) const
virtual

If name of grid is not set explicitly with SetName(const Char_t*), we return the name of the first ID telescope in the list of telescopes with which this grid is associated.

Reimplemented from TObject.

Definition at line 1332 of file KVIDGraph.cpp.

◆ GetNamesOfIDTelescopes()

const Char_t * KVIDGraph::GetNamesOfIDTelescopes ( ) const

Returns a comma-separated list of the names of all ID telescopes for which this grid is valid.

Definition at line 1611 of file KVIDGraph.cpp.

◆ GetNumberOfCuts()

Int_t KVIDGraph::GetNumberOfCuts ( ) const
inline

Definition at line 332 of file KVIDGraph.h.

◆ GetNumberOfIdentifiers()

Int_t KVIDGraph::GetNumberOfIdentifiers ( ) const
inline

Definition at line 328 of file KVIDGraph.h.

◆ GetNumberOfInfos()

Int_t KVIDGraph::GetNumberOfInfos ( ) const
inline

Definition at line 336 of file KVIDGraph.h.

◆ GetPad()

TVirtualPad * KVIDGraph::GetPad ( ) const
inline

Definition at line 133 of file KVIDGraph.h.

◆ GetParameters() [1/2]

KVNameValueList * KVIDGraph::GetParameters ( )
inline

Return pointer to list of parameters associated to grid

Definition at line 293 of file KVIDGraph.h.

◆ GetParameters() [2/2]

const KVNameValueList * KVIDGraph::GetParameters ( ) const
inline

Return pointer to list of parameters associated to grid

Definition at line 288 of file KVIDGraph.h.

◆ GetPattern()

TString KVIDGraph::GetPattern ( void  )
inline

Definition at line 240 of file KVIDGraph.h.

◆ GetQualityCode()

virtual Int_t KVIDGraph::GetQualityCode ( ) const
inlinevirtual

Return quality code related to previously-attempted identification using grid. Redefine in child classes.

Reimplemented in KVIDZAGrid.

Definition at line 401 of file KVIDGraph.h.

◆ GetRunList()

const Char_t * KVIDGraph::GetRunList ( ) const
inline

Get list of runs for which grid is valid

Definition at line 266 of file KVIDGraph.h.

◆ GetRuns()

const KVNumberList & KVIDGraph::GetRuns ( ) const
inline

Get list of runs for which grid is valid

Definition at line 261 of file KVIDGraph.h.

◆ GetXmax()

Axis_t KVIDGraph::GetXmax ( ) const
inline

Definition at line 393 of file KVIDGraph.h.

◆ GetXmin()

Axis_t KVIDGraph::GetXmin ( ) const
inline

Definition at line 385 of file KVIDGraph.h.

◆ GetXScaleFactor()

Double_t KVIDGraph::GetXScaleFactor ( )

Return scaling factor for X-axis If factor not defined, returns 1

Definition at line 274 of file KVIDGraph.cpp.

◆ GetYmax()

Axis_t KVIDGraph::GetYmax ( ) const
inline

Definition at line 397 of file KVIDGraph.h.

◆ GetYmin()

Axis_t KVIDGraph::GetYmin ( ) const
inline

Definition at line 389 of file KVIDGraph.h.

◆ GetYScaleFactor()

Double_t KVIDGraph::GetYScaleFactor ( )

Return scaling factor for Y-axis If factor not defined, returns 1

Definition at line 292 of file KVIDGraph.cpp.

◆ HandlesIDTelescope()

Bool_t KVIDGraph::HandlesIDTelescope ( KVBase t) const
inline

Returns kTRUE if telescope can use this graph for identification purposes.

Definition at line 424 of file KVIDGraph.h.

◆ HasMassIDCapability()

virtual Bool_t KVIDGraph::HasMassIDCapability ( ) const
inlinevirtual

Returns kTRUE if grid can identify masses as well as Z for at least some of the nuclei for which it is defined.

Returns kFALSE if grid only provides Z identification.

Reimplemented in KVIDZAFromZGrid.

Definition at line 169 of file KVIDGraph.h.

◆ Identify()

virtual void KVIDGraph::Identify ( Double_t  ,
Double_t  ,
KVIdentificationResult  
) const
pure virtual

◆ Increment()

void KVIDGraph::Increment ( Float_t  x)
inline

Used by TestIdentification and KVTestIDGridDialog to send signals to TGHProgressBar about the progress of the identification test

Definition at line 249 of file KVIDGraph.h.

◆ init()

void KVIDGraph::init ( )
private

Initialisations, used by constructors All graphs are added to gIDGridManager (if it exists).

Definition at line 67 of file KVIDGraph.cpp.

◆ Initialize()

virtual void KVIDGraph::Initialize ( )
pure virtual

◆ InsertPoint()

virtual Int_t KVIDGraph::InsertPoint ( )
inlinevirtual

Reimplemented from TGraph.

Definition at line 533 of file KVIDGraph.h.

◆ Inspect()

virtual void KVIDGraph::Inspect ( ) const
inlinevirtual

Reimplemented from TObject.

Definition at line 501 of file KVIDGraph.h.

◆ IsDrawn()

TVirtualPad * KVIDGraph::IsDrawn ( ) const
inline

Returns pointer to pad currently displaying this graph. Returns 0x0 if graph is not drawn.

Definition at line 444 of file KVIDGraph.h.

◆ IsIdentifiable()

Bool_t KVIDGraph::IsIdentifiable ( Double_t  x,
Double_t  y,
TString rejected_by = nullptr 
) const
virtual

Default method for deciding if point (x,y) corresponds to an identifiable particle or not: we loop over the list of cuts and test the point with the method TestPoint(x,y).

If the point is accepted by all cuts, then (x,y) is identifiable (return kTRUE).

If the point is rejected by a cut we return kFALSE. If rejected_by contains a valid pointer, we set it to the name of the rejecting cut.

Reimplemented in KVIDGCsI, and KVIDGChIoSi.

Definition at line 1269 of file KVIDGraph.cpp.

◆ IsOnlyZId()

Bool_t KVIDGraph::IsOnlyZId ( ) const
inlineprivate

Returns kTRUE if the graph is only to be used for Z identification (no isotopic information). Default is to identify both Z & A (fOnlyZid = kFALSE)

Definition at line 57 of file KVIDGraph.h.

◆ IsSorted()

Bool_t KVIDGraph::IsSorted ( ) const
inline

Return kTRUE if list of identifiers has been sorted

Definition at line 380 of file KVIDGraph.h.

◆ MakeIDGraph()

KVIDGraph * KVIDGraph::MakeIDGraph ( const Char_t class_name)
static

Static function which will create and 'Build' the identification graph of class 'class_name', one of the plugins defined in either $KVROOT/KVFiles/.kvrootrc, or in the user's .kvrootrc file. check and load plugin library

Definition at line 1556 of file KVIDGraph.cpp.

◆ Modified()

void KVIDGraph::Modified ( )
inline

Signal sent out when properties of graph change

Definition at line 255 of file KVIDGraph.h.

◆ New()

KVIDentifier * KVIDGraph::New ( const Char_t id_class)
privatevirtual

Create new object of class "id_class" which derives from KVIDentifier.

Definition at line 807 of file KVIDGraph.cpp.

◆ Print()

void KVIDGraph::Print ( Option_t opt = "") const
virtual

Print out all objects in graph.

Reimplemented from TObject.

Definition at line 1047 of file KVIDGraph.cpp.

◆ ReadAsciiFile()

void KVIDGraph::ReadAsciiFile ( const Char_t filename)

Open, read and close ascii file containing this grid. Any previous lines in the grid are destroyed. Comment lines begin with # Grid info begins with ++ClassName where ClassName is actual class name of instance of this object New lines begin with +name_of_class '!' signals end of grid

Definition at line 779 of file KVIDGraph.cpp.

◆ ReadAsciiFile_WP()

void KVIDGraph::ReadAsciiFile_WP ( Int_t  version = -1)
virtual

lecture des grilles avec version suivant un modele de fichier

Definition at line 1404 of file KVIDGraph.cpp.

◆ ReadFromAsciiFile()

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

Read info from already open ascii file stream containing each line of this grid. Any previous lines in the grid are destroyed. Comment lines begin with # Grid info begins with ++ClassName where ClassName is actual class name of instance of this object The names associated to the X & Y axis of the identification map are written on lines beginning with VARX> VARY> Parameter lines begin with <PARAMETER> New lines begin with +name_of_class '!' signals end of grid info Any scaling factors are applied once the coordinates have been read reset grid - destroy old lines, axis limits...

Reimplemented in KVTGIDGrid, and KVIDZAFromZGrid.

Definition at line 601 of file KVIDGraph.cpp.

◆ ReadIdentifierFromAsciiFile()

void KVIDGraph::ReadIdentifierFromAsciiFile ( TString name,
TString type,
TString cl,
std::ifstream &  gridfile 
)
privatevirtual

Read in new identifier object from file.

Reimplemented in KVIDGrid.

Definition at line 755 of file KVIDGraph.cpp.

◆ RemoveCut()

void KVIDGraph::RemoveCut ( KVIDentifier cut)

Remove and destroy cut.

Definition at line 350 of file KVIDGraph.cpp.

◆ RemoveIdentifier()

void KVIDGraph::RemoveIdentifier ( KVIDentifier id)

Remove and destroy identifier.

Definition at line 335 of file KVIDGraph.cpp.

◆ RemoveIDTelescope()

void KVIDGraph::RemoveIDTelescope ( KVBase t)
inline

Remove telescope from the list of telescopes which can use this graph for identification purposes.

Definition at line 416 of file KVIDGraph.h.

◆ RemoveInfo()

void KVIDGraph::RemoveInfo ( KVIDentifier info)

Remove and destroy cut.

Definition at line 363 of file KVIDGraph.cpp.

◆ RemovePoint() [1/2]

virtual Int_t KVIDGraph::RemovePoint ( )
inlinevirtual

Reimplemented from TGraph.

Definition at line 537 of file KVIDGraph.h.

◆ RemovePoint() [2/2]

virtual Int_t KVIDGraph::RemovePoint ( Int_t  i)
inlinevirtual

Reimplemented from TGraph.

Definition at line 541 of file KVIDGraph.h.

◆ ResetDraw()

void KVIDGraph::ResetDraw ( )

In case the graph can no longer be drawn/undrawn (because fPad contains address of a canvas which died unexpectedly), use this method to reset fPad=0 and hopefully start afresh.

Definition at line 1003 of file KVIDGraph.cpp.

◆ ResetPad()

void KVIDGraph::ResetPad ( )

Definition at line 33 of file KVIDGraph.cpp.

◆ RevertToLastSavedVersion()

void KVIDGraph::RevertToLastSavedVersion ( )

Revert to last saved version of grid this will destroy any existing lines in the grid and replace them with copies of the lines as they were at the last moment the grid was saved If the grid is (was) visible in a pad, we redraw the new lines.

Definition at line 555 of file KVIDGraph.cpp.

◆ SaveAs()

virtual void KVIDGraph::SaveAs ( const char *  filename = "",
Option_t option = "" 
) const
inlinevirtual

Reimplemented from TObject.

Definition at line 505 of file KVIDGraph.h.

◆ Scale() [1/2]

void KVIDGraph::Scale ( Double_t  sx = -1,
Double_t  sy = -1 
)
private

Called by SetX/YScaleFactor methods to rescale every point of every object in the grid.

Definition at line 1146 of file KVIDGraph.cpp.

◆ Scale() [2/2]

void KVIDGraph::Scale ( TF1 sx,
TF1 sy 
)

Rescale coordinates of every object in graph according to arbitrary functions of the coordinates (sx & sy can be 1-dimensional or 2-dimensional functions).

If sy is a TF1 function f(x), then the 'x' in this function refers to the y-coordinate. If sy is a TF2 function f(x,y), 'x' and 'y' refer to the x & y-coordinates.

Definition at line 1118 of file KVIDGraph.cpp.

◆ SetAutoAdd()

static void KVIDGraph::SetAutoAdd ( Bool_t  yes = kTRUE)
inlinestatic

after calling KVIDGraph::SetAutoAdd(), all grids are automatically added to ID Grid Manager after calling KVIDGraph::SetAutoAdd(kFALSE), this mechanism is disabled

Definition at line 100 of file KVIDGraph.h.

◆ SetDrawOption()

virtual void KVIDGraph::SetDrawOption ( Option_t option = "")
inlinevirtual

Reimplemented from TObject.

Definition at line 509 of file KVIDGraph.h.

◆ SetEditable()

void KVIDGraph::SetEditable ( Bool_t  editable = kTRUE)
virtual

virtual void NewCut();// MENU={Hierarchy="AddLine.../NewCut"} virtual void NewIdentifier();// MENU={Hierarchy="AddLine.../NewIdentifier"}

Toggles 'editable' status of all lines/contours in graph If editable = kTRUE this makes it possible to modify the graph we then take a snapshot of the graph before editing begins and store it in fLastSavedVersion. we can always revert to this version if we want

Reimplemented from TGraph.

Definition at line 1582 of file KVIDGraph.cpp.

◆ SetFillAttributes()

virtual void KVIDGraph::SetFillAttributes ( )
inlinevirtual

Reimplemented from TAttFill.

Definition at line 517 of file KVIDGraph.h.

◆ SetInfos()

void KVIDGraph::SetInfos ( Double_t  x,
Double_t  y,
KVIdentificationResult idr 
) const
virtual

loop over KVIDGraph::fInfoZones to set flags in KVIdentificationResult

Definition at line 1297 of file KVIDGraph.cpp.

◆ SetLineAttributes()

virtual void KVIDGraph::SetLineAttributes ( )
inlinevirtual

Reimplemented from TAttLine.

Definition at line 513 of file KVIDGraph.h.

◆ SetLineColor()

void KVIDGraph::SetLineColor ( Color_t  lcolor)
inlinevirtual

Set line colour of all objects in grid

Reimplemented from TAttLine.

Definition at line 187 of file KVIDGraph.h.

◆ SetLineStyle()

void KVIDGraph::SetLineStyle ( Style_t  lstyle)
inlinevirtual

Set line style of all objects in grid

Reimplemented from TAttLine.

Definition at line 195 of file KVIDGraph.h.

◆ SetLineWidth()

void KVIDGraph::SetLineWidth ( Width_t  lwidth)
inlinevirtual

Set line width of all objects in grid

Reimplemented from TAttLine.

Definition at line 203 of file KVIDGraph.h.

◆ SetMarkerAttributes()

virtual void KVIDGraph::SetMarkerAttributes ( )
inlinevirtual

Reimplemented from TAttMarker.

Definition at line 521 of file KVIDGraph.h.

◆ SetMassFormula()

void KVIDGraph::SetMassFormula ( Int_t  mass)

Set mass formula for all identifiers if graph has OnlyZId()=kTRUE. This will change the mass (A) of each identifier.

Definition at line 1473 of file KVIDGraph.cpp.

◆ SetMassIDCapability()

virtual void KVIDGraph::SetMassIDCapability ( Bool_t  yes = kTRUE)
inlinevirtual

Used in context menus to define whether grid identifies A & Z or just Z

Definition at line 178 of file KVIDGraph.h.

◆ SetMaximum()

virtual void KVIDGraph::SetMaximum ( Double_t  maximum = -1111)
inlinevirtual

-— The following redeclarations are here just to remove the MENU tag which -— is present in TGraph.h, to stop these methods appearing in the ID line context menus

Reimplemented from TGraph.

Definition at line 456 of file KVIDGraph.h.

◆ SetMinimum()

virtual void KVIDGraph::SetMinimum ( Double_t  minimum = -1111)
inlinevirtual

Reimplemented from TGraph.

Definition at line 460 of file KVIDGraph.h.

◆ SetName()

virtual void KVIDGraph::SetName ( const char *  name)
inlinevirtual

Reimplemented from TNamed.

Definition at line 140 of file KVIDGraph.h.

◆ SetOnlyZId()

void KVIDGraph::SetOnlyZId ( Bool_t  yes = kTRUE)
virtual

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)

Reimplemented in KVIDZAFromZGrid.

Definition at line 1496 of file KVIDGraph.cpp.

◆ SetPattern()

void KVIDGraph::SetPattern ( TString  pattern)
inline

Definition at line 235 of file KVIDGraph.h.

◆ SetRunList()

void KVIDGraph::SetRunList ( const char *  runlist)
inline

Definition at line 156 of file KVIDGraph.h.

◆ SetRuns()

void KVIDGraph::SetRuns ( const KVNumberList nl)

Set list of runs for which grid is valid.

Definition at line 1316 of file KVIDGraph.cpp.

◆ SetVarX()

virtual void KVIDGraph::SetVarX ( const char *  v)
inlinevirtual

Reimplemented from TCutG.

Definition at line 525 of file KVIDGraph.h.

◆ SetVarY()

virtual void KVIDGraph::SetVarY ( const char *  v)
inlinevirtual

Reimplemented from TCutG.

Definition at line 529 of file KVIDGraph.h.

◆ SetXScaleFactor()

void KVIDGraph::SetXScaleFactor ( Double_t  s = 0)

Set scaling factor for X-axis - rescales all objects with this factor SetXScaleFactor() or SetXScaleFactor(0) removes scale factor

Definition at line 226 of file KVIDGraph.cpp.

◆ SetXVariable()

void KVIDGraph::SetXVariable ( const char *  v)
inline

void SetIDTelescopes();// MENU={Hierarchy="Set.../ID Telescopes"}

Definition at line 146 of file KVIDGraph.h.

◆ SetYScaleFactor()

void KVIDGraph::SetYScaleFactor ( Double_t  s = 0)

Set scaling factor for Y-axis - rescales all objects with this factor SetYScaleFactor() or SetYScaleFactor(0) removes scale factor

Definition at line 250 of file KVIDGraph.cpp.

◆ SetYVariable()

void KVIDGraph::SetYVariable ( const char *  v)
inline

Definition at line 151 of file KVIDGraph.h.

◆ SortIdentifiers()

void KVIDGraph::SortIdentifiers ( )
inline

Modified();

Definition at line 375 of file KVIDGraph.h.

◆ TestIdentification()

void KVIDGraph::TestIdentification ( TH2F data,
KVHashList histos,
KVNameValueList histo_names 
)
virtual

This method allows to test the identification capabilities of the grid using data in a TH2F. We assume that 'data' contains an identification map, whose 'x' and 'y' coordinates correspond to this grid. Then we loop over every bin of the histogram, perform the identification (if IsIdentifiable() returns kTRUE) and fill the histograms with the results of the identification

The "identification" or PID we represent is the result of the KVReconstructedNucleus::GetPID() method for the identified nucleus.

The KVHashList contains histograms to be filled with results The KVNameValueList histo_names contains the name of each histogram passed in the KVHashList i.e. it may have any of the following parameters

"ID_REAL"="[name of histo to fill with PID spectrum]" "ID_REAL_AIDENT"="[name of histo to fill with PID spectrum]" Z&A identification "ID_REAL_ZIDENT"="[name of histo to fill with PID spectrum]" Only Z identification "ID_REAL_VS_ERES" - PID vs. Eres (X) histo "ID_REAL_VS_DE" - PID vs. DeltaE (Y) histo "ID_REAL_VS_ERES_AIDENT" - PID vs. Eres histo, Z&A identification "ID_REAL_VS_ERES_ZIDENT" - PID vs. Eres histo, only Z identification

  • only for isotopic identificiation: "Z_A_REAL" - 2D map (nuclear chart) "ZADIST_AIDENT" - integer A vs. integer Z distribution for isotopically-identified particles Initialize the grid: calculate line widths etc.

Definition at line 1707 of file KVIDGraph.cpp.

◆ UnDraw()

void KVIDGraph::UnDraw ( )

Make the graph disappear from the current canvas/pad In case any objects have (accidentally) been drawn more than once, we keep calling gPad->GetListOfPrimitives()->Remove() as long as gPad->GetListOfPrimitives()->FindObject() returns kTRUE for each identifier. if (!fPad) { Error("UnDraw", "Cannot undraw, no pad stored ??"); return; } TIter next_id(fIdentifiers); KVIDentifier* line; //remove the rest of the lines while ((line = (KVIDentifier*) next_id())) { while (fPad->GetListOfPrimitives()->FindObject(line)) fPad->GetListOfPrimitives()->Remove(line); } TIter next_ok(fCuts); while ((line = (KVIDentifier*) next_ok())) { while (fPad->GetListOfPrimitives()->FindObject(line)) fPad->GetListOfPrimitives()->Remove(line); } fPad->Modified(); fPad->Update(); fPad->Disconnect("Closed()", this, "ResetPad()"); if (fPad->GetCanvas()) fPad->GetCanvas()->Disconnect("Cleared(TVirtualPad*)", this, "ClearPad(TVirtualPad*)");

Definition at line 966 of file KVIDGraph.cpp.

◆ UpdateLastSavedVersion()

void KVIDGraph::UpdateLastSavedVersion ( )

update last saved version. mkae copy of current state of graph.

Definition at line 534 of file KVIDGraph.cpp.

◆ WriteAsciiFile()

void KVIDGraph::WriteAsciiFile ( const Char_t filename)

Open, write and close ascii file containing this grid.

Definition at line 404 of file KVIDGraph.cpp.

◆ WriteAsciiFile_WP()

void KVIDGraph::WriteAsciiFile_WP ( Int_t  version = -1)
virtual

ecriture des grilles avec version suivant un modele de fichier (fPattern) fPattern_vd.grid le modele doit etre initialiser par la methode SetPattern(TString) la valeur par default version=-1 permet l ecriture de la derniere version apres un check des versions existantes (methode CheckVersion) la premiere version est indexee v0

Definition at line 1387 of file KVIDGraph.cpp.

◆ WriteParameterListOfIDTelescopes()

void KVIDGraph::WriteParameterListOfIDTelescopes ( )
private

Fill parameter "IDTelescopes" with list of names of telescopes associated with this grid, ready to write in ascii file if list of telescope pointers is empty, do nothing this is in case there are telescope names already in the IDTelescopes parameter but they are not telescopes in the current multi det array

Definition at line 382 of file KVIDGraph.cpp.

◆ WriteToAsciiFile()

void KVIDGraph::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 in KVTGIDGrid, and KVIDZAFromZGrid.

Definition at line 442 of file KVIDGraph.cpp.

Friends And Related Symbol Documentation

◆ KVIDGridManager

friend class KVIDGridManager
friend

Definition at line 33 of file KVIDGraph.h.

Member Data Documentation

◆ fAutoAddGridManager

Bool_t KVIDGraph::fAutoAddGridManager = kTRUE
staticprivate

if =kTRUE, grids are automatically added to ID grid manager on creation (default)

Definition at line 55 of file KVIDGraph.h.

◆ fCuts

KVList KVIDGraph::fCuts
private

cuts used to define area in which identification is possible

Definition at line 41 of file KVIDGraph.h.

◆ fDyName

TString KVIDGraph::fDyName
mutableprivate

dynamically generated name

Definition at line 51 of file KVIDGraph.h.

◆ fIdentifiers

KVList KVIDGraph::fIdentifiers
private

list of identification objects

Definition at line 40 of file KVIDGraph.h.

◆ fInfoZones

KVList KVIDGraph::fInfoZones
private

contours/lines used to add info to particles (ex: punch-through)

Definition at line 42 of file KVIDGraph.h.

◆ fLastSavedVersion

KVIDGraph* KVIDGraph::fLastSavedVersion
private

copy of last save version of grid, used for 'undo'

Definition at line 54 of file KVIDGraph.h.

◆ fLastScaleX

Double_t KVIDGraph::fLastScaleX
private

last applied scaling factor on X

Definition at line 46 of file KVIDGraph.h.

◆ fLastScaleY

Double_t KVIDGraph::fLastScaleY
private

last applied scaling factor on Y

Definition at line 47 of file KVIDGraph.h.

◆ fMassFormula

Int_t KVIDGraph::fMassFormula
private

OPTION={GetMethod="GetMassFormula";SetMethod="SetMassFormula";Items=(0="Beta-stability", 1="VEDA mass", 2="EAL mass", 3="EAL residues", 99="2Z+1")}

Definition at line 53 of file KVIDGraph.h.

◆ fOnlyZId

Bool_t KVIDGraph::fOnlyZId
private

set to kTRUE when only to be used to give Z identification of nuclei, no mass info

Definition at line 39 of file KVIDGraph.h.

◆ fPad

TVirtualPad* KVIDGraph::fPad
private

pad in which graph is drawn

Definition at line 48 of file KVIDGraph.h.

◆ fPar

KVNameValueList KVIDGraph::fPar
private

parameters associated to grid

Definition at line 45 of file KVIDGraph.h.

◆ fPattern

TString KVIDGraph::fPattern
private

pattern of filenames used to write or read grid

Definition at line 52 of file KVIDGraph.h.

◆ fRunList

KVNumberList KVIDGraph::fRunList
private

runs for which grid is valid

Definition at line 49 of file KVIDGraph.h.

◆ fTelescopes

TList KVIDGraph::fTelescopes
private

ID telescopes for which grid is valid.

Definition at line 50 of file KVIDGraph.h.

◆ fXmax

Axis_t KVIDGraph::fXmax
private

min/max X coordinates of graph

Definition at line 43 of file KVIDGraph.h.

◆ fXmin

Axis_t KVIDGraph::fXmin
private

Definition at line 43 of file KVIDGraph.h.

◆ fYmax

Axis_t KVIDGraph::fYmax
private

min/max Y coordinates of graph

Definition at line 44 of file KVIDGraph.h.

◆ fYmin

Axis_t KVIDGraph::fYmin
private

Definition at line 44 of file KVIDGraph.h.