BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Bes2DView Class Reference

#include <Bes2DView.h>

Inheritance diagram for Bes2DView:

Public Member Functions

 Bes2DView ()
virtual ~Bes2DView ()
virtual void ClearPad ()
virtual void DrawLabel ()
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual Int_t GetRSign (Float_t Phi)
virtual void UpdateView (Bool_t resetview=kFALSE)
virtual void WCtoNDC (const Float_t *pw, Float_t *pn)
virtual void WCtoNDC (const Double_t *pw, Double_t *pn)
virtual void NDCtoWC (const Float_t *pn, Float_t *pw)
virtual void NDCtoWC (const Double_t *pn, Double_t *pw)
virtual char * GetObjectInfo (Int_t px, Int_t py) const
void Set2DViewType (Int_t viewType)
Int_t Get2DViewType ()
Float_t GetMarkerSize ()
void Zoom ()
void UnZoom ()
void Center ()
void Move (Int_t px, Int_t py)
void Reset ()
void SetMarkerSize (Float_t size)
Bool_t GetFishEyeStatus ()
Bool_t GetFishEye ()
void SetFishEye (Bool_t input=0)
void PrintCurrent ()
virtual void Centered ()
virtual void Front ()
virtual void Side ()
virtual void Top ()
virtual void ZoomMove ()
virtual void AdjustScales (TVirtualPad *pad=0)
virtual void Delete (Option_t *option)
virtual void DrawClass ()
virtual TObject * DrawClone (Option_t *option)
virtual void Dump ()
virtual void Inspect ()
virtual void SetDrawOption (Option_t *option)
virtual void SetLineAttributes ()
virtual void SetZoomFactor (Double_t factor)
virtual Double_t GetZoomFactor ()
BesStatusGetStatusCurrent ()
 Bes2DView ()
virtual ~Bes2DView ()
virtual void ClearPad ()
virtual void DrawLabel ()
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual Int_t GetRSign (Float_t Phi)
virtual void UpdateView (Bool_t resetview=kFALSE)
virtual void WCtoNDC (const Float_t *pw, Float_t *pn)
virtual void WCtoNDC (const Double_t *pw, Double_t *pn)
virtual void NDCtoWC (const Float_t *pn, Float_t *pw)
virtual void NDCtoWC (const Double_t *pn, Double_t *pw)
virtual char * GetObjectInfo (Int_t px, Int_t py) const
void Set2DViewType (Int_t viewType)
Int_t Get2DViewType ()
Float_t GetMarkerSize ()
void Zoom ()
void UnZoom ()
void Center ()
void Move (Int_t px, Int_t py)
void Reset ()
void SetMarkerSize (Float_t size)
Bool_t GetFishEyeStatus ()
Bool_t GetFishEye ()
void SetFishEye (Bool_t input=0)
void PrintCurrent ()
virtual void Centered ()
virtual void Front ()
virtual void Side ()
virtual void Top ()
virtual void ZoomMove ()
virtual void AdjustScales (TVirtualPad *pad=0)
virtual void Delete (Option_t *option)
virtual void DrawClass ()
virtual TObject * DrawClone (Option_t *option)
virtual void Dump ()
virtual void Inspect ()
virtual void SetDrawOption (Option_t *option)
virtual void SetLineAttributes ()
virtual void SetZoomFactor (Double_t factor)
virtual Double_t GetZoomFactor ()
BesStatusGetStatusCurrent ()
 Bes2DView ()
virtual ~Bes2DView ()
virtual void ClearPad ()
virtual void DrawLabel ()
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual Int_t GetRSign (Float_t Phi)
virtual void UpdateView (Bool_t resetview=kFALSE)
virtual void WCtoNDC (const Float_t *pw, Float_t *pn)
virtual void WCtoNDC (const Double_t *pw, Double_t *pn)
virtual void NDCtoWC (const Float_t *pn, Float_t *pw)
virtual void NDCtoWC (const Double_t *pn, Double_t *pw)
virtual char * GetObjectInfo (Int_t px, Int_t py) const
void Set2DViewType (Int_t viewType)
Int_t Get2DViewType ()
Float_t GetMarkerSize ()
void Zoom ()
void UnZoom ()
void Center ()
void Move (Int_t px, Int_t py)
void Reset ()
void SetMarkerSize (Float_t size)
Bool_t GetFishEyeStatus ()
Bool_t GetFishEye ()
void SetFishEye (Bool_t input=0)
void PrintCurrent ()
virtual void Centered ()
virtual void Front ()
virtual void Side ()
virtual void Top ()
virtual void ZoomMove ()
virtual void AdjustScales (TVirtualPad *pad=0)
virtual void Delete (Option_t *option)
virtual void DrawClass ()
virtual TObject * DrawClone (Option_t *option)
virtual void Dump ()
virtual void Inspect ()
virtual void SetDrawOption (Option_t *option)
virtual void SetLineAttributes ()
virtual void SetZoomFactor (Double_t factor)
virtual Double_t GetZoomFactor ()
BesStatusGetStatusCurrent ()
Public Member Functions inherited from BesTView
 BesTView ()
 BesTView (Int_t system)
 BesTView (const Float_t *rmin, const Float_t *rmax, Int_t system=1)
 BesTView (const Double_t *rmin, const Double_t *rmax, Int_t system=1)
virtual ~BesTView ()
virtual void AxisVertex (Double_t ang, Double_t *av, Int_t &ix1, Int_t &ix2, Int_t &iy1, Int_t &iy2, Int_t &iz1, Int_t &iz2)
virtual void DefinePerspectiveView ()
virtual void DefineViewDirection (const Double_t *s, const Double_t *c, Double_t cosphi, Double_t sinphi, Double_t costhe, Double_t sinthe, Double_t cospsi, Double_t sinpsi, Double_t *tnorm, Double_t *tback)
virtual void DrawOutlineCube (TList *outline, Double_t *rmin, Double_t *rmax)
virtual void ExecuteRotateView (Int_t event, Int_t px, Int_t py)
virtual void FindScope (Double_t *scale, Double_t *center, Int_t &irep)
virtual Int_t GetDistancetoAxis (Int_t axis, Int_t px, Int_t py, Double_t &ratio)
Double_t GetDview () const
Double_t GetDproj () const
Double_t GetExtent () const
Bool_t GetAutoRange ()
Double_t GetLatitude ()
Double_t GetLongitude ()
Double_t GetPsi ()
virtual void GetRange (Float_t *min, Float_t *max)
virtual void GetRange (Double_t *min, Double_t *max)
Double_t * GetRmax ()
Double_t * GetRmin ()
TSeqCollection * GetOutline ()
Double_t * GetTback ()
Double_t * GetTN ()
Double_t * GetTnorm ()
Int_t GetSystem ()
void GetWindow (Double_t &u0, Double_t &v0, Double_t &du, Double_t &dv) const
Double_t GetWindowWidth () const
Double_t GetWindowHeight () const
virtual void FindNormal (Double_t x, Double_t y, Double_t z, Double_t &zn)
virtual void FindPhiSectors (Int_t iopt, Int_t &kphi, Double_t *aphi, Int_t &iphi1, Int_t &iphi2)
virtual void FindThetaSectors (Int_t iopt, Double_t phi, Int_t &kth, Double_t *ath, Int_t &ith1, Int_t &ith2)
Bool_t IsClippedNDC (Double_t *p) const
Bool_t IsPerspective () const
Bool_t IsViewChanged () const
virtual void NormalWCtoNDC (const Float_t *pw, Float_t *pn)
virtual void NormalWCtoNDC (const Double_t *pw, Double_t *pn)
virtual void PadRange (Int_t rback)
void ResizePad ()
virtual void SetAutoRange (Bool_t autorange=kTRUE)
virtual void SetAxisNDC (const Double_t *x1, const Double_t *x2, const Double_t *y1, const Double_t *y2, const Double_t *z1, const Double_t *z2)
void SetDefaultWindow ()
void SetDview (Double_t dview)
void SetDproj (Double_t dproj)
void SetLatitude (Double_t latitude)
void SetLongitude (Double_t longitude)
void SetPsi (Double_t psi)
virtual void SetOutlineToCube ()
virtual void SetParallel ()
virtual void SetPerspective ()
virtual void SetRange (const Double_t *min, const Double_t *max)
virtual void SetRange (Double_t x0, Double_t y0, Double_t z0, Double_t x1, Double_t y1, Double_t z1, Int_t flag=0)
virtual void SetSystem (Int_t system)
virtual void SetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep)
void SetViewChanged (Bool_t flag=kTRUE)
void SetWindow (Double_t u0, Double_t v0, Double_t du, Double_t dv)
void MoveFocus (Double_t *center, Double_t dx, Double_t dy, Double_t dz, Int_t nsteps=10, Double_t dlong=0, Double_t dlat=0, Double_t dpsi=0)
virtual void MoveViewCommand (Char_t chCode, Int_t count=1)
void MoveWindow (Char_t option)
virtual void Centered3DImages (TVirtualPad *pad=0)
virtual void FrontView (TVirtualPad *pad=0)
virtual void ZoomIn ()
virtual void ZoomOut ()
virtual void ZoomView (TVirtualPad *pad=0, Double_t zoomFactor=1.25)
virtual void UnzoomView (TVirtualPad *pad=0, Double_t unZoomFactor=1.25)
virtual void RotateView (Double_t phi, Double_t theta, TVirtualPad *pad=0)
virtual void SideView (TVirtualPad *pad=0)
virtual void TopView (TVirtualPad *pad=0)
virtual void ToggleRulers (TVirtualPad *pad=0)
virtual void ShowAxis ()
virtual void ToggleZoom (TVirtualPad *pad=0)
 ClassDef (BesTView, 2)
 BesTView ()
 BesTView (Int_t system)
 BesTView (const Float_t *rmin, const Float_t *rmax, Int_t system=1)
 BesTView (const Double_t *rmin, const Double_t *rmax, Int_t system=1)
virtual ~BesTView ()
virtual void AxisVertex (Double_t ang, Double_t *av, Int_t &ix1, Int_t &ix2, Int_t &iy1, Int_t &iy2, Int_t &iz1, Int_t &iz2)
virtual void DefinePerspectiveView ()
virtual void DefineViewDirection (const Double_t *s, const Double_t *c, Double_t cosphi, Double_t sinphi, Double_t costhe, Double_t sinthe, Double_t cospsi, Double_t sinpsi, Double_t *tnorm, Double_t *tback)
virtual void DrawOutlineCube (TList *outline, Double_t *rmin, Double_t *rmax)
virtual void ExecuteRotateView (Int_t event, Int_t px, Int_t py)
virtual void FindScope (Double_t *scale, Double_t *center, Int_t &irep)
virtual Int_t GetDistancetoAxis (Int_t axis, Int_t px, Int_t py, Double_t &ratio)
Double_t GetDview () const
Double_t GetDproj () const
Double_t GetExtent () const
Bool_t GetAutoRange ()
Double_t GetLatitude ()
Double_t GetLongitude ()
Double_t GetPsi ()
virtual void GetRange (Float_t *min, Float_t *max)
virtual void GetRange (Double_t *min, Double_t *max)
Double_t * GetRmax ()
Double_t * GetRmin ()
TSeqCollection * GetOutline ()
Double_t * GetTback ()
Double_t * GetTN ()
Double_t * GetTnorm ()
Int_t GetSystem ()
void GetWindow (Double_t &u0, Double_t &v0, Double_t &du, Double_t &dv) const
Double_t GetWindowWidth () const
Double_t GetWindowHeight () const
virtual void FindNormal (Double_t x, Double_t y, Double_t z, Double_t &zn)
virtual void FindPhiSectors (Int_t iopt, Int_t &kphi, Double_t *aphi, Int_t &iphi1, Int_t &iphi2)
virtual void FindThetaSectors (Int_t iopt, Double_t phi, Int_t &kth, Double_t *ath, Int_t &ith1, Int_t &ith2)
Bool_t IsClippedNDC (Double_t *p) const
Bool_t IsPerspective () const
Bool_t IsViewChanged () const
virtual void NormalWCtoNDC (const Float_t *pw, Float_t *pn)
virtual void NormalWCtoNDC (const Double_t *pw, Double_t *pn)
virtual void PadRange (Int_t rback)
void ResizePad ()
virtual void SetAutoRange (Bool_t autorange=kTRUE)
virtual void SetAxisNDC (const Double_t *x1, const Double_t *x2, const Double_t *y1, const Double_t *y2, const Double_t *z1, const Double_t *z2)
void SetDefaultWindow ()
void SetDview (Double_t dview)
void SetDproj (Double_t dproj)
void SetLatitude (Double_t latitude)
void SetLongitude (Double_t longitude)
void SetPsi (Double_t psi)
virtual void SetOutlineToCube ()
virtual void SetParallel ()
virtual void SetPerspective ()
virtual void SetRange (const Double_t *min, const Double_t *max)
virtual void SetRange (Double_t x0, Double_t y0, Double_t z0, Double_t x1, Double_t y1, Double_t z1, Int_t flag=0)
virtual void SetSystem (Int_t system)
virtual void SetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep)
void SetViewChanged (Bool_t flag=kTRUE)
void SetWindow (Double_t u0, Double_t v0, Double_t du, Double_t dv)
void MoveFocus (Double_t *center, Double_t dx, Double_t dy, Double_t dz, Int_t nsteps=10, Double_t dlong=0, Double_t dlat=0, Double_t dpsi=0)
virtual void MoveViewCommand (Char_t chCode, Int_t count=1)
void MoveWindow (Char_t option)
virtual void Centered3DImages (TVirtualPad *pad=0)
virtual void FrontView (TVirtualPad *pad=0)
virtual void ZoomIn ()
virtual void ZoomOut ()
virtual void ZoomView (TVirtualPad *pad=0, Double_t zoomFactor=1.25)
virtual void UnzoomView (TVirtualPad *pad=0, Double_t unZoomFactor=1.25)
virtual void RotateView (Double_t phi, Double_t theta, TVirtualPad *pad=0)
virtual void SideView (TVirtualPad *pad=0)
virtual void TopView (TVirtualPad *pad=0)
virtual void ToggleRulers (TVirtualPad *pad=0)
virtual void ShowAxis ()
virtual void ToggleZoom (TVirtualPad *pad=0)
 ClassDef (BesTView, 2)
 BesTView ()
 BesTView (Int_t system)
 BesTView (const Float_t *rmin, const Float_t *rmax, Int_t system=1)
 BesTView (const Double_t *rmin, const Double_t *rmax, Int_t system=1)
virtual ~BesTView ()
virtual void AxisVertex (Double_t ang, Double_t *av, Int_t &ix1, Int_t &ix2, Int_t &iy1, Int_t &iy2, Int_t &iz1, Int_t &iz2)
virtual void DefinePerspectiveView ()
virtual void DefineViewDirection (const Double_t *s, const Double_t *c, Double_t cosphi, Double_t sinphi, Double_t costhe, Double_t sinthe, Double_t cospsi, Double_t sinpsi, Double_t *tnorm, Double_t *tback)
virtual void DrawOutlineCube (TList *outline, Double_t *rmin, Double_t *rmax)
virtual void ExecuteRotateView (Int_t event, Int_t px, Int_t py)
virtual void FindScope (Double_t *scale, Double_t *center, Int_t &irep)
virtual Int_t GetDistancetoAxis (Int_t axis, Int_t px, Int_t py, Double_t &ratio)
Double_t GetDview () const
Double_t GetDproj () const
Double_t GetExtent () const
Bool_t GetAutoRange ()
Double_t GetLatitude ()
Double_t GetLongitude ()
Double_t GetPsi ()
virtual void GetRange (Float_t *min, Float_t *max)
virtual void GetRange (Double_t *min, Double_t *max)
Double_t * GetRmax ()
Double_t * GetRmin ()
TSeqCollection * GetOutline ()
Double_t * GetTback ()
Double_t * GetTN ()
Double_t * GetTnorm ()
Int_t GetSystem ()
void GetWindow (Double_t &u0, Double_t &v0, Double_t &du, Double_t &dv) const
Double_t GetWindowWidth () const
Double_t GetWindowHeight () const
virtual void FindNormal (Double_t x, Double_t y, Double_t z, Double_t &zn)
virtual void FindPhiSectors (Int_t iopt, Int_t &kphi, Double_t *aphi, Int_t &iphi1, Int_t &iphi2)
virtual void FindThetaSectors (Int_t iopt, Double_t phi, Int_t &kth, Double_t *ath, Int_t &ith1, Int_t &ith2)
Bool_t IsClippedNDC (Double_t *p) const
Bool_t IsPerspective () const
Bool_t IsViewChanged () const
virtual void NormalWCtoNDC (const Float_t *pw, Float_t *pn)
virtual void NormalWCtoNDC (const Double_t *pw, Double_t *pn)
virtual void PadRange (Int_t rback)
void ResizePad ()
virtual void SetAutoRange (Bool_t autorange=kTRUE)
virtual void SetAxisNDC (const Double_t *x1, const Double_t *x2, const Double_t *y1, const Double_t *y2, const Double_t *z1, const Double_t *z2)
void SetDefaultWindow ()
void SetDview (Double_t dview)
void SetDproj (Double_t dproj)
void SetLatitude (Double_t latitude)
void SetLongitude (Double_t longitude)
void SetPsi (Double_t psi)
virtual void SetOutlineToCube ()
virtual void SetParallel ()
virtual void SetPerspective ()
virtual void SetRange (const Double_t *min, const Double_t *max)
virtual void SetRange (Double_t x0, Double_t y0, Double_t z0, Double_t x1, Double_t y1, Double_t z1, Int_t flag=0)
virtual void SetSystem (Int_t system)
virtual void SetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep)
void SetViewChanged (Bool_t flag=kTRUE)
void SetWindow (Double_t u0, Double_t v0, Double_t du, Double_t dv)
void MoveFocus (Double_t *center, Double_t dx, Double_t dy, Double_t dz, Int_t nsteps=10, Double_t dlong=0, Double_t dlat=0, Double_t dpsi=0)
virtual void MoveViewCommand (Char_t chCode, Int_t count=1)
void MoveWindow (Char_t option)
virtual void Centered3DImages (TVirtualPad *pad=0)
virtual void FrontView (TVirtualPad *pad=0)
virtual void ZoomIn ()
virtual void ZoomOut ()
virtual void ZoomView (TVirtualPad *pad=0, Double_t zoomFactor=1.25)
virtual void UnzoomView (TVirtualPad *pad=0, Double_t unZoomFactor=1.25)
virtual void RotateView (Double_t phi, Double_t theta, TVirtualPad *pad=0)
virtual void SideView (TVirtualPad *pad=0)
virtual void TopView (TVirtualPad *pad=0)
virtual void ToggleRulers (TVirtualPad *pad=0)
virtual void ShowAxis ()
virtual void ToggleZoom (TVirtualPad *pad=0)
 ClassDef (BesTView, 2)

Additional Inherited Members

Public Types inherited from BesTView
enum  { kPerspective = BIT( 6 ) }
enum  { kPerspective = BIT( 6 ) }
enum  { kPerspective = BIT( 6 ) }
Static Public Member Functions inherited from BesTView
static void AdjustPad (TVirtualPad *pad=0)
static void AdjustPad (TVirtualPad *pad=0)
static void AdjustPad (TVirtualPad *pad=0)
Protected Member Functions inherited from BesTView
 BesTView (const BesTView &)
 Set to TRUE after ExecuteRotateView.
BesTViewoperator= (const BesTView &)
void ResetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep)
 BesTView (const BesTView &)
 Set to TRUE after ExecuteRotateView.
BesTViewoperator= (const BesTView &)
void ResetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep)
 BesTView (const BesTView &)
 Set to TRUE after ExecuteRotateView.
BesTViewoperator= (const BesTView &)
void ResetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep)
Protected Attributes inherited from BesTView
Double_t fLatitude
Double_t fLongitude
Double_t fPsi
Double_t fDview
Double_t fDproj
Double_t fUpix
Double_t fVpix
Double_t fTN [16]
Double_t fTB [16]
Double_t fRmax [3]
Double_t fRmin [3]
Double_t fUVcoord [4]
Double_t fTnorm [16]
Double_t fTback [16]
Double_t fX1 [3]
Double_t fX2 [3]
Double_t fY1 [3]
Double_t fY2 [3]
Double_t fZ1 [3]
Double_t fZ2 [3]
Int_t fSystem
TSeqCollection * fOutline
Bool_t fDefaultOutline
Bool_t fAutoRange
Bool_t fChanged

Detailed Description

Constructor & Destructor Documentation

◆ Bes2DView() [1/3]

Bes2DView::Bes2DView ( )

◆ ~Bes2DView() [1/3]

Bes2DView::~Bes2DView ( )
virtual

Definition at line 83 of file Bes2DView.cxx.

83 {
84 //
85 // Bes2DView default destructor
86 if ( gDebug ) cout << "Bes2DView default dtor called" << endl;
87
88 delete fLabel;
89
90 delete fStatus3D;
91 delete fStatusXY;
92 delete fStatusZR;
93 delete fStatusCurrent;
94}

◆ Bes2DView() [2/3]

Bes2DView::Bes2DView ( )

◆ ~Bes2DView() [2/3]

virtual Bes2DView::~Bes2DView ( )
virtual

◆ Bes2DView() [3/3]

Bes2DView::Bes2DView ( )

◆ ~Bes2DView() [3/3]

virtual Bes2DView::~Bes2DView ( )
virtual

Member Function Documentation

◆ AdjustScales() [1/3]

virtual void Bes2DView::AdjustScales ( TVirtualPad * pad = 0)
inlinevirtual

Reimplemented from BesTView.

Definition at line 111 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

111{ BesTView::AdjustScales( pad ); }
virtual void AdjustScales(TVirtualPad *pad=0)

◆ AdjustScales() [2/3]

virtual void Bes2DView::AdjustScales ( TVirtualPad * pad = 0)
inlinevirtual

Reimplemented from BesTView.

Definition at line 111 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

111{ BesTView::AdjustScales( pad ); }

◆ AdjustScales() [3/3]

virtual void Bes2DView::AdjustScales ( TVirtualPad * pad = 0)
inlinevirtual

Reimplemented from BesTView.

Definition at line 111 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

111{ BesTView::AdjustScales( pad ); }

◆ Center() [1/3]

void Bes2DView::Center ( )

Definition at line 188 of file Bes2DView.cxx.

188 {
189 //
190 // Center view
191 /*
192 if ( fViewType & k3DView ){
193 this->Centered();
194 } else {
195 */
196 Double_t xrange, yrange;
197 xrange = gPad->GetX2() - gPad->GetX1();
198 yrange = gPad->GetY2() - gPad->GetY1();
199 gPad->Range( -xrange / 2, -yrange / 2, xrange / 2, yrange / 2 );
200 gPad->Modified();
201}

Referenced by Reset().

◆ Center() [2/3]

void Bes2DView::Center ( )

◆ Center() [3/3]

void Bes2DView::Center ( )

◆ Centered() [1/3]

virtual void Bes2DView::Centered ( )
inlinevirtual

◆ Centered() [2/3]

virtual void Bes2DView::Centered ( )
inlinevirtual

Reimplemented from BesTView.

Definition at line 105 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

◆ Centered() [3/3]

virtual void Bes2DView::Centered ( )
inlinevirtual

Reimplemented from BesTView.

Definition at line 105 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

◆ ClearPad() [1/3]

void Bes2DView::ClearPad ( )
virtual

Definition at line 98 of file Bes2DView.cxx.

98 {
99 //
100 // Clear current without deleting this view
101 //
102 // Probably this doesn't work for the postscript output
103 // Look at TPad::Clear() for more details
104 if ( gDebug ) cout << "Bes2DView::ClearPad called" << endl;
105 if ( gPad->GetListOfPrimitives() ) gPad->GetListOfPrimitives()->Clear();
106}

◆ ClearPad() [2/3]

virtual void Bes2DView::ClearPad ( )
virtual

◆ ClearPad() [3/3]

virtual void Bes2DView::ClearPad ( )
virtual

◆ Delete() [1/3]

virtual void Bes2DView::Delete ( Option_t * option)
inlinevirtual

Definition at line 112 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

112{ BesTView::Delete( option ); }

◆ Delete() [2/3]

virtual void Bes2DView::Delete ( Option_t * option)
inlinevirtual

Definition at line 112 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

112{ BesTView::Delete( option ); }

◆ Delete() [3/3]

virtual void Bes2DView::Delete ( Option_t * option)
inlinevirtual

Definition at line 112 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

112{ BesTView::Delete( option ); }

◆ DrawClass() [1/3]

virtual void Bes2DView::DrawClass ( )
inlinevirtual

Definition at line 113 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

113{ BesTView::DrawClass(); }

◆ DrawClass() [2/3]

virtual void Bes2DView::DrawClass ( )
inlinevirtual

Definition at line 113 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

113{ BesTView::DrawClass(); }

◆ DrawClass() [3/3]

virtual void Bes2DView::DrawClass ( )
inlinevirtual

Definition at line 113 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

113{ BesTView::DrawClass(); }

◆ DrawClone() [1/3]

virtual TObject * Bes2DView::DrawClone ( Option_t * option)
inlinevirtual

Definition at line 114 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

114 {
115 return BesTView::DrawClone( option );
116 }

◆ DrawClone() [2/3]

virtual TObject * Bes2DView::DrawClone ( Option_t * option)
inlinevirtual

Definition at line 114 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

114 {
115 return BesTView::DrawClone( option );
116 }

◆ DrawClone() [3/3]

virtual TObject * Bes2DView::DrawClone ( Option_t * option)
inlinevirtual

Definition at line 114 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

114 {
115 return BesTView::DrawClone( option );
116 }

◆ DrawLabel() [1/3]

void Bes2DView::DrawLabel ( )
virtual

Definition at line 250 of file Bes2DView.cxx.

250 {
251 //
252 // Draw label for current view
253
254 fLabel->SetX1NDC( 0.05 );
255 fLabel->SetX2NDC( 0.20 );
256 fLabel->SetY1NDC( 0.05 );
257 fLabel->SetY2NDC( 0.12 );
258
259 switch ( f2DViewType )
260 {
261 // case k3DView:
262 // fLabel->SetLabel("3D View");
263 // break;
264 case 0: fLabel->SetLabel( "XY View" ); break;
265 case 1: fLabel->SetLabel( "ZR View" ); break;
266 }
267 fLabel->Draw( "BR,NDC,SAME" );
268}

◆ DrawLabel() [2/3]

virtual void Bes2DView::DrawLabel ( )
virtual

◆ DrawLabel() [3/3]

virtual void Bes2DView::DrawLabel ( )
virtual

◆ Dump() [1/3]

virtual void Bes2DView::Dump ( )
inlinevirtual

Definition at line 119 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

119{ BesTView::Dump(); }

◆ Dump() [2/3]

virtual void Bes2DView::Dump ( )
inlinevirtual

Definition at line 119 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

119{ BesTView::Dump(); }

◆ Dump() [3/3]

virtual void Bes2DView::Dump ( )
inlinevirtual

Definition at line 119 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

119{ BesTView::Dump(); }

◆ ExecuteEvent() [1/3]

void Bes2DView::ExecuteEvent ( Int_t event,
Int_t px,
Int_t py )
virtual

Reimplemented from BesTView.

Definition at line 110 of file Bes2DView.cxx.

110 {
111 //
112 // Execute mouse events
113 if ( gDebug ) cout << "Bes2DView::ExecuteEvent called" << endl;
114 // cout << "f2DViewType " << f2DViewType << " k3DView " << k3DView << endl;
115
116 /*
117 if ( fViewType & k3DView ) {
118 ExecuteRotateView(event, px, py);
119 } else {
120 */
121
122 // Editor mode
123 if ( gROOT->GetEditorMode() )
124 {
125 cout << "ROOT" << endl;
126 gPad->ExecuteEvent( event, px, py );
127 return;
128 }
129
130 static Double_t xmin, ymin, xmax, ymax, x0, y0;
131 Double_t dx, dy, x, y;
132 switch ( event )
133 {
134
135 case kButton1Down:
136 gPad->SetCursor( kMove );
137 // Remember position of pointer
138 xmin = gPad->GetX1();
139 ymin = gPad->GetY1();
140 xmax = gPad->GetX2();
141 ymax = gPad->GetY2();
142 x0 = gPad->AbsPixeltoX( px );
143 y0 = gPad->AbsPixeltoY( py );
144 break;
145
146 case kButton1Motion: gPad->SetCursor( kMove );
147
148 case kButton1Up:
149 // Set new pad range
150 x = gPad->AbsPixeltoX( px );
151 y = gPad->AbsPixeltoY( py );
152 dx = -( x - x0 );
153 dy = -( y - y0 );
154 //((TPad*)gPad)->SetNoAspect(kTRUE);
155 gPad->Range( xmin + dx, ymin + dy, xmax + dx, ymax + dy );
156 //((TPad*)gPad)->SetNoAspect(kFALSE);
157 gPad->Modified();
158 break;
159
160 default: gPad->SetCursor( kCross );
161 }
162}
Double_t x[10]

◆ ExecuteEvent() [2/3]

virtual void Bes2DView::ExecuteEvent ( Int_t event,
Int_t px,
Int_t py )
virtual

Reimplemented from BesTView.

◆ ExecuteEvent() [3/3]

virtual void Bes2DView::ExecuteEvent ( Int_t event,
Int_t px,
Int_t py )
virtual

Reimplemented from BesTView.

◆ Front() [1/3]

virtual void Bes2DView::Front ( )
inlinevirtual

◆ Front() [2/3]

virtual void Bes2DView::Front ( )
inlinevirtual

Reimplemented from BesTView.

Definition at line 106 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

106{ BesTView::Top(); }

◆ Front() [3/3]

virtual void Bes2DView::Front ( )
inlinevirtual

Reimplemented from BesTView.

Definition at line 106 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

106{ BesTView::Top(); }

◆ Get2DViewType() [1/3]

Int_t Bes2DView::Get2DViewType ( )
inline

Definition at line 56 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

56{ return f2DViewType; }

◆ Get2DViewType() [2/3]

Int_t Bes2DView::Get2DViewType ( )
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

56{ return f2DViewType; }

◆ Get2DViewType() [3/3]

Int_t Bes2DView::Get2DViewType ( )
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

56{ return f2DViewType; }

◆ GetFishEye() [1/3]

Bool_t Bes2DView::GetFishEye ( )
inline

Definition at line 89 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

89{ return fFishEye; }

◆ GetFishEye() [2/3]

Bool_t Bes2DView::GetFishEye ( )
inline

Definition at line 89 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

89{ return fFishEye; }

◆ GetFishEye() [3/3]

Bool_t Bes2DView::GetFishEye ( )
inline

Definition at line 89 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

89{ return fFishEye; }

◆ GetFishEyeStatus() [1/3]

Bool_t Bes2DView::GetFishEyeStatus ( )
inline

Definition at line 88 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

88{ return fStatusCurrent->fFishEye; }

◆ GetFishEyeStatus() [2/3]

Bool_t Bes2DView::GetFishEyeStatus ( )
inline

Definition at line 88 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

88{ return fStatusCurrent->fFishEye; }

◆ GetFishEyeStatus() [3/3]

Bool_t Bes2DView::GetFishEyeStatus ( )
inline

Definition at line 88 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

88{ return fStatusCurrent->fFishEye; }

◆ GetMarkerSize() [1/3]

Float_t Bes2DView::GetMarkerSize ( )
inline

Definition at line 57 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

57{ return fMarkerSize; }

◆ GetMarkerSize() [2/3]

Float_t Bes2DView::GetMarkerSize ( )
inline

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

57{ return fMarkerSize; }

◆ GetMarkerSize() [3/3]

Float_t Bes2DView::GetMarkerSize ( )
inline

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

57{ return fMarkerSize; }

◆ GetObjectInfo() [1/3]

char * Bes2DView::GetObjectInfo ( Int_t px,
Int_t py ) const
virtual

Definition at line 434 of file Bes2DView.cxx.

434 {
435 //
436 // Returns string containing info about the object at position (px,py).
437 Double_t pw[3] = { 0., 0., 0. };
438 //((TPad*)gPad)->PixeltoWC(px, py, pw);
439
440 static char info[64];
441 if ( f2DViewType == 1 )
442 {
443 sprintf( info, "z=%-.3fcm, r=%-.3fcm", pw[0], pw[1] );
444 return info;
445 }
446 else
447 {
448 sprintf( info, "x=%-.3fcm, y=%-.3fcm", pw[0], pw[1] );
449 return info;
450 }
451}
sprintf(cut, "kal_costheta0_em>-0.93&&kal_costheta0_em<0.93&&kal_pxy0_em>=0.05+%d*0.1&&kal_" "pxy0_em<0.15+%d*0.1&&NGch>=2", j, j)

◆ GetObjectInfo() [2/3]

virtual char * Bes2DView::GetObjectInfo ( Int_t px,
Int_t py ) const
virtual

◆ GetObjectInfo() [3/3]

virtual char * Bes2DView::GetObjectInfo ( Int_t px,
Int_t py ) const
virtual

◆ GetRSign() [1/3]

Int_t Bes2DView::GetRSign ( Float_t Phi)
virtual

Definition at line 223 of file Bes2DView.cxx.

223 {
224 //
225 // Get sign of the R coordinate (ZR view)
226 // for a given phi (in radians)
227 Int_t Sign;
228
229 // Convert to deg, because phi range is given in degrees
230 Float_t Phi2 =
231 ( Phi - 2 * TMath::Pi() * Int_t( Phi / ( 2 * TMath::Pi() ) ) ) * 180. / TMath::Pi();
232 if ( Phi2 < 0 ) Phi2 += 360;
233 if ( Phi2 >= fStatusCurrent->fPhiRangeMin && Phi2 < fStatusCurrent->fPhiRangeMax )
234 { Sign = 1; }
235 else { Sign = -1; }
236 return Sign;
237}
double Phi(RecMdcKalTrack *trk)

◆ GetRSign() [2/3]

virtual Int_t Bes2DView::GetRSign ( Float_t Phi)
virtual

◆ GetRSign() [3/3]

virtual Int_t Bes2DView::GetRSign ( Float_t Phi)
virtual

◆ GetStatusCurrent() [1/3]

BesStatus * Bes2DView::GetStatusCurrent ( )
inline

Definition at line 128 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

128{ return fStatusCurrent; };

◆ GetStatusCurrent() [2/3]

BesStatus * Bes2DView::GetStatusCurrent ( )
inline

Definition at line 128 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

128{ return fStatusCurrent; };

◆ GetStatusCurrent() [3/3]

BesStatus * Bes2DView::GetStatusCurrent ( )
inline

Definition at line 128 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

128{ return fStatusCurrent; };

◆ GetZoomFactor() [1/3]

virtual Double_t Bes2DView::GetZoomFactor ( )
inlinevirtual

Definition at line 127 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

127{ return fZoomFactor; }

◆ GetZoomFactor() [2/3]

virtual Double_t Bes2DView::GetZoomFactor ( )
inlinevirtual

Definition at line 127 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

127{ return fZoomFactor; }

◆ GetZoomFactor() [3/3]

virtual Double_t Bes2DView::GetZoomFactor ( )
inlinevirtual

Definition at line 127 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

127{ return fZoomFactor; }

◆ Inspect() [1/3]

virtual void Bes2DView::Inspect ( )
inlinevirtual

Definition at line 120 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

120{ BesTView::Inspect(); }

◆ Inspect() [2/3]

virtual void Bes2DView::Inspect ( )
inlinevirtual

Definition at line 120 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

120{ BesTView::Inspect(); }

◆ Inspect() [3/3]

virtual void Bes2DView::Inspect ( )
inlinevirtual

Definition at line 120 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

120{ BesTView::Inspect(); }

◆ Move() [1/3]

void Bes2DView::Move ( Int_t px,
Int_t py )

Definition at line 166 of file Bes2DView.cxx.

166 {
167 //
168 // Move (px, py in pixel coordinates)
169 Double_t x1, y1, x2, y2, dx, dy, x, y, x0, y0;
170 x1 = gPad->GetX1();
171 y1 = gPad->GetY1();
172 x2 = gPad->GetX2();
173 y2 = gPad->GetY2();
174 x0 = gPad->PixeltoX( 0 );
175 y0 = gPad->PixeltoY( 0 );
176 x = gPad->PixeltoX( px );
177 y = gPad->PixeltoY( py );
178 dx = -( x - x0 );
179 dy = -( y - y0 );
180 //((TPad*)gPad)->SetNoAspect(kTRUE);
181 gPad->Range( x1 + dx, y1 + dy, x2 + dx, y2 + dy );
182 //((TPad*)gPad)->SetNoAspect(kFALSE);
183 gPad->Modified();
184}

◆ Move() [2/3]

void Bes2DView::Move ( Int_t px,
Int_t py )

◆ Move() [3/3]

void Bes2DView::Move ( Int_t px,
Int_t py )

◆ NDCtoWC() [1/6]

void Bes2DView::NDCtoWC ( const Double_t * pn,
Double_t * pw )
virtual

Reimplemented from BesTView.

Definition at line 390 of file Bes2DView.cxx.

390 {
391 //
392 // Transform back from NDCs
393 Double_t p[3];
394 if ( f2DViewType == 0 )
395 { // XYView
396 p[0] = pn[0];
397 p[1] = pn[1];
398 p[2] = pn[2];
399 }
400 else
401 { // ZRView
402 p[0] = pn[2];
403 p[1] = pn[1];
404 p[2] = pn[0];
405 }
406
407 if ( fStatusCurrent->fFishEye == kTRUE )
408 {
409 Double_t r;
410 if ( f2DViewType == 1 )
411 {
412 Double_t pvWC[3], pvNDC[3];
413 pvWC[0] = +4;
414 pvWC[1] = 0;
415 pvWC[2] = 0;
416 BesTView::WCtoNDC( pvWC, pvNDC );
417 p[0] = TMath::Sign( ( pn[0] - pvNDC[0] ) * ( pn[0] - pvNDC[0] ), pn[0] - pvNDC[0] ) +
418 pvNDC[0];
419 p[1] = TMath::Sign( ( pn[1] - pvNDC[1] ) * ( pn[1] - pvNDC[1] ), pn[1] - pvNDC[1] ) +
420 pvNDC[1];
421 }
422 else
423 {
424 r = TMath::Sqrt( TMath::Power( p[0], 2 ) + TMath::Power( p[1], 2 ) );
425 p[0] *= r;
426 p[1] *= r;
427 }
428 }
429 BesTView::NDCtoWC( p, pw );
430}
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)
virtual void NDCtoWC(const Float_t *pn, Float_t *pw)

◆ NDCtoWC() [2/6]

virtual void Bes2DView::NDCtoWC ( const Double_t * pn,
Double_t * pw )
virtual

Reimplemented from BesTView.

◆ NDCtoWC() [3/6]

virtual void Bes2DView::NDCtoWC ( const Double_t * pn,
Double_t * pw )
virtual

Reimplemented from BesTView.

◆ NDCtoWC() [4/6]

void Bes2DView::NDCtoWC ( const Float_t * pn,
Float_t * pw )
virtual

Reimplemented from BesTView.

Definition at line 346 of file Bes2DView.cxx.

346 {
347 //
348 // Transform back from NDCs
349 Float_t p[3];
350 if ( f2DViewType == 0 )
351 { // XYView
352 p[0] = pn[0];
353 p[1] = pn[1];
354 p[2] = pn[2];
355 }
356 else
357 { // ZRView
358 p[0] = pn[2];
359 p[1] = pn[1];
360 p[2] = pn[0];
361 }
362
363 if ( fStatusCurrent->fFishEye == kTRUE )
364 {
365 Float_t r;
366 if ( f2DViewType == 1 )
367 {
368 Float_t pvWC[3], pvNDC[3];
369 pvWC[0] = +4;
370 pvWC[1] = 0;
371 pvWC[2] = 0;
372 BesTView::WCtoNDC( pvWC, pvNDC );
373 p[0] = TMath::Sign( ( pn[0] - pvNDC[0] ) * ( pn[0] - pvNDC[0] ), pn[0] - pvNDC[0] ) +
374 pvNDC[0];
375 p[1] = TMath::Sign( ( pn[1] - pvNDC[1] ) * ( pn[1] - pvNDC[1] ), pn[1] - pvNDC[1] ) +
376 pvNDC[1];
377 }
378 else
379 {
380 r = TMath::Sqrt( TMath::Power( p[0], 2 ) + TMath::Power( p[1], 2 ) );
381 p[0] *= r;
382 p[1] *= r;
383 }
384 }
385 BesTView::NDCtoWC( p, pw );
386}

◆ NDCtoWC() [5/6]

virtual void Bes2DView::NDCtoWC ( const Float_t * pn,
Float_t * pw )
virtual

Reimplemented from BesTView.

◆ NDCtoWC() [6/6]

virtual void Bes2DView::NDCtoWC ( const Float_t * pn,
Float_t * pw )
virtual

Reimplemented from BesTView.

◆ PrintCurrent() [1/3]

void Bes2DView::PrintCurrent ( )
inline

Definition at line 102 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

102{ fStatusCurrent->Print(); }

◆ PrintCurrent() [2/3]

void Bes2DView::PrintCurrent ( )
inline

Definition at line 102 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

102{ fStatusCurrent->Print(); }

◆ PrintCurrent() [3/3]

void Bes2DView::PrintCurrent ( )
inline

Definition at line 102 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

102{ fStatusCurrent->Print(); }

◆ Reset() [1/3]

void Bes2DView::Reset ( )

Definition at line 455 of file Bes2DView.cxx.

455 {
456 //
457 // reset view to default values
458
459 // reset status instances of views
460 // fStatus3D->Default(k3DView);
461 // fStatusXY->Default(kXYView);
462 // fStatusZR->Default(kZRView);
463 fZoomFactor = 1.5;
464
465 // reset current status instance tp fViewType
466 // fStatusCurrent->Default(fViewType);
467
468 // center the view
469 this->Center();
470 this->SetRange( -2635, -2635, -2875, 2635, 2635, 2875 );
471 // int iret;
472 // this->SetView(0,0,270,iret);
473 this->ZoomView( gPad, 1.5 );
474
475 // reset phirange
476 // this->SetPhiRange(0,180);
477 // this->UpdateView();
478 gPad->Update();
479}
void Center()
virtual void ZoomView(TVirtualPad *pad=0, Double_t zoomFactor=1.25)
virtual void SetRange(const Double_t *min, const Double_t *max)

◆ Reset() [2/3]

void Bes2DView::Reset ( )

◆ Reset() [3/3]

void Bes2DView::Reset ( )

◆ Set2DViewType() [1/3]

void Bes2DView::Set2DViewType ( Int_t viewType)
inline

Definition at line 55 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

55{ f2DViewType = viewType; }

◆ Set2DViewType() [2/3]

void Bes2DView::Set2DViewType ( Int_t viewType)
inline

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

55{ f2DViewType = viewType; }

◆ Set2DViewType() [3/3]

void Bes2DView::Set2DViewType ( Int_t viewType)
inline

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

55{ f2DViewType = viewType; }

◆ SetDrawOption() [1/3]

virtual void Bes2DView::SetDrawOption ( Option_t * option)
inlinevirtual

Definition at line 123 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

123{ BesTView::SetDrawOption( option ); }

◆ SetDrawOption() [2/3]

virtual void Bes2DView::SetDrawOption ( Option_t * option)
inlinevirtual

Definition at line 123 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

123{ BesTView::SetDrawOption( option ); }

◆ SetDrawOption() [3/3]

virtual void Bes2DView::SetDrawOption ( Option_t * option)
inlinevirtual

Definition at line 123 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

123{ BesTView::SetDrawOption( option ); }

◆ SetFishEye() [1/3]

void Bes2DView::SetFishEye ( Bool_t input = 0)
inline

Definition at line 90 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

90 {
91 /*
92 if ( fViewType & k3DView ) {
93 fFishEye = 0;
94 fStatusCurrent->fFishEye = 0;
95 } else {
96 */
97 fFishEye = input;
98 fStatusCurrent->fFishEye = input;
99
100 } // *TOGGLE*

◆ SetFishEye() [2/3]

void Bes2DView::SetFishEye ( Bool_t input = 0)
inline

Definition at line 90 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

90 {
91 /*
92 if ( fViewType & k3DView ) {
93 fFishEye = 0;
94 fStatusCurrent->fFishEye = 0;
95 } else {
96 */
97 fFishEye = input;
98 fStatusCurrent->fFishEye = input;
99
100 } // *TOGGLE*

◆ SetFishEye() [3/3]

void Bes2DView::SetFishEye ( Bool_t input = 0)
inline

Definition at line 90 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

90 {
91 /*
92 if ( fViewType & k3DView ) {
93 fFishEye = 0;
94 fStatusCurrent->fFishEye = 0;
95 } else {
96 */
97 fFishEye = input;
98 fStatusCurrent->fFishEye = input;
99
100 } // *TOGGLE*

◆ SetLineAttributes() [1/3]

virtual void Bes2DView::SetLineAttributes ( )
inlinevirtual

Definition at line 124 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

124{ BesTView::SetLineAttributes(); }

◆ SetLineAttributes() [2/3]

virtual void Bes2DView::SetLineAttributes ( )
inlinevirtual

Definition at line 124 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

124{ BesTView::SetLineAttributes(); }

◆ SetLineAttributes() [3/3]

virtual void Bes2DView::SetLineAttributes ( )
inlinevirtual

Definition at line 124 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

124{ BesTView::SetLineAttributes(); }

◆ SetMarkerSize() [1/3]

void Bes2DView::SetMarkerSize ( Float_t size)
inline

Definition at line 85 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

85{ fMarkerSize = size; }

◆ SetMarkerSize() [2/3]

void Bes2DView::SetMarkerSize ( Float_t size)
inline

Definition at line 85 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

85{ fMarkerSize = size; }

◆ SetMarkerSize() [3/3]

void Bes2DView::SetMarkerSize ( Float_t size)
inline

Definition at line 85 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

85{ fMarkerSize = size; }

◆ SetZoomFactor() [1/3]

virtual void Bes2DView::SetZoomFactor ( Double_t factor)
inlinevirtual

Definition at line 126 of file EventDisplay/BesVisLib/include/BesVisLib/Bes2DView.h.

126{ fZoomFactor = factor; };

◆ SetZoomFactor() [2/3]

virtual void Bes2DView::SetZoomFactor ( Double_t factor)
inlinevirtual

Definition at line 126 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

126{ fZoomFactor = factor; };

◆ SetZoomFactor() [3/3]

virtual void Bes2DView::SetZoomFactor ( Double_t factor)
inlinevirtual

Definition at line 126 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

126{ fZoomFactor = factor; };

◆ Side() [1/3]

virtual void Bes2DView::Side ( )
inlinevirtual

◆ Side() [2/3]

virtual void Bes2DView::Side ( )
inlinevirtual

Reimplemented from BesTView.

Definition at line 107 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

107{ BesTView::Side(); }

◆ Side() [3/3]

virtual void Bes2DView::Side ( )
inlinevirtual

Reimplemented from BesTView.

Definition at line 107 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

107{ BesTView::Side(); }

◆ Top() [1/3]

virtual void Bes2DView::Top ( )
inlinevirtual

◆ Top() [2/3]

virtual void Bes2DView::Top ( )
inlinevirtual

Reimplemented from BesTView.

Definition at line 108 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

108{ BesTView::Front(); }

◆ Top() [3/3]

virtual void Bes2DView::Top ( )
inlinevirtual

Reimplemented from BesTView.

Definition at line 108 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.

108{ BesTView::Front(); }

◆ UnZoom() [1/3]

void Bes2DView::UnZoom ( )
virtual

Reimplemented from BesTView.

Definition at line 214 of file Bes2DView.cxx.

214 {
215 //
216 // Demagnify
217 fMarkerSize = fMarkerSize / fZoomFactor;
218 UnzoomView( gPad, fZoomFactor );
219}
virtual void UnzoomView(TVirtualPad *pad=0, Double_t unZoomFactor=1.25)

◆ UnZoom() [2/3]

void Bes2DView::UnZoom ( )
virtual

Reimplemented from BesTView.

◆ UnZoom() [3/3]

void Bes2DView::UnZoom ( )
virtual

Reimplemented from BesTView.

◆ UpdateView() [1/3]

void Bes2DView::UpdateView ( Bool_t resetview = kFALSE)
virtual

Definition at line 241 of file Bes2DView.cxx.

241 {
242 //
243 // Update current view
244 if ( !gGeometry ) return;
245
246 // Redraw
247 // SetViewType(fViewType,resetview);
248}

◆ UpdateView() [2/3]

virtual void Bes2DView::UpdateView ( Bool_t resetview = kFALSE)
virtual

◆ UpdateView() [3/3]

virtual void Bes2DView::UpdateView ( Bool_t resetview = kFALSE)
virtual

◆ WCtoNDC() [1/6]

void Bes2DView::WCtoNDC ( const Double_t * pw,
Double_t * pn )
virtual

Reimplemented from BesTView.

Definition at line 310 of file Bes2DView.cxx.

310 {
311 //
312 // Transform world coordinates to
313 // normalised device coordinates.
314 // This method was taken from BesTView
315 // and extended by FishEye view
316 BesTView::WCtoNDC( pw, pn );
317
318 if ( fStatusCurrent->fFishEye == kTRUE )
319 {
320 Double_t r, s;
321 if ( f2DViewType == 1 )
322 {
323 Double_t pvWC[3], pvNDC[3];
324 pvWC[0] = +4;
325 pvWC[1] = 0;
326 pvWC[2] = 0;
327 BesTView::WCtoNDC( pvWC, pvNDC );
328 pn[0] = TMath::Sign( TMath::Sqrt( TMath::Abs( pn[0] - pvNDC[0] ) ), pn[0] - pvNDC[0] ) +
329 pvNDC[0];
330 pn[1] = TMath::Sign( TMath::Sqrt( TMath::Abs( pn[1] - pvNDC[1] ) ), pn[1] - pvNDC[1] ) +
331 pvNDC[1];
332 }
333 else
334 {
335
336 r = TMath::Sqrt( TMath::Power( pn[0], 2 ) + TMath::Power( pn[1], 2 ) );
337 s = TMath::Sqrt( r ) / r;
338 pn[0] *= s;
339 pn[1] *= s;
340 }
341 }
342}
XmlRpcServer s

◆ WCtoNDC() [2/6]

virtual void Bes2DView::WCtoNDC ( const Double_t * pw,
Double_t * pn )
virtual

Reimplemented from BesTView.

◆ WCtoNDC() [3/6]

virtual void Bes2DView::WCtoNDC ( const Double_t * pw,
Double_t * pn )
virtual

Reimplemented from BesTView.

◆ WCtoNDC() [4/6]

void Bes2DView::WCtoNDC ( const Float_t * pw,
Float_t * pn )
virtual

Reimplemented from BesTView.

Definition at line 272 of file Bes2DView.cxx.

272 {
273 //
274 // Transform world coordinates to
275 // normalised device coordinates.
276 // This method was taken from BesTView
277 // and extended by FishEye view
278 BesTView::WCtoNDC( pw, pn );
279 // cout << "fFishEye " << fFishEye << endl;
280
281 if ( fStatusCurrent->fFishEye == kTRUE )
282 {
283 Float_t r, s;
284 if ( f2DViewType == 1 )
285 {
286 Float_t pvWC[3], pvNDC[3];
287 pvWC[0] = +4;
288 pvWC[1] = 0;
289 pvWC[2] = 0;
290 BesTView::WCtoNDC( pvWC, pvNDC );
291 pn[0] = TMath::Sign( Double_t( TMath::Sqrt( TMath::Abs( pn[0] - pvNDC[0] ) ) ),
292 Double_t( pn[0] - pvNDC[0] ) ) +
293 pvNDC[0];
294 pn[1] = TMath::Sign( Double_t( TMath::Sqrt( TMath::Abs( pn[1] - pvNDC[1] ) ) ),
295 Double_t( pn[1] - pvNDC[1] ) ) +
296 pvNDC[1];
297 }
298 else
299 {
300 r = TMath::Sqrt( TMath::Power( pn[0], 2 ) + TMath::Power( pn[1], 2 ) );
301 s = TMath::Sqrt( r ) / r;
302 pn[0] *= s;
303 pn[1] *= s;
304 }
305 }
306}

◆ WCtoNDC() [5/6]

virtual void Bes2DView::WCtoNDC ( const Float_t * pw,
Float_t * pn )
virtual

Reimplemented from BesTView.

◆ WCtoNDC() [6/6]

virtual void Bes2DView::WCtoNDC ( const Float_t * pw,
Float_t * pn )
virtual

Reimplemented from BesTView.

◆ Zoom() [1/3]

void Bes2DView::Zoom ( )
virtual

Reimplemented from BesTView.

Definition at line 205 of file Bes2DView.cxx.

205 {
206 //
207 // Magnify
208 fMarkerSize = fMarkerSize * fZoomFactor;
209 ZoomView( gPad, fZoomFactor );
210}

◆ Zoom() [2/3]

void Bes2DView::Zoom ( )
virtual

Reimplemented from BesTView.

◆ Zoom() [3/3]

void Bes2DView::Zoom ( )
virtual

Reimplemented from BesTView.

◆ ZoomMove() [1/3]

virtual void Bes2DView::ZoomMove ( )
inlinevirtual

◆ ZoomMove() [2/3]

virtual void Bes2DView::ZoomMove ( )
inlinevirtual

Reimplemented from BesTView.

Definition at line 110 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Bes2DView.h.

◆ ZoomMove() [3/3]

virtual void Bes2DView::ZoomMove ( )
inlinevirtual

Reimplemented from BesTView.

Definition at line 110 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Bes2DView.h.


The documentation for this class was generated from the following files: