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

Detailed Description

Definition at line 31 of file KVPIDIntervalPainter.h.

Inheritance diagram for KVPIDIntervalPainter::pid_marker:

Public Member Functions

 pid_marker ()=default
 
 pid_marker (KVPIDIntervalPainter *P, Color_t itv_col)
 
bool CheckPosition (double x)
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
bool GetDrawLabel () const
 
void HighLight (bool hi=true)
 
void Paint (Option_t *option="")
 
void SetDrawLabel (bool yes=true)
 
 TMarker ()
 
 TMarker (const TMarker &marker)
 
 TMarker (Double_t x, Double_t y, Int_t marker)
 
void Update (int z, int a, double pid)
 update Z, A, and position of PID marker
 
- Public Member Functions inherited from TMarker
 TMarker ()
 
 TMarker (const TMarker &marker)
 
 TMarker (Double_t x, Double_t y, Int_t marker)
 
 ~TMarker () override
 
void Copy (TObject &marker) const override
 
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 
void Draw (Option_t *option="") override
 
virtual TMarkerDrawMarker (Double_t x, Double_t y)
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 
Rectangle_t GetBBox () override
 
TPoint GetBBoxCenter () override
 
Double_t GetX () const
 
Double_t GetY () const
 
TClassIsA () const override
 
void ls (Option_t *option="") const override
 
void Paint (Option_t *option="") override
 
virtual void PaintMarker (Double_t x, Double_t y)
 
virtual void PaintMarkerNDC (Double_t u, Double_t v)
 
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
 
virtual void SetNDC (Bool_t isNDC=kTRUE)
 
virtual void SetX (Double_t x)
 
virtual void SetY (Double_t y)
 
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 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 TAttMarker
 TAttMarker ()
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 
virtual ~TAttMarker ()
 
void Copy (TAttMarker &attmarker) const
 
virtual Color_t GetMarkerColor () const
 
virtual Size_t GetMarkerSize () const
 
virtual Style_t GetMarkerStyle () const
 
virtual void Modify ()
 
virtual void ResetAttMarker (Option_t *toption="")
 
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
 
virtual void SetMarkerAttributes ()
 
virtual void SetMarkerColor (Color_t mcolor=1)
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 
virtual void SetMarkerSize (Size_t msize=1)
 
virtual void SetMarkerStyle (Style_t mstyle=1)
 
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 fDrawLabel {false}
 
bool fHighlight {false}
 
TLatex fLabel
 
KVPIDIntervalPainterparent
 
double pid
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from TMarker
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static void DisplayMarkerLineWidths ()
 
static void DisplayMarkerTypes ()
 
- 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 TAttMarker
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Width_t GetMarkerLineWidth (Style_t style)
 
static Style_t GetMarkerStyleBase (Style_t style)
 
- 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 TMarker
 kMarkerNDC
 
- 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 TMarker
Double_t fX
 
Double_t fY
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 
Size_t fMarkerSize
 
Style_t fMarkerStyle
 

Constructor & Destructor Documentation

◆ pid_marker() [1/2]

KVPIDIntervalPainter::pid_marker::pid_marker ( )
default

◆ pid_marker() [2/2]

KVPIDIntervalPainter::pid_marker::pid_marker ( KVPIDIntervalPainter P,
Color_t  itv_col 
)

Create marker for interval set.

Marker coordinates are initialised from PID and contents of linearised histogram.

Label is initialised with the (Z,A) of the interval

Definition at line 79 of file KVPIDIntervalPainter.cpp.

Member Function Documentation

◆ CheckPosition()

bool KVPIDIntervalPainter::pid_marker::CheckPosition ( double  x)
inline

only allow PID marker to move between lower & upper limits

deactivated if parent->active_interval=false

Definition at line 55 of file KVPIDIntervalPainter.h.

◆ ExecuteEvent()

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

Reimplemented from TObject.

Definition at line 103 of file KVPIDIntervalPainter.cpp.

◆ GetDrawLabel()

bool KVPIDIntervalPainter::pid_marker::GetDrawLabel ( ) const
inline

Definition at line 49 of file KVPIDIntervalPainter.h.

◆ HighLight()

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

Definition at line 226 of file KVPIDIntervalPainter.cpp.

◆ Paint()

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

overridden Paint() method, to display label next to marker

when fDisplayLabel=true, we draw the label defined for the PID range just next to the marker

Reimplemented from TObject.

Definition at line 208 of file KVPIDIntervalPainter.cpp.

◆ SetDrawLabel()

void KVPIDIntervalPainter::pid_marker::SetDrawLabel ( bool  yes = true)
inline

Definition at line 45 of file KVPIDIntervalPainter.h.

◆ TMarker() [1/3]

TMarker::TMarker ( )

◆ TMarker() [2/3]

TMarker::TMarker ( const TMarker marker)

◆ TMarker() [3/3]

TMarker::TMarker ( Double_t  x,
Double_t  y,
Int_t  marker 
)

◆ Update()

void KVPIDIntervalPainter::pid_marker::Update ( int  z,
int  a,
double  pid 
)

update Z, A, and position of PID marker

Definition at line 246 of file KVPIDIntervalPainter.cpp.

Member Data Documentation

◆ def_color

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

Definition at line 36 of file KVPIDIntervalPainter.h.

◆ fDrawLabel

bool KVPIDIntervalPainter::pid_marker::fDrawLabel {false}
private

Definition at line 34 of file KVPIDIntervalPainter.h.

◆ fHighlight

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

Definition at line 35 of file KVPIDIntervalPainter.h.

◆ fLabel

TLatex KVPIDIntervalPainter::pid_marker::fLabel
private

Definition at line 33 of file KVPIDIntervalPainter.h.

◆ parent

KVPIDIntervalPainter* KVPIDIntervalPainter::pid_marker::parent
private

Definition at line 32 of file KVPIDIntervalPainter.h.

◆ pid

double KVPIDIntervalPainter::pid_marker::pid
private

Definition at line 37 of file KVPIDIntervalPainter.h.