14#include "KVNameValueList.h"
15#include "KVIDentifier.h"
18#include "KVIdentificationResult.h"
19#include "KVNumberList.h"
232 if (version != -1)
return (version ==
CheckVersion(version));
233 else return (version != -1);
253 Emit(
"Increment(Float_t)",
x);
436 return (
id ?
id->GetLabel() :
"");
#define RQ_OBJECT(sender_class)
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
char * Form(const char *fmt,...)
Base class for KaliVeda framework.
Extended version of ROOT THashList.
Base class for particle identification in a 2D map.
KVNumberList fRunList
runs for which grid is valid
virtual Int_t InsertPoint()
const KVNameValueList * GetParameters() const
void SetRunList(const char *runlist)
Double_t GetYScaleFactor()
TString fDyName
dynamically generated name
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
Bool_t HandlesIDTelescope(KVBase *t) const
virtual void ReadAsciiFile_WP(Int_t version=-1)
lecture des grilles avec version suivant un modele de fichier
KVIDGraph * fLastSavedVersion
copy of last save version of grid, used for 'undo'
Int_t GetNumberOfCuts() const
void ExtendBeginningAllIdentLines(Double_t, Option_t *="")
KVNameValueList fPar
parameters associated to grid
virtual void SetVarX(const char *v)
void ReadAsciiFile(const Char_t *filename)
virtual void SetDrawOption(Option_t *option="")
void RemoveIdentifier(KVIDentifier *)
Remove and destroy identifier.
const TList * GetIDTelescopes() const
Double_t GetXScaleFactor()
virtual void Delete(Option_t *option="")
virtual void TestIdentification(TH2F *data, KVHashList &histos, KVNameValueList &histo_names)
void SetXVariable(const char *v)
void SetIDTelescopes();// MENU={Hierarchy="Set.../ID Telescopes"}
KVList fCuts
cuts used to define area in which identification is possible
KVList fIdentifiers
list of identification objects
virtual void SetMinimum(Double_t minimum=-1111)
void SetLineWidth(Width_t lwidth)
Double_t fLastScaleY
last applied scaling factor on Y
KVList * GetIdentifiers()
virtual void SetMassIDCapability(Bool_t yes=kTRUE)
virtual void SetLineAttributes()
Double_t fLastScaleX
last applied scaling factor on X
void UpdateLastSavedVersion()
update last saved version. mkae copy of current state of graph.
virtual void SetName(const char *name)
void SetLineStyle(Style_t lstyle)
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 ExtendEndAllIdentLines(Double_t, Option_t *="")
void RemoveInfo(KVIDentifier *)
Remove and destroy cut.
virtual void WriteToAsciiFile(std::ofstream &gridfile)
static void SetAutoAdd(Bool_t yes=kTRUE)
virtual void AddInfo(KVIDentifier *info)
void Increment(Float_t x)
TVirtualPad * IsDrawn() const
void AddIDTelescope(KVBase *t)
Int_t GetNumberOfIdentifiers() const
virtual void Copy(TObject &) const
Copy this to 'obj'.
virtual void ReadIdentifierFromAsciiFile(TString &name, TString &type, TString &cl, std::ifstream &gridfile)
Read in new identifier object from file.
Int_t GetMassFormula() const
virtual TFitResultPtr Fit(TF1 *f1, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
void RevertToLastSavedVersion()
virtual void ReadFromAsciiFile(std::ifstream &gridfile)
virtual Bool_t ExistVersion(Int_t version)
void ClearPad(TVirtualPad *)
static Bool_t GetAutoAdd()
void WriteParameterListOfIDTelescopes()
virtual Int_t RemovePoint()
virtual TObject * DrawClone(Option_t *option="") const
KVIDentifier * GetInfo(const Char_t *name) const
virtual void Identify(Double_t, Double_t, KVIdentificationResult *) const =0
TString fPattern
pattern of filenames used to write or read grid
void SetLineColor(Color_t lcolor)
void Print(Option_t *opt="") const
Print out all objects in graph.
virtual void WriteAsciiFile_WP(Int_t version=-1)
KVIDentifier * GetIdentifier(Int_t Z, Int_t A) const
virtual Bool_t HasMassIDCapability() const
const KVNumberList & GetRuns() const
virtual Bool_t IsIdentifiable(Double_t, Double_t, TString *rejected_by=nullptr) const
TVirtualPad * GetPad() const
KVIDGraph * GetLastSavedVersion() const
void FindAxisLimits()
Calculate X/Y min/max of all objects in graph.
const KVList * GetIdentifiers() const
virtual void SetVarY(const char *v)
static KVIDGraph * AddGraphs(KVIDGraph *g1, Int_t id1_min, Int_t id1_max, KVIDGraph *g2, Int_t id2_min, Int_t id2_max)
virtual Int_t RemovePoint(Int_t i)
virtual void DrawAndAdd(const Char_t *type="ID", const Char_t *classname="KVIDentifier")
virtual void AddCut(KVIDentifier *cut)
void AddParameter(char *Name, char *Value)
virtual void SetFillAttributes()
void SetMassFormula(Int_t)
const Char_t * GetName() const
TList fTelescopes
ID telescopes for which grid is valid.
virtual void SetMarkerAttributes()
KVNameValueList * GetParameters()
static Bool_t fAutoAddGridManager
if =kTRUE, grids are automatically added to ID grid manager on creation (default)
void WriteAsciiFile(const Char_t *filename)
Open, write and close ascii file containing this grid.
virtual KVIDentifier * New(const Char_t *)
Create new object of class "id_class" which derives from KVIDentifier.
virtual void BackwardsCompatibilityFix()
const KVList * GetInfos() const
void AddIDTelescopes(const TList *)
Associate this graph with all ID telescopes in list.
virtual void AddIdentifier(KVIDentifier *id)
virtual void SetInfos(Double_t, Double_t, KVIdentificationResult *) const
loop over KVIDGraph::fInfoZones to set flags in KVIdentificationResult
virtual void DrawClass() const
static KVIDGraph * MakeIDGraph(const Char_t *)
virtual void SaveAs(const char *filename="", Option_t *option="") const
const Char_t * GetNamesOfIDTelescopes() const
virtual void Inspect() const
void SetXScaleFactor(Double_t=0)
Int_t GetNumberOfInfos() const
KVIDentifier * GetIdentifier(const Char_t *name) const
virtual Int_t GetQualityCode() const
TVirtualPad * fPad
pad in which graph is drawn
void SetYVariable(const char *v)
virtual void Dump() const
virtual Bool_t AcceptIDForTest(const KVIdentificationResult &idr)
Axis_t fYmax
min/max Y coordinates of graph
const Char_t * GetIDTelescopeLabel() const
const KVList * GetCuts() const
void SetRuns(const KVNumberList &nl)
Set list of runs for which grid is valid.
virtual Int_t CheckVersion(Int_t version)
virtual void SetEditable(Bool_t editable=kTRUE)
void SetYScaleFactor(Double_t=0)
virtual void Initialize()=0
virtual void FitPanel()
virtual void SetTitle(const char *title="") {TGraph::SetTitle(title);};
Axis_t fXmax
min/max X coordinates of graph
Bool_t fOnlyZId
set to kTRUE when only to be used to give Z identification of nuclei, no mass info
virtual void Clear(Option_t *opt="")
Int_t fMassFormula
OPTION={GetMethod="GetMassFormula";SetMethod="SetMassFormula";Items=(0="Beta-stability",...
void SetPattern(TString pattern)
void RemoveCut(KVIDentifier *)
Remove and destroy cut.
void RemoveIDTelescope(KVBase *t)
KVIDentifier * GetCut(const Char_t *name) const
KVList fInfoZones
contours/lines used to add info to particles (ex: punch-through)
virtual void SetOnlyZId(Bool_t yes=kTRUE)
virtual void SetMaximum(Double_t maximum=-1111)
KVIDentifier * GetIdentifierAt(Int_t index) const
void ClearListOfTelescopes()
const Char_t * GetRunList() const
Handles a stock of identification grids to be used by one or more identification telescopes.
Base class for graphical cuts used in particle identification.
void SetParent(KVIDGraph *)
Set pointer to parent ID graph.
Full result of one attempted particle identification.
Bool_t IDOK
general quality of identification, =kTRUE if acceptable identification made
Extended TList class which owns its objects by default.
void Sort(Bool_t order=kSortAscending)
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
void SetValue(const Char_t *name, value_type value)
Strings used to represent a set of ranges of values.
virtual TObject * FindObject(const char *name) const
virtual Int_t GetSize() const
virtual void Execute(const char *method, const char *params, Int_t *error=0)
virtual TObject * At(Int_t idx) const
virtual void Add(TObject *obj)
virtual Bool_t IsSorted() const
virtual void SetFillAttributes()
virtual void SetLineAttributes()
virtual void SetLineColor(Color_t lcolor)
virtual void SetMarkerAttributes()
Bool_t Contains(const char *name) const
const char * GetVarX() const
virtual void SetVarY(const char *vary)
virtual void SetVarX(const char *varx)
const char * GetVarY() const
virtual void SetMaximum(Double_t maximum=-1111)
void SaveAs(const char *filename, Option_t *option="") const override
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
virtual Int_t RemovePoint()
virtual Int_t InsertPoint()
virtual void SetMinimum(Double_t minimum=-1111)
void Clear(Option_t *option="") override
void Add(TObject *obj) override
TObject * Remove(const TObjLinkPtr_t &lnk)
TObject * First() const override
virtual void SetName(const char *name)
virtual void Inspect() const
virtual void Dump() const
virtual TObject * DrawClone(Option_t *option="") const
virtual void Delete(Option_t *option="")
virtual void SetDrawOption(Option_t *option="")
virtual void DrawClass() const
TString & ReplaceAll(const char *s1, const char *s2)