22 #include "TObjString.h"
23 #include "Riostream.h"
24 #include "TObjArray.h"
27 #include "TVirtualFitter.h"
29 #include "TContextMenu.h"
32 #include "KVIDZALine.h"
33 #include "KVIDCutLine.h"
106 TString _cl, _type(idline_class);
110 if (_type ==
"ID") clas = DefaultIDLineClass();
111 else if (_type ==
"OK") clas = DefaultOKLineClass();
112 else _cl = idline_class;
114 if (_cl ==
"") _cl =
"KVIDLine";
115 if (!clas) clas = gROOT->GetClass(_cl.Data());
121 "%s is not a valid classname. No known class.", _cl.Data());
124 if (!clas->InheritsFrom(
"KVIDLine")) {
126 "%s is not a valid class deriving from KVIDLine.",
152 Bool_t oldcutline = kFALSE;
153 if (type ==
"OK" && cl ==
"KVIDLine") {
159 Bool_t zline = kFALSE;
160 if (type ==
"ID" && cl ==
"KVIDZLine") {
164 line = New(cl.Data());
169 if (zline)((
KVIDZALine*)line)->ReadAsciiFile_KVIDZLine(gridfile);
180 if (type ==
"OK") line->
SetName(name.Data());
196 TIter next(GetIdentifiers());
199 fEmbracingLines.Clear();
200 while ((line = (
KVIDLine*) next())) {
202 fEmbracingLines.Add(line);
226 CalculateLineWidths();
Line in ID grid used to delimit regions where no identification is possible.
Abstract base class for 2D identification grids in e.g. (dE,E) maps.
void init()
Initialisations, used by constructors.
KVIDLine * NewLine(const Char_t *idline_class="")
Int_t GetIDLinesEmbracingPoint(const Char_t *direction, Double_t x, Double_t y) const
void ReadIdentifierFromAsciiFile(TString &name, TString &type, TString &cl, std::ifstream &gridfile)
Base class for lines/cuts used for particle identification in 2D data maps.
Bool_t IsBetweenEndPoints(Double_t x, Double_t y, const Char_t *axis="") const
Base class for identification ridge lines corresponding to different nuclear species.
Base class for graphical cuts used in particle identification.
virtual void SetName(const char *name)
void CopyGraph(TGraph *)
Copy coordinates of points from the TGraph.
virtual void ReadAsciiFile(std::ifstream &)