10 #include "KVIDCutLine.h"
11 #include "Riostream.h"
12 #include "KVIDGraph.h"
63 if(!IsAcceptedDirectionSet())
65 KVError::Error(
this,
"TestPoint(x,y)",
"No accepted direction defined for cut %s in grid %s: all points accepted",
66 GetName(), GetParent()->GetName());
69 return WhereAmI(x, y, fAcceptedDirection.Data());
80 if(!IsAcceptedDirectionSet())
82 return Form(
"accept %s", GetAcceptedDirection());
91 void KVIDCutLine::WriteAsciiFile_extras(ofstream& file,
const Char_t*)
95 if (!IsAcceptedDirectionSet())
97 KVError::Error(
this,
"WriteAsciiFile_extras",
"No accepted direction defined for cut %s in grid %s: all points accepted",
98 GetName(), GetParent()->GetName());
99 file <<
"[undefined accepted direction]" << endl;
101 else file << fAcceptedDirection.Data() << endl;
110 void KVIDCutLine::ReadAsciiFile_extras(ifstream& file)
114 fAcceptedDirection.ReadLine(file);
115 if (fAcceptedDirection ==
"[undefined accepted direction]")
117 fAcceptedDirection =
"";
118 KVError::Error(
this,
"ReadAsciiFile_extras",
"No accepted direction defined for cut %s in grid %s: all points accepted",
119 GetName(), GetParent() ? GetParent()->GetName() :
"???");
Line in ID grid used to delimit regions where no identification is possible.
Bool_t TestPoint(Double_t x, Double_t y) override
const Char_t * GetSelectionType() const override
virtual ~KVIDCutLine()
Destructor.
void Error(UserClass p, const char *location, const char *va_(fmt),...)