4 #include "KVIDGridEditor.h"
14 #include <KVSpIdGUI.h>
15 #include <KVZAFinderDialog.h>
16 #include "KVTreeAnalyzer.h"
17 #include <KVHistogram.h>
18 #include "KVTestIDGridDialog.h"
19 #include "KVItvFinderDialog.h"
36 fSpiderOption =
"DRLF";
68 AddMethod(
"SaveCurrentGrid");
69 AddMethod(
"SpiderIdentification");
70 AddMethod(
"ChangeMasses");
71 AddMethod(
"ChangeCharges");
72 AddMethod(
"SelectLinesByZ");
73 AddMethod(
"MakeScaleX");
74 AddMethod(
"MakeScaleY");
75 AddMethod(
"SetSelectedColor");
76 AddMethod(
"SetPointStyle");
77 AddMethod(
"SetPointSize");
78 AddMethod(
"SetVarXVarY");
79 AddMethod(
"SetRunList");
80 AddMethod(
"AddParameter");
81 AddMethod(
"SetXScaleFactor");
82 AddMethod(
"SetYScaleFactor");
83 AddMethod(
"SetSVGMode");
85 ft =
new TF1(
"tranlation",
"(x+[0])", 0, 50000);
86 fs =
new TF1(
"scale",
"(x-[0])*[1]+[0]", 0, 50000);
87 fsy =
new TF1(
"scale_y",
"(x-[0])*[1]+[0]", 0, 50000);
89 frx =
new TF2(
"rotation_x",
"(x-[0])*TMath::Cos([2])-(y-[1])*TMath::Sin([2])+[0]", 0, 50000);
90 fry =
new TF2(
"rotation_y",
"(x-[0])*TMath::Sin([2])+(y-[1])*TMath::Cos([2])+[1]", 0, 50000);
96 lplabel->SetOwner(
kTRUE);
98 lplabel2->SetOwner(
kTRUE);
100 lplabel3->SetOwner(
kTRUE);
102 lplabel4->SetOwner(
kTRUE);
104 lplabel5->SetOwner(
kTRUE);
128 dynamic_cast<TGMainFrame*
>(fCanvas->GetCanvasImp())->Connect(
"CloseWindow()",
"KVIDGridEditor",
this,
"CanvasWasClosed()");
129 fPad = fCanvas->cd();
132 if (TheHisto) TheHisto->Draw(
"col");
133 if (TheGrid) TheGrid->Draw();
175 itrans = iact = iopt = 0;
214 dynamic_cast<TGMainFrame*
>(fCanvas->GetCanvasImp())->Disconnect(
"CloseWindow()",
"KVIDGridEditor",
this,
"CanvasWasClosed()");
239 ResetColor(ListOfLines);
240 ListOfLines->Clear();
242 if (
option.Contains(
"AL")) {
253 if (!IsClosed()) TheGrid->UnDraw();
261 lplabel->Execute(
"SetTextSize",
"0.625");
262 lplabel->Execute(
"SetFillColor",
"kWhite");
263 lplabel2->Execute(
"SetTextSize",
"0.625");
264 lplabel2->Execute(
"SetFillColor",
"kWhite");
265 lplabel3->Execute(
"SetTextSize",
"0.6");
266 lplabel3->Execute(
"SetFillColor",
"kWhite");
267 lplabel4->Execute(
"SetTextSize",
"0.6");
268 lplabel4->Execute(
"SetFillColor",
"kWhite");
270 lplabel->Execute(
"SetBorderSize",
"1");
271 lplabel2->Execute(
"SetBorderSize",
"1");
272 lplabel3->Execute(
"SetBorderSize",
"1");
273 lplabel4->Execute(
"SetBorderSize",
"1");
274 lplabel5->Execute(
"SetBorderSize",
"1");
292 fCanvas->SaveAs(
Form(
"%s/gIDGridEditorPrint-%d.png", dir.
Data(), fSVGIndex));
350 if (gIDGridEditor ==
this) gIDGridEditor = 0x0;
448 y1 = 0.90 - i * 0.06;
457 y1 = 0.90 - i * 0.06;
528 thelist->
Add(templabel);
545 if (!the_directory)
return;
548 while ((key = (
TKey*)next_key())) {
584 while ((obj = nextmem())) {
592 while ((
f = (
TFile*)next())) {
599 HistosNames.
Begin(
" ");
600 while (!HistosNames.
End()) {
602 if (
g !=
"gIDGridEditorDefaultHistogram") histos.
Add(
new TObjString(
g.Data()));
609 while ((canv = (
TCanvas*)nextc())) {
611 if (strcmp(canv->
GetName(),
"gIDGridEditorCanvas")) {
614 while ((obj1 = next_step1())) {
618 TIter next_step2(((
TPad*)obj1)->GetListOfPrimitives());
619 while ((obj2 = next_step2())) {
620 printf(
"%s\n", obj2->
GetName());
657 HistosNames +=
Form(
" %s", s->GetString().Data());
716 Choices +=
"Current ";
718 else Default =
"Dummy";
722 else if (Select ==
"") {
727 Choices += Select.
Data();
732 while (!Listo.
End()) {
734 if (s != Select) Choices +=
Form(
"%s ", s.Data());
748 else Answer = Default;
764 else Answer =
"Dummy";
781 if ((TmpH = (
TH2*)
gROOT->FindObject(hname.
Data())))
delete TmpH;
787 cout <<
"ERROR: KVIDGridEditor::SetHisto(): '" << hh->
GetName() <<
"' must be a 2D histogram !" << endl;
826 while ((cc = (
TCanvas*)nextc())) {
827 if (strcmp(cc->GetName(),
"gIDGridEditorCanvas")) {
828 if ((obj = cc->FindObject(histoname))) {
869 cout <<
"ERROR: KVIDGridEditor::SetHisto(): invalid pointer on the grid !" << endl;
900 if (!strcmp(GridName.
Data(),
"")) {
902 Bool_t proposename =
false;
909 new KVInputDialog(
gClient->GetDefaultRoot(),
"Enter the name of your grid :", &Answer, &okpressed);
910 if (!okpressed)
return;
911 GridName = Answer.
Data();
916 if (!gIDGridManager)
return;
918 cout <<
"WARNING: KVIDGridEditor::SetGrid(): Unknown grid named '" << GridName.
Data() <<
"' !" << endl;
921 else SetGrid(tempgrid, sethisto);
1110 Double_t ddX = (X1 + X0) * 0.5 - px;
1112 if (distX >= 0.5)
return;
1120 Double_t ddY = (Y1 + Y0) * 0.5 - py;
1122 if (distY >= 0.5)
return;
1124 if ((distX <=
size) && (distY <=
size))
return;
1134 if ((X0 - dX > 0) && (X1 - dX < NbinsX)) {
1138 if ((Y0 - dY > 0) && (Y1 - dY < NbinsY)) {
1203 Int_t zmin, zmax, amin, amax;
1204 if (LastZ == SeleZ) {
1210 else if (LastZ < SeleZ) {
1224 for (
int Z = zmin; Z <= zmax; Z++) {
1231 if ((
line->GetA() > amin) && (
line->GetA() < amax)) {
1237 if ((
line->GetZ() == zmin) && (
line->GetA() > amin)) {
1242 if ((
line->GetZ() == zmax) && (
line->GetA() < amax)) {
1247 if ((
line->GetZ() != zmax) && (
line->GetZ() != zmin)) {
1290 else if (!strcmp(who,
"T_{X}"))
TranslateX(sign);
1291 else if (!strcmp(who,
"T_{Y}"))
TranslateY(sign);
1292 else if (!strcmp(who,
"R_{Z}"))
RotateZ(sign);
1293 else if (!strcmp(who,
"S_{X}"))
ScaleX(sign);
1294 else if (!strcmp(who,
"S_{Y}"))
ScaleY(sign);
1295 else if (!strcmp(who,
"S_{XY}"))
ScaleXY(sign);
1317 if ((ratio2 - ratio1 > 0.05)) {
1326 if ((ratio2 - ratio1 > 0.05)) {
1351 else if (commande.
Contains(
"Fit")) {
1358 else if (commande.
Contains(
"Test")) {
1365 else if (commande.
Contains(
"Mass")) {
1372 else if (commande.
Contains(
"Info")) {
1380 else if (commande.
Contains(
"More")) {
1387 else if (commande.
Contains(
"Delete")) {
1390 if (color ==
kRed) {
1401 else cout <<
"WARNING: KVIDGridEditor::DispatchOrder(): unknown order '" << commande <<
"' !" << endl;
1487 "Choose class of new identifier :",
1492 if (!okpressed)
return;
1494 else cut_class = cut_choices;
1502 if (
fDebug) cout <<
"INFO: KVIDGridEditor::NewLine(): New Line has been added to the current grid..." << endl;
1533 if (!strcmp(cut_default,
"")) {
1534 cut_types.
Begin(
" ");
1535 cut_default = cut_types.
Next();
1538 "Choose class of new cut :",
1550 else cut_class = cut_types;
1559 if (
fDebug) cout <<
"INFO: KVIDGridEditor::NewCut(): New Cut has been added to the current grid..." << endl;
1578 if (info_choices ==
"") info_choices =
gEnv->
GetValue(
Form(
"%s.InfoClass",
"KVIDGraph"),
"");
1581 if (info_choices ==
"") info_choices =
gEnv->
GetValue(
Form(
"%s.DefaultInfoClass",
"KVIDGraph"),
"");
1586 KVString info_types = info_choices;
1591 if (!strcmp(info_default,
"")) {
1592 info_types.
Begin(
" ");
1593 info_default = info_types.
Next();
1596 "Choose class of new info :",
1598 info_default.
Data(),
1608 else info_class = info_types;
1613 Info(
"NewInfo",
"Adding new info contour or line of class '%s'", info_class.
Data());
1618 if (
fDebug) cout <<
"INFO: KVIDGridEditor::NewInfo(): New info has been added to the current grid..." << endl;
1815 if (
fDebug) cout <<
"INFO: KVIDGridEditor::TestGrid(): testing the current grid..." << endl;
1831 cm->Action(fitter,
m);
1834 if (
fDebug) cout <<
"INFO: KVIDGridEditor::FitGrid(): fitting grid '" <<
TheGrid->
GetName() <<
"'..." << endl;
1851 if (!okpressed)
return;
1860 else if ((
m =
IsA()->GetMethodAllAny(Answer.
Data()))) {
1862 cm->Action(
this,
m);
1865 else cout <<
"INFO: KVIDGridEditor::SuggestMoreAction(): '" << Answer <<
"' not implemented..." << endl;
1888 if ((found == -1) || (!
line))
continue;
1915 "KVIDGridEditor::SaveCurrentGrid",
Form(
"Do you wat to save the grid here : %s", fn.
Data()),
1919 if (ret_code ==
kMBYes) {
1925 const char* filetypes[] = {
1926 "ID Grid files",
"*.dat",
1939 if (!filenam.
Contains(
'.')) filenam +=
".dat";
1961 for (
int ii = 0; ii <
id->GetN(); ii++) {
1962 double xx =
id->
GetX()[ii];
1963 double yy =
id->GetY()[ii];
1965 if (ref) dyref =
abs(yy - ref->
Eval(xx)) / 2;
1969 int nfound = spec.
Search(hh, dyref,
"goff", 0.05);
1976 for (
int ip = 0; ip < nfound; ip++) {
1980 if (ypeaks[ip] > threshold && (idr.
Z ==
id->GetZ() && idr.
A ==
id->GetA())) {}
1983 if (
abs(xpeaks[ip] - yy) < dy) {
1984 dy =
abs(xpeaks[ip] - yy);
1988 if (ygood > 0)
id->GetY()[ii] = ygood;
2000 static TString dir(
"$(HISTOROOT)");
2003 if (dir ==
"$(HISTOROOT)" &&
gSystem->
Getenv(
"HISTOROOT")) {
2009 const char* filetypes[] = {
"Root files",
"*.root",
"All files",
"*", 0, 0};
2032 Choices +=
"kBlack kGreen kBlue kRed kYellow kCyan kMagenta";
2037 if (!okpressed)
return;
2153 Form(
"This will undo all changes to the grid. Are you sure, %s?", username.
Data()),
2156 if (ret_val &
kMBOk) {
2198 if (
fDebug) cout <<
"INFO: KVIDGridEditor::TranslateX(): translation on the X axis (" << (
Sign > 0 ?
"+" :
"-") << step <<
") !" << endl;
2219 if (
fDebug) cout <<
"INFO: KVIDGridEditor::TranslateY(): translation on the Y axis (" << (
Sign > 0 ?
"+" :
"-") << step <<
") !" << endl;
2253 if (X0 >= X1) X0 = X1 - 1;
2255 if ((X0 - dX) < 0) ax->
SetRange(0, X1 - X0);
2257 else ax->
SetRange(X0 - dX, X1 - dX);
2267 if (Y0 >= Y1) Y0 = Y1 - 1;
2269 if ((Y0 - dY) < 0) ax->
SetRange(0, Y1 - Y0);
2271 else ax->
SetRange(Y0 - dY, Y1 - dY);
2288 if (step >= 45.) step = 45.;
2300 if (
fDebug) cout <<
"INFO: KVIDGridEditor::RotateZ(): rotation around the Z axis (" << (
Sign > 0 ?
"+" :
"-") << step <<
") !" << endl;
2373 if (
fDebug)
Info(
"ScaleX",
"scaling on the X axis (*%f) !", factor);
2397 if (
fDebug)
Info(
"ScaleY",
"scaling on the Y axis (*%f) !", factor);
2429 if (
fDebug)
Info(
"ScaleXY",
"scaling (*%f) !", factor);
2505 TIter nextidd(IdentList);
2531 if (
fDebug) cout <<
"INFO: KVIDGridEditor::ForceUpdate(): Canvas and Co has been updated !" << endl;
2665 gROOT->ForceStyle();
2714 gROOT->ForceStyle();
2899 if ((XX1 == 1) && (sign == 1))
return;
2900 if ((XX2 == xAxis->
GetNbins() - 1) && (sign == -1))
return;
2902 Int_t dX = (
Int_t)sign * (XX1 - XX2) * 0.25 * speed;
2904 xAxis->
SetRange(XX1 + dX, XX2 + dX);
2923 Int_t dX = (
Int_t) - 1 * (XX1 - XX2) * 0.1 * speed;
2925 axis->
SetRange(XX1 + dX, XX2 - dX);
2943 if ((XX1 == 1) && (sign == 1))
return;
2944 if ((XX2 == yAxis->
GetNbins() - 1) && (sign == -1))
return;
2946 Int_t dX = (
Int_t)sign * (XX1 - XX2) * 0.25 * speed;
2948 yAxis->
SetRange(XX1 + dX, XX2 + dX);
3035 Info(
"ChangeMasses",
"%d lines found for Z=%d", ll->
GetSize(), Z);
3040 Info(
"ChangeMasses",
"A=%d -> A=%d",
id->GetA(),
id->GetA() + dA);
3041 id->SetA(
id->GetA() + dA);
3059 for (
int i =
n - 1; i > 0; i--) {
3062 Info(
"ChangeMasses",
"%d lines found for Z=%d", ll->
GetSize(), Z);
3067 Info(
"ChangeMasses",
"Z=%d -> Z=%d",
id->GetZ(),
id->GetZ() + dZ);
3068 id->SetZ(
id->GetZ() + dZ);
3097 Info(
"PrintScalingRecap",
3098 "Scaling recap:\n X --> %f X + %f\n Y --> %f Y + %f"
size_t size(const MatrixT &matrix)
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 result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t SetLineColor
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
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 g
Option_t Option_t TPoint TPoint percent
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize fs
Option_t Option_t TPoint TPoint const char y1
char * Form(const char *fmt,...)
char * StrDup(const char *str)
R__EXTERN TStyle * gStyle
R__EXTERN TSystem * gSystem
Base class for KaliVeda framework.
virtual Bool_t IsType(const Char_t *typ) const
void Copy(TObject &) const override
Make a copy of this object.
Ask user to choose between several options in a drop-down list.
Extended version of ROOT THashList.
Wrapper for histograms and graphical cuts used by KVTreeAnalyzer.
Base class for particle identification in a 2D map.
void Draw(Option_t *opt="") override
void RemoveIdentifier(KVIDentifier *)
Remove and destroy identifier.
void SetEditable(Bool_t editable=kTRUE) override
void UpdateLastSavedVersion()
update last saved version. mkae copy of current state of graph.
void RemoveInfo(KVIDentifier *)
Remove and destroy cut.
const KVList * GetCuts() const
TVirtualPad * GetPad() const
const KVList * GetInfos() const
void RevertToLastSavedVersion()
virtual void Identify(Double_t, Double_t, KVIdentificationResult *) const =0
const Char_t * GetName() const override
KVIDentifier * GetIdentifier(Int_t Z, Int_t A) const
void FindAxisLimits()
Calculate X/Y min/max of all objects in graph.
virtual void DrawAndAdd(const Char_t *type="ID", const Char_t *classname="KVIDentifier")
void WriteAsciiFile(const Char_t *filename)
Open, write and close ascii file containing this grid.
virtual void Initialize()=0
void RemoveCut(KVIDentifier *)
Remove and destroy cut.
const KVList * GetIdentifiers() const
Extended version of KVCanvas used by KVIDGridEditor.
Identification grid editor GUI ,.
Bool_t drawmode
true si mode draw (line, cut)
void SelectLinesByZ(const Char_t *ListOfZ)
Int_t imod
utilise pour le placement des boutons
void AddTransformation(TString label)
void DynamicZoom(Int_t Sign, Int_t px=0, Int_t py=0, Double_t speed=.5)
Zoom in or out of histogram with mouse wheel.
void SelectLines(const Char_t *label)
KVIDGridEditor()
Default constructor.
void MakeTransformation()
KVHashList * lplabel5
contient la liste des TPaveLabel pour moduler les pas (vert)
KVHashList * lplabel4
contient la liste des TPaveLabel pour editer la grille (rouge)
void SetGrid(KVIDGraph *gg, Bool_t histo=true)
void SetPiedestal(Double_t ppdx, Double_t ppdy)
piedestal used during SpiderIdentification
void MoveHor(Int_t sign, Double_t speed=1, Bool_t update=true)
Bool_t aoemode
true si mode age of empire
void RecurseFileStructureFindHistos(TString &hist_names, TDirectory *the_directory)
TString ListOfHistogramInMemory()
void ChangeZoomRatio(Int_t sign, Double_t speed=.5)
TString PreselectHistogram(TString ListOfName, Int_t ipert=0)
void TranslateX(Int_t Sign)
void ChooseSelectedColor()
void ConstructModulator()
void ScaleCurvature(Int_t Sign)
void ChangeCharges(const Char_t *Zl, Int_t dZ)
void MakeScaleX(Double_t scaleFactor)
const char * WhoIsSelected()
void ChangeStep(const char *title, Int_t dstep=1)
void AddGridOption(TString label, KVHashList *thelist)
TH2 * FindInCanvases(const Char_t *name)
void SetPointStyle(int pstyle)
void StartViewer()
Close();.
void DispatchOrder(TPaveLabel *label)
virtual ~KVIDGridEditor()
Destructor.
void TranslateY(Int_t Sign)
void MakeScaleY(Double_t scaleFactor)
KVList * ListOfLines
liste des lignes selectionnees
void SetSelectedColor(Int_t color)
TH2 * TheHisto
pointeur sur l'histogramme
void Clear(const Option_t *opt="") override
void SelectTrans(TPaveLabel *label)
void ResetColor(KVIDentifier *Ident)
KVIDGridEditorCanvas * fCanvas
void AddMethod(const char *theMethod)
KVIDGraph * TheGrid
pointeur sur la grille courante
Bool_t HandleKey(Int_t px, Int_t py)
Handle keys.
KVHashList * lplabel2
contient la liste des TPaveLabel pour les actions (rouge)
KVHashList * lplabel3
contient la liste des TPaveLabel pour les selections de lignes (vert)
void MoveVert(Int_t sign, Double_t speed=1, Bool_t update=true)
void SetPointSize(double psize)
void ChangeMasses(const Char_t *Zl, Int_t dA)
Int_t SelectedColor
couleur des lignes selectionnees
Bool_t venermode
true si mode select
Bool_t ownhisto
true si histo par defaut
void SetPivot(Double_t xx0, Double_t yy0)
void SetEditable(TPaveLabel *label)
void SpiderIdentification()
Bool_t selectmode
true si mode vener
Double_t fBy
scaling recap for current grid
Double_t ymax
utilises pour les differents zooms
KVHashList * lplabel
contient la liste des TPaveLabel pour les transformations (rouge)
Double_t x0
coordonne x du pivot
void DeleteObject(KVIDentifier *obj)
void Copy(TObject &) const override
Double_t y0
coordonne y du pivot
Bool_t dlmode
true si mode delete
void AddAction(TString label)
Hybrid charge & mass identification grid.
Identification grid with lines corresponding to different nuclear isotopes (KVIDZALine)
Base class for identification ridge lines corresponding to different nuclear species.
Base class for graphical cuts used in particle identification.
void Scale(Double_t sx=-1, Double_t sy=-1)
Full result of one attempted particle identification.
Int_t A
A of particle found (if Aident==kTRUE)
Int_t Z
Z of particle found (if Zident==kTRUE)
GUI for finding/fixing mass identification intervals.
Extended TList class which owns its objects by default.
void Sort(Bool_t order=kSortAscending)
Strings used to represent a set of ranges of values.
IntArray GetArray() const
void Execute(const char *method, const char *params, Int_t *error=0) override
KVSeqCollection * GetSubListWithMethod(const Char_t *retvalue, const Char_t *method) const
TObject * Remove(TObject *obj) override
Remove object from list.
void Add(TObject *obj) override
TObject * FindObject(const char *name) const override
void AddLast(TObject *obj) override
Int_t GetSize() const override
void Clear(Option_t *option="") override
void SetOwner(Bool_t enable=kTRUE) override
TObject * At(Int_t idx) const override
void Delete(Option_t *option="") override
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Begin(TString delim) const
KVString Next(Bool_t strip_whitespace=kFALSE) const
GUI for testing identification grids.
const KVList * GetHistoList() const
TH1 * GetHistogram(const Char_t *name) const
Return histogram with given name.
ABC for fitting ID grids with functionals.
static KVVirtualIDFitter * GetDefaultFitter()
void SetPad(TVirtualPad *p)
void SetGrid(KVIDGraph *g)
Dialog box for KVZALineFinder class.
virtual void SetAxisColor(Color_t color=1, Float_t alpha=1.)
virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.)
virtual Color_t GetFillColor() const
virtual void SetFillColor(Color_t fcolor)
virtual void SetFillStyle(Style_t fstyle)
virtual void SetLineColor(Color_t lcolor)
virtual void SetMarkerColor(Color_t mcolor=1)
virtual void SetMarkerStyle(Style_t mstyle=1)
virtual void SetMarkerSize(Size_t msize=1)
virtual void SetTextAlign(Short_t align=11)
virtual void SetTextColor(Color_t tcolor=1)
virtual Int_t FindBin(const char *label)
virtual void SetRangeUser(Double_t ufirst, Double_t ulast)
virtual void SetRange(Int_t first=0, Int_t last=0)
virtual Double_t GetBinWidth(Int_t bin) const
void Clear(Option_t *option="") override
TCanvasImp * GetCanvasImp() const override
TVirtualPad * cd(Int_t subpadnumber=0) override
TMethod * GetMethodAllAny(const char *method)
TMethod * GetMethodAny(const char *method)
virtual void AddAll(const TCollection *col)
virtual Int_t GetEntries() const
virtual void SetOwner(Bool_t enable=kTRUE)
virtual Bool_t IsEmpty() const
Bool_t Contains(const char *name) const
TClass * IsA() const override
virtual TDirectory * GetDirectory(const char *namecycle, Bool_t printError=false, const char *funcname="GetDirectory")
virtual TList * GetListOfKeys() const
virtual const char * GetValue(const char *name, const char *dflt) const
virtual void SetParameters(const Double_t *params)
virtual Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
virtual void SetParameter(const TString &name, Double_t value)
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
virtual Bool_t IsEditable() const
virtual Double_t Eval(Double_t x, TSpline *spline=nullptr, Option_t *option="") const
void SetName(const char *name="") override
void Draw(Option_t *chopt="") override
void Draw(Option_t *option="") override
virtual void SetMinimum(Double_t minimum=-1111)
virtual Double_t GetMinimum(Double_t minval=-FLT_MAX) const
TH1D * ProjectionY(const char *name="_py", Int_t firstxbin=0, Int_t lastxbin=-1, Option_t *option="") const
Bool_t IsFolder() const override
virtual const char * GetClassName() const
const char * GetName() const override
TClass * IsA() const override
virtual const char * GetName() const
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual const char * ClassName() const
virtual Bool_t InheritsFrom(const char *classname) const
virtual void Draw(Option_t *option="")
virtual void Info(const char *method, const char *msgfmt,...) const
TList * GetListOfPrimitives() const override
const char * GetName() const override
virtual void SetLabel(const char *label)
const char * GetTitle() const override
virtual TText * AddText(const char *label)
void Draw(Option_t *option="") override
const char * GetName() const override
virtual void SetName(const char *name="")
virtual void SetBorderSize(Int_t bordersize=4)
Double_t * GetPositionY() const
virtual Int_t Search(const TH1 *hist, Double_t sigma=2, Option_t *option="", Double_t threshold=0.05)
Double_t * GetPositionX() const
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
const char * Data() const
Bool_t EqualTo(const char *cs, ECaseCompare cmp=kExact) const
TString & Prepend(char c, Ssiz_t rep=1)
virtual Int_t Sizeof() const
void Form(const char *fmt,...)
TString & Remove(EStripType s, char c)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
TString & ReplaceAll(const char *s1, const char *s2)
void SetOptTitle(Int_t tit=1)
void SetPadTopMargin(Float_t margin=0.1)
void SetOptStat(Int_t stat=1)
void SetPadBottomMargin(Float_t margin=0.1)
void SetFrameFillColor(Color_t color=1)
void SetPadRightMargin(Float_t margin=0.1)
void SetTitleFont(Style_t font=62, Option_t *axis="X")
void SetPadTickY(Int_t ticky)
void SetTitleOffset(Float_t offset=1, Option_t *axis="X")
void SetPadTickX(Int_t tickx)
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
void SetLabelFont(Style_t font=62, Option_t *axis="X")
void SetPadLeftMargin(Float_t margin=0.1)
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
void SetNdivisions(Int_t n=510, Option_t *axis="X")
void SetHatchesSpacing(Double_t h)
void SetHatchesLineWidth(Int_t l)
void SetLabelSize(Float_t size=0.04, Option_t *axis="X")
Bool_t cd(const char *path)
virtual const char * Getenv(const char *env)
virtual UserGroup_t * GetUserInfo(const char *user=nullptr)
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
virtual const char * BaseName(const char *pathname)
virtual char * ExpandPathName(const char *path)
virtual void Modified(Bool_t flag=1)=0
virtual void SetLogx(Int_t value=1)=0
virtual Double_t GetUymax() const=0
virtual TFrame * GetFrame()=0
virtual Int_t GetEventX() const=0
virtual TObject * GetSelected() const=0
virtual void SetLogz(Int_t value=1)=0
virtual Double_t AbsPixeltoX(Int_t px)=0
virtual Double_t GetUxmax() const=0
virtual Double_t AbsPixeltoY(Int_t py)=0
virtual Double_t GetUymin() const=0
virtual Int_t GetEvent() const=0
virtual Double_t GetUxmin() const=0
virtual void SetLogy(Int_t value=1)=0
virtual Int_t GetEventY() const=0
RVec< PromoteType< T > > abs(const RVec< T > &v)
void update(const LAYERDATA &prevLayerData, LAYERDATA &currLayerData, double factorWeightDecay, EnumRegularization regularization)
Double_t Min(Double_t a, Double_t b)
Double_t Sign(Double_t a, Double_t b)
constexpr Double_t DegToRad()
Double_t Max(Double_t a, Double_t b)