KaliVeda
Toolkit for HIC analysis
KVIDCutLine Class Reference

Detailed Description

Line in ID grid used to delimit regions where no identification is possible.

Created by KVClassFactory on Fri Feb 15 15:00:17 2008 Author: franklan

Definition at line 23 of file KVIDCutLine.h.

#include <KVIDCutLine.h>

Inheritance diagram for KVIDCutLine:

Public Member Functions

 KVIDCutLine ()
 Default constructor. More...
 
virtual ~KVIDCutLine ()
 Destructor. More...
 
void AcceptAbove ()
 
void AcceptBelow ()
 
void AcceptLeft ()
 
void AcceptRight ()
 
Int_t GetA () const override
 
const Char_t * GetAcceptedDirection () const
 
Int_t GetMassFormula () const override
 
const Char_t * GetSelectionType () const override
 
Int_t GetZ () const override
 
bool IsAcceptedDirectionSet () const
 
void SetAcceptedDirection (const Char_t *dir)
 
void SetName (const char *name) override
 This is redeclared to make it appear in context menus for KVIDCutLines. More...
 
Bool_t TestPoint (Double_t x, Double_t y) override
 
- Public Member Functions inherited from KVIDLine
 KVIDLine ()
 Default ctor. More...
 
 KVIDLine (const KVIDLine &)
 copy constructor More...
 
 KVIDLine (const TGraph &gr)
 initialize KVIDLine using TGraph copy ctor More...
 
virtual ~ KVIDLine ()
 
Double_t DistanceToLine (Double_t px, Double_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2, Int_t &)
 
Double_t DistanceToLine (Double_t px, Double_t py, Int_t &)
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 
void GetEndPoint (Double_t &x, Double_t &y) const
 
void GetStartPoint (Double_t &x, Double_t &y) const
 
Bool_t IsBetweenEndPoints (Double_t x, Double_t y, std::optional< TString > axis={}) const
 
Bool_t PosRelToLine (Option_t *opt, Double_t px, Double_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 
void WaitForPrimitive () override
 
Bool_t WhereAmI (const KVIDLine &, const TString &tested_direction) const
 static KVIDLine *MakeIDLine(TH2 *obj,TCutG *cut,Double_t xdeb=-1.,Double_t xfin=-1.,Double_t np=1.,Bool_t save=kFALSE); More...
 
Bool_t WhereAmI (Double_t px, Double_t py, Option_t *opt) const
 
- Public Member Functions inherited from KVIDentifier
 KVIDentifier ()
 Default constructor. More...
 
 KVIDentifier (const KVIDentifier &)
 
 KVIDentifier (const TCutG &)
 copy a TCutG More...
 
 KVIDentifier (const TGraph &)
 copy a TGraph More...
 
virtual ~KVIDentifier ()
 Destructor. More...
 
virtual Int_t AddPointAtTheEnd ()
 
virtual void ChechHierarchy (KVIDentifier *gr)
 
virtual void CloneScaleStore (Int_t newzt, Int_t newat, Double_t dy=0., Double_t sx=1., Double_t sy=1.)
 
Int_t Compare (const TObject *) const override
 
virtual Int_t ContinueDrawing ()
 Continue to draw an existing the line. More...
 
void Copy (TObject &obj) const override
 Copy attributes of this identifier into 'obj'. More...
 
void CopyGraph (const TGraph &)
 Copy coordinates of points from the TGraph. More...
 
void CopyGraph (TGraph *)
 Copy coordinates of points from the TGraph. More...
 
virtual Int_t DecreaseNumberOfPoints ()
 
void Delete (Option_t *option="") override
 
void DrawClass () const override
 
TObject * DrawClone (Option_t *option="") const override
 
void DrawPanel () override
 
void Dump () const override
 
void ExtendLine (bool fromBeginning, Double_t Limit, Option_t *Direction)
 
void ExtendLine (Double_t, Option_t *Direction="")
 
TFitResultPtr Fit (const char *formula, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0) override
 
TFitResultPtr Fit (TF1 *f1, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0) override
 
void FitPanel () override
 
virtual Int_t GetID () const
 
KVIDGraph * GetParent () const
 Get pointer to parent ID graph. More...
 
virtual Double_t GetPID () const
 
const Char_t * GetType () const
 
virtual Bool_t HasMassFits () const
 
virtual Int_t IncreaseNumberOfPoints ()
 
Int_t InsertPoint () override
 Insert a new point at the mouse position. More...
 
virtual Int_t InsertSmoothPoint ()
 Insert a new point at the mouse X position using a smooth evaluation of the Y. More...
 
void Inspect () const override
 
void NotifyParentOfModification ()
 If identifier belongs to a graph/grid, send signal to say it has been modified. More...
 
virtual Bool_t OnlyZId () const
 
void Print (Option_t *opt) const override
 
virtual void ReadAsciiFile (std::ifstream &)
 
virtual Int_t RemoveFirstPoint ()
 
virtual Int_t RemoveLastPoint ()
 
virtual Int_t RemovePoint () override
 
virtual Int_t RemovePoint (Int_t i) override
 
void SaveAs (const char *filename="", Option_t *option="") const override
 
void Scale (TF1 *sx, TF1 *sy)
 
void ScaleXY (Double_t sx=-1, Double_t sy=-1)
 
void SetDrawOption (Option_t *option="") override
 
void SetFillAttributes () override
 
void SetLineAttributes () override
 
void SetMarkerAttributes () override
 
void SetMaximum (Double_t maximum=-1111) override
 
void SetMinimum (Double_t minimum=-1111) override
 
void SetName (const char *name) override
 
virtual void SetOnlyZId (Bool_t onlyz=kTRUE)
 
void SetParent (KVIDGraph *)
 Set pointer to parent ID graph. More...
 
void SetTitle (const char *title="") override
 
virtual Int_t SortPoints (Bool_t ascending=kTRUE)
 
virtual void WriteAsciiFile (std::ofstream &, const Char_t *name_prefix="")
 

Additional Inherited Members

- Static Public Member Functions inherited from KVIDLine
static KVIDLine * MakeIDLine (TObject *obj, Double_t xdeb=-1., Double_t xfin=-1., Double_t np=1., Bool_t save=kFALSE)
 

Constructor & Destructor Documentation

◆ KVIDCutLine()

KVIDCutLine::KVIDCutLine ( )

Default constructor.

Definition at line 22 of file KVIDCutLine.cpp.

◆ ~KVIDCutLine()

KVIDCutLine::~KVIDCutLine ( )
virtual

Destructor.

Definition at line 33 of file KVIDCutLine.cpp.

Member Function Documentation

◆ AcceptAbove()

void KVIDCutLine::AcceptAbove ( )
inline

Definition at line 77 of file KVIDCutLine.h.

◆ AcceptBelow()

void KVIDCutLine::AcceptBelow ( )
inline

Definition at line 82 of file KVIDCutLine.h.

◆ AcceptLeft()

void KVIDCutLine::AcceptLeft ( )
inline

Definition at line 67 of file KVIDCutLine.h.

◆ AcceptRight()

void KVIDCutLine::AcceptRight ( )
inline

Definition at line 72 of file KVIDCutLine.h.

◆ GetA()

Int_t KVIDCutLine::GetA ( ) const
inlineoverridevirtual

Reimplemented from KVIDentifier.

Definition at line 88 of file KVIDCutLine.h.

◆ GetAcceptedDirection()

const Char_t* KVIDCutLine::GetAcceptedDirection ( ) const
inline

Definition at line 102 of file KVIDCutLine.h.

◆ GetMassFormula()

Int_t KVIDCutLine::GetMassFormula ( ) const
inlineoverridevirtual

Reimplemented from KVIDentifier.

Definition at line 96 of file KVIDCutLine.h.

◆ GetSelectionType()

const Char_t * KVIDCutLine::GetSelectionType ( ) const
overridevirtual
Returns
give name of selection made by cut

Reimplemented from KVIDentifier.

Definition at line 77 of file KVIDCutLine.cpp.

◆ GetZ()

Int_t KVIDCutLine::GetZ ( ) const
inlineoverridevirtual

Reimplemented from KVIDentifier.

Definition at line 92 of file KVIDCutLine.h.

◆ IsAcceptedDirectionSet()

bool KVIDCutLine::IsAcceptedDirectionSet ( ) const
inline
Returns
false if no accepted direction has been set for cut

Definition at line 62 of file KVIDCutLine.h.

◆ SetAcceptedDirection()

void KVIDCutLine::SetAcceptedDirection ( const Char_t *  dir)
inline

Set the direction of the acceptable region relative to the cut line

E.g. if points to identify must be above this cut, use

cut->SetAcceptedDirection("above")

Possible values are: "above", "below", "left" or "right" (see KVIDLine::WhereAmI()).

Definition at line 49 of file KVIDCutLine.h.

◆ SetName()

void KVIDCutLine::SetName ( const char *  name)
inlineoverride

This is redeclared to make it appear in context menus for KVIDCutLines.

Definition at line 108 of file KVIDCutLine.h.

◆ TestPoint()

Bool_t KVIDCutLine::TestPoint ( Double_t  x,
Double_t  y 
)
overridevirtual

Test whether point \((x,y)\) is in the acceptable region defined by this cut line and the direction given to SetAcceptedDirection()

e.g. if the accepted direction has been set to left, the point \((x,y)\) must be to the left of this line in order for this method to return kTRUE.

If no accepted direction has been defined, the cut is inoperative (all points are accepted) and an error message is printed

Reimplemented from KVIDentifier.

Definition at line 51 of file KVIDCutLine.cpp.