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());
126 "%s is not a valid class deriving from KVIDLine.",
153 if (
type ==
"OK" && cl ==
"KVIDLine") {
160 if (
type ==
"ID" && cl ==
"KVIDZLine") {
164 line = New(cl.Data());
171 line->ReadAsciiFile(gridfile);
177 line->CopyGraph(oldcut);
196 TIter next(GetIdentifiers());
199 fEmbracingLines.
Clear();
201 if (
line->IsBetweenEndPoints(
x,
y, direction)) {
202 fEmbracingLines.Add(
line);
226 CalculateLineWidths();
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 Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
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.
Base class for identification ridge lines corresponding to different nuclear species.
Base class for graphical cuts used in particle identification.
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Bool_t InheritsFrom(const char *cl) const override
virtual void Clear(Option_t *="")
const char * Data() const