KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVPIDIntervalPainter::pid_line Class Reference

Detailed Description

Definition at line 64 of file KVPIDIntervalPainter.h.

Inheritance diagram for KVPIDIntervalPainter::pid_line:

Public Types

enum class  limit_t { lower , upper }
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 

Public Member Functions

 pid_line ()=default
 
 pid_line (KVPIDIntervalPainter *p, double _pid, double ymin, double ymax, limit_t limit_type, Color_t itv_col)
 
bool CheckPosition (double x)
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
limit_t GetLimitType () const
 
double GetX () const
 
void HighLight (bool hi=true)
 
bool IsLowerLimit () const
 
bool IsUpperLimit () const
 
void Paint (Option_t *option="")
 
void SetX (double X)
 
 TLine ()
 
 TLine (const TLine &line)
 
 TLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
void Update (double x)
 
- Public Member Functions inherited from TLine
 TLine ()
 
 TLine (const TLine &line)
 
 TLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
 ~TLine () override=default
 
void Copy (TObject &line) const override
 
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 
virtual TLineDrawLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
virtual TLineDrawLineNDC (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 
Rectangle_t GetBBox () override
 
TPoint GetBBoxCenter () override
 
Double_t GetX1 () const
 
Double_t GetX2 () const
 
Double_t GetY1 () const
 
Double_t GetY2 () const
 
TClassIsA () const override
 
Bool_t IsHorizontal ()
 
Bool_t IsVertical ()
 
void ls (Option_t *option="") const override
 
TLineoperator= (const TLine &src)
 
void Paint (Option_t *option="") override
 
virtual void PaintLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
virtual void PaintLineNDC (Double_t u1, Double_t v1, Double_t u2, Double_t v2)
 
void Print (Option_t *option="") const override
 
void SavePrimitive (std::ostream &out, Option_t *option="") override
 
void SetBBoxCenter (const TPoint &p) override
 
void SetBBoxCenterX (const Int_t x) override
 
void SetBBoxCenterY (const Int_t y) override
 
void SetBBoxX1 (const Int_t x) override
 
void SetBBoxX2 (const Int_t x) override
 
void SetBBoxY1 (const Int_t y) override
 
void SetBBoxY2 (const Int_t y) override
 
void SetHorizontal (Bool_t set=kTRUE)
 
virtual void SetNDC (Bool_t isNDC=kTRUE)
 
void SetVertical (Bool_t set=kTRUE)
 
virtual void SetX1 (Double_t x1)
 
virtual void SetX2 (Double_t x2)
 
virtual void SetY1 (Double_t y1)
 
virtual void SetY2 (Double_t y2)
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
virtual void Browse (TBrowser *b)
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 
virtual Int_t Compare (const TObject *obj) const
 
virtual void Delete (Option_t *option="")
 
virtual void Draw (Option_t *option="")
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void Dump () const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual const char * GetName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
virtual ULong_t Hash () const
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 
virtual Bool_t IsEqual (const TObject *obj) const
 
virtual Bool_t IsFolder () const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *vp)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, void *vp)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
virtual void RecursiveRemove (TObject *obj)
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 
virtual ~TAttLine ()
 
void Copy (TAttLine &attline) const
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 
virtual Color_t GetLineColor () const
 
virtual Style_t GetLineStyle () const
 
virtual Width_t GetLineWidth () const
 
virtual void Modify ()
 
virtual void ResetAttLine (Option_t *option="")
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 
virtual void SetLineAttributes ()
 
virtual void SetLineColor (Color_t lcolor)
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 
virtual void SetLineStyle (Style_t lstyle)
 
virtual void SetLineWidth (Width_t lwidth)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttBBox2D
virtual ~TAttBBox2D ()
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Private Attributes

Color_t def_color {kBlack}
 
bool fHighlight {false}
 
KVPIDIntervalPainterparent
 
double pid
 
limit_t type
 

Additional Inherited Members

- Static Public Member Functions inherited from TLine
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Static Public Member Functions inherited from TAttLine
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttBBox2D
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Public Attributes inherited from TLine
 kHorizontal
 
 kLineNDC
 
 kVertical
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 
- Protected Attributes inherited from TLine
Double_t fX1
 
Double_t fX2
 
Double_t fY1
 
Double_t fY2
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 
Style_t fLineStyle
 
Width_t fLineWidth
 

Member Enumeration Documentation

◆ limit_t

Enumerator
lower 
upper 

Definition at line 66 of file KVPIDIntervalPainter.h.

Constructor & Destructor Documentation

◆ pid_line() [1/2]

KVPIDIntervalPainter::pid_line::pid_line ( )
default

◆ pid_line() [2/2]

KVPIDIntervalPainter::pid_line::pid_line ( KVPIDIntervalPainter p,
double  _pid,
double  ymin,
double  ymax,
limit_t  limit_type,
Color_t  itv_col 
)
inline

Definition at line 69 of file KVPIDIntervalPainter.h.

Member Function Documentation

◆ CheckPosition()

bool KVPIDIntervalPainter::pid_line::CheckPosition ( double  x)

make sure that lower limit < PID marker < upper limit

also, both limits must be > than the upper limit of the PID interval to our left (if it exists), and also < the lower limit of the PID interval to our right (if it exists)

Definition at line 587 of file KVPIDIntervalPainter.cpp.

◆ ExecuteEvent()

void KVPIDIntervalPainter::pid_line::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
virtual

Reimplemented from TObject.

Definition at line 259 of file KVPIDIntervalPainter.cpp.

◆ GetLimitType()

limit_t KVPIDIntervalPainter::pid_line::GetLimitType ( ) const
inline

Definition at line 80 of file KVPIDIntervalPainter.h.

◆ GetX()

double KVPIDIntervalPainter::pid_line::GetX ( ) const
inline

Definition at line 116 of file KVPIDIntervalPainter.h.

◆ HighLight()

void KVPIDIntervalPainter::pid_line::HighLight ( bool  hi = true)

Definition at line 546 of file KVPIDIntervalPainter.cpp.

◆ IsLowerLimit()

bool KVPIDIntervalPainter::pid_line::IsLowerLimit ( ) const
inline

Definition at line 88 of file KVPIDIntervalPainter.h.

◆ IsUpperLimit()

bool KVPIDIntervalPainter::pid_line::IsUpperLimit ( ) const
inline

Definition at line 84 of file KVPIDIntervalPainter.h.

◆ Paint()

void KVPIDIntervalPainter::pid_line::Paint ( Option_t option = "")
virtual

Reimplemented from TObject.

Definition at line 563 of file KVPIDIntervalPainter.cpp.

◆ SetX()

void KVPIDIntervalPainter::pid_line::SetX ( double  X)
inline

the line has moved

update interval limits

signal that something changed

Definition at line 93 of file KVPIDIntervalPainter.h.

◆ TLine() [1/3]

TLine::TLine ( )

◆ TLine() [2/3]

TLine::TLine ( const TLine line)

◆ TLine() [3/3]

TLine::TLine ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
)

◆ Update()

void KVPIDIntervalPainter::pid_line::Update ( double  x)
inline

Definition at line 109 of file KVPIDIntervalPainter.h.

Member Data Documentation

◆ def_color

Color_t KVPIDIntervalPainter::pid_line::def_color {kBlack}
private

Definition at line 128 of file KVPIDIntervalPainter.h.

◆ fHighlight

bool KVPIDIntervalPainter::pid_line::fHighlight {false}
private

Definition at line 127 of file KVPIDIntervalPainter.h.

◆ parent

KVPIDIntervalPainter* KVPIDIntervalPainter::pid_line::parent
private

Definition at line 125 of file KVPIDIntervalPainter.h.

◆ pid

double KVPIDIntervalPainter::pid_line::pid
private

Definition at line 129 of file KVPIDIntervalPainter.h.

◆ type

limit_t KVPIDIntervalPainter::pid_line::type
private

Definition at line 126 of file KVPIDIntervalPainter.h.