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

#include <BesVisDisplay.h>

Inheritance diagram for BesVisDisplay:

Public Member Functions

 BesVisDisplay ()
 BesVisDisplay (const char *title)
virtual ~BesVisDisplay ()
virtual void SetCanvas (TCanvas *c=0)
void SetDisplayMode (Int_t mode)
Int_t GetDisplayMode ()
Bool_t IsVHeader ()
virtual void SwitchDisplayMode (Int_t mode)
virtual void ResizePad ()
virtual void SwitchPad ()
TPad * GetPadXY ()
TPad * GetPadZR ()
TPad * GetPad3D ()
virtual void DrawHeader ()
virtual void Reset ()
virtual void Refresh ()
virtual void InitGeometryFromGDML (const TString fPath, bool mrpc=false, bool cgem=false)
virtual void InitGeometryFromROOT (TGeoVolume *bes)
BesGeometryGetBesGeometry ()
virtual void SetMdcOn (Bool_t MdcOn)
Bool_t GetMdcOn ()
virtual void SetTofOn (Bool_t TofOn)
Bool_t GetTofOn ()
virtual void SetEmcOn (Bool_t EmcOn)
Bool_t GetEmcOn ()
virtual void SetVisHeader (Bool_t val)
Bool_t GetVisHeader () const
virtual Bool_t AllViews ()
virtual void Clear (Option_t *option="")
virtual void DisplayTrigger (Int_t trig)
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
void Draw2D (Option_t *option="")
void Draw3D (Option_t *option="")
void Draw2DXY (Option_t *option="")
void Draw2DZR (Option_t *option="")
virtual void DrawAllViews ()
Bool_t DrawClusters ()
Bool_t DrawParticles ()
Bool_t DrawParticles2 ()
virtual void DrawTitle (Option_t *option="")
virtual void DrawView (Float_t theta, Float_t phi)
void DrawViewRange (Double_t x0, Double_t y0, Double_t z0, Double_t zoomSize)
virtual void DrawViewGL ()
virtual void DrawViewX3D ()
virtual void DrawViewRaytracer (Float_t theta, Float_t phi, Float_t psi)
virtual void DrawViewX3D (char option)
void DrawImageSequence (Int_t thetaStart, Int_t thetaStep)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void GetEvent (Long64_t event)
TGeoVolume * GetVolBes ()
MdcROOTGeoGetMdcROOTGeo ()
TofROOTGeoGetTofROOTGeo ()
EmcROOTGeoGetEmcROOTGeo ()
MucROOTGeoGetMucROOTGeo ()
void Init ()
TPad * Pad ()
virtual void Paint (Option_t *option="")
virtual void PaintFruit (TObject *obj, Float_t eta, Float_t phi, Float_t pt, Int_t type, Option_t *option="")
virtual void PaintParticles (Option_t *option="")
Float_t PTcut ()
Float_t PTcutEGMUNU ()
Float_t Rin ()
Float_t Rout ()
virtual void SetDrawClusters (Bool_t draw=kTRUE)
virtual void SetDrawParticles (Bool_t draw=kTRUE)
virtual void SetPTcut (Float_t ptcut=0.4)
virtual void SetPTcutEGMUNU (Float_t ptcut=5)
virtual void SetView (Float_t theta, Float_t phi)
virtual void ShowNextEvent (Int_t delta=1)
void SetMdcCon (Int_t mdcCon)
void SetTofCon (Int_t tofCon)
void SetEmcCon (Int_t emcCon)
void SetMucCon (Int_t mucCon)
void SetAllVisible (Int_t vis)
void SetQuarterVisible (Int_t vis)
void SetHalfVisible (Int_t vis)
void SetNoEndVisible (Int_t vis)
void SetMdcFiredCell ()
void SetTofFiredCell ()
void SetEmcFiredCell ()
void SetMucFiredCell ()
virtual void SizeFruit () const
virtual void SizeParticles () const
Float_t Zin ()
Float_t Zout ()
 BesVisDisplay ()
 BesVisDisplay (const char *title)
virtual ~BesVisDisplay ()
virtual void SetCanvas (TCanvas *c=0)
void SetDisplayMode (Int_t mode)
Int_t GetDisplayMode ()
Bool_t IsVHeader ()
virtual void SwitchDisplayMode (Int_t mode)
virtual void ResizePad ()
virtual void SwitchPad ()
TPad * GetPadXY ()
TPad * GetPadZR ()
TPad * GetPad3D ()
virtual void DrawHeader ()
virtual void Reset ()
virtual void Refresh ()
virtual void InitGeometryFromGDML (const TString fPath, bool mrpc=false, bool cgem=false)
virtual void InitGeometryFromROOT (TGeoVolume *bes)
BesGeometryGetBesGeometry ()
virtual void SetMdcOn (Bool_t MdcOn)
Bool_t GetMdcOn ()
virtual void SetTofOn (Bool_t TofOn)
Bool_t GetTofOn ()
virtual void SetEmcOn (Bool_t EmcOn)
Bool_t GetEmcOn ()
virtual void SetVisHeader (Bool_t val)
Bool_t GetVisHeader () const
virtual Bool_t AllViews ()
virtual void Clear (Option_t *option="")
virtual void DisplayTrigger (Int_t trig)
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
void Draw2D (Option_t *option="")
void Draw3D (Option_t *option="")
void Draw2DXY (Option_t *option="")
void Draw2DZR (Option_t *option="")
virtual void DrawAllViews ()
Bool_t DrawClusters ()
Bool_t DrawParticles ()
Bool_t DrawParticles2 ()
virtual void DrawTitle (Option_t *option="")
virtual void DrawView (Float_t theta, Float_t phi)
void DrawViewRange (Double_t x0, Double_t y0, Double_t z0, Double_t zoomSize)
virtual void DrawViewGL ()
virtual void DrawViewX3D ()
virtual void DrawViewRaytracer (Float_t theta, Float_t phi, Float_t psi)
virtual void DrawViewX3D (char option)
void DrawImageSequence (Int_t thetaStart, Int_t thetaStep)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void GetEvent (Long64_t event)
TGeoVolume * GetVolBes ()
MdcROOTGeoGetMdcROOTGeo ()
TofROOTGeoGetTofROOTGeo ()
EmcROOTGeoGetEmcROOTGeo ()
MucROOTGeoGetMucROOTGeo ()
void Init ()
TPad * Pad ()
virtual void Paint (Option_t *option="")
virtual void PaintFruit (TObject *obj, Float_t eta, Float_t phi, Float_t pt, Int_t type, Option_t *option="")
virtual void PaintParticles (Option_t *option="")
Float_t PTcut ()
Float_t PTcutEGMUNU ()
Float_t Rin ()
Float_t Rout ()
virtual void SetDrawClusters (Bool_t draw=kTRUE)
virtual void SetDrawParticles (Bool_t draw=kTRUE)
virtual void SetPTcut (Float_t ptcut=0.4)
virtual void SetPTcutEGMUNU (Float_t ptcut=5)
virtual void SetView (Float_t theta, Float_t phi)
virtual void ShowNextEvent (Int_t delta=1)
void SetMdcCon (Int_t mdcCon)
void SetTofCon (Int_t tofCon)
void SetEmcCon (Int_t emcCon)
void SetMucCon (Int_t mucCon)
void SetAllVisible (Int_t vis)
void SetQuarterVisible (Int_t vis)
void SetHalfVisible (Int_t vis)
void SetNoEndVisible (Int_t vis)
void SetMdcFiredCell ()
void SetTofFiredCell ()
void SetEmcFiredCell ()
void SetMucFiredCell ()
virtual void SizeFruit () const
virtual void SizeParticles () const
Float_t Zin ()
Float_t Zout ()
 BesVisDisplay ()
 BesVisDisplay (const char *title)
virtual ~BesVisDisplay ()
virtual void SetCanvas (TCanvas *c=0)
void SetDisplayMode (Int_t mode)
Int_t GetDisplayMode ()
Bool_t IsVHeader ()
virtual void SwitchDisplayMode (Int_t mode)
virtual void ResizePad ()
virtual void SwitchPad ()
TPad * GetPadXY ()
TPad * GetPadZR ()
TPad * GetPad3D ()
virtual void DrawHeader ()
virtual void Reset ()
virtual void Refresh ()
virtual void InitGeometryFromGDML (const TString fPath, bool mrpc=false, bool cgem=false)
virtual void InitGeometryFromROOT (TGeoVolume *bes)
BesGeometryGetBesGeometry ()
virtual void SetMdcOn (Bool_t MdcOn)
Bool_t GetMdcOn ()
virtual void SetTofOn (Bool_t TofOn)
Bool_t GetTofOn ()
virtual void SetEmcOn (Bool_t EmcOn)
Bool_t GetEmcOn ()
virtual void SetVisHeader (Bool_t val)
Bool_t GetVisHeader () const
virtual Bool_t AllViews ()
virtual void Clear (Option_t *option="")
virtual void DisplayTrigger (Int_t trig)
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
void Draw2D (Option_t *option="")
void Draw3D (Option_t *option="")
void Draw2DXY (Option_t *option="")
void Draw2DZR (Option_t *option="")
virtual void DrawAllViews ()
Bool_t DrawClusters ()
Bool_t DrawParticles ()
Bool_t DrawParticles2 ()
virtual void DrawTitle (Option_t *option="")
virtual void DrawView (Float_t theta, Float_t phi)
void DrawViewRange (Double_t x0, Double_t y0, Double_t z0, Double_t zoomSize)
virtual void DrawViewGL ()
virtual void DrawViewX3D ()
virtual void DrawViewRaytracer (Float_t theta, Float_t phi, Float_t psi)
virtual void DrawViewX3D (char option)
void DrawImageSequence (Int_t thetaStart, Int_t thetaStep)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void GetEvent (Long64_t event)
TGeoVolume * GetVolBes ()
MdcROOTGeoGetMdcROOTGeo ()
TofROOTGeoGetTofROOTGeo ()
EmcROOTGeoGetEmcROOTGeo ()
MucROOTGeoGetMucROOTGeo ()
void Init ()
TPad * Pad ()
virtual void Paint (Option_t *option="")
virtual void PaintFruit (TObject *obj, Float_t eta, Float_t phi, Float_t pt, Int_t type, Option_t *option="")
virtual void PaintParticles (Option_t *option="")
Float_t PTcut ()
Float_t PTcutEGMUNU ()
Float_t Rin ()
Float_t Rout ()
virtual void SetDrawClusters (Bool_t draw=kTRUE)
virtual void SetDrawParticles (Bool_t draw=kTRUE)
virtual void SetPTcut (Float_t ptcut=0.4)
virtual void SetPTcutEGMUNU (Float_t ptcut=5)
virtual void SetView (Float_t theta, Float_t phi)
virtual void ShowNextEvent (Int_t delta=1)
void SetMdcCon (Int_t mdcCon)
void SetTofCon (Int_t tofCon)
void SetEmcCon (Int_t emcCon)
void SetMucCon (Int_t mucCon)
void SetAllVisible (Int_t vis)
void SetQuarterVisible (Int_t vis)
void SetHalfVisible (Int_t vis)
void SetNoEndVisible (Int_t vis)
void SetMdcFiredCell ()
void SetTofFiredCell ()
void SetEmcFiredCell ()
void SetMucFiredCell ()
virtual void SizeFruit () const
virtual void SizeParticles () const
Float_t Zin ()
Float_t Zout ()

Detailed Description

Constructor & Destructor Documentation

◆ BesVisDisplay() [1/6]

BesVisDisplay::BesVisDisplay ( )

◆ BesVisDisplay() [2/6]

BesVisDisplay::BesVisDisplay ( const char * title)

Definition at line 65 of file BesVisDisplay.cxx.

66 : TQObject()
67 , fBesGeometry( 0 )
68 , fMdcROOTGeo( 0 )
69 , fTofROOTGeo( 0 )
70 , fEmcROOTGeo( 0 )
71 , fMucROOTGeo( 0 )
72 , fMdcCon( 0 )
73 , fTofCon( 0 )
74 , fEmcCon( 0 )
75 , fMucCon( 0 )
76 , fAllVis( 0 )
77 , fQuarterVis( 0 )
78 , fHalfVis( 0 )
79 , fNoEndVis( 0 ) {}

◆ ~BesVisDisplay() [1/3]

BesVisDisplay::~BesVisDisplay ( )
virtual

Definition at line 82 of file BesVisDisplay.cxx.

82{}

◆ BesVisDisplay() [3/6]

BesVisDisplay::BesVisDisplay ( )

◆ BesVisDisplay() [4/6]

BesVisDisplay::BesVisDisplay ( const char * title)

◆ ~BesVisDisplay() [2/3]

virtual BesVisDisplay::~BesVisDisplay ( )
virtual

◆ BesVisDisplay() [5/6]

BesVisDisplay::BesVisDisplay ( )

◆ BesVisDisplay() [6/6]

BesVisDisplay::BesVisDisplay ( const char * title)

◆ ~BesVisDisplay() [3/3]

virtual BesVisDisplay::~BesVisDisplay ( )
virtual

Member Function Documentation

◆ AllViews() [1/3]

virtual Bool_t BesVisDisplay::AllViews ( )
inlinevirtual

Definition at line 160 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

160{ return fDrawAllViews; }

◆ AllViews() [2/3]

virtual Bool_t BesVisDisplay::AllViews ( )
inlinevirtual

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

160{ return fDrawAllViews; }

◆ AllViews() [3/3]

virtual Bool_t BesVisDisplay::AllViews ( )
inlinevirtual

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

160{ return fDrawAllViews; }

◆ Clear() [1/3]

void BesVisDisplay::Clear ( Option_t * option = "")
virtual

Definition at line 1380 of file BesVisDisplay.cxx.

1380 {
1381 // Delete graphics temporary objects
1382}

◆ Clear() [2/3]

virtual void BesVisDisplay::Clear ( Option_t * option = "")
virtual

◆ Clear() [3/3]

virtual void BesVisDisplay::Clear ( Option_t * option = "")
virtual

◆ DisplayTrigger() [1/3]

void BesVisDisplay::DisplayTrigger ( Int_t trig)
virtual

Definition at line 780 of file BesVisDisplay.cxx.

780 {
781 // Display trigger parameters for current event
782 trig = 1;
783
784 if ( trig ) fEM1->SetFillColor( kGreen );
785 else fEM1->SetFillColor( kRed );
786 if ( trig ) fPH1->SetFillColor( kGreen );
787 else fPH1->SetFillColor( kRed );
788 if ( trig ) fEM2->SetFillColor( kGreen );
789 else fEM2->SetFillColor( kRed );
790 if ( trig ) fMU1->SetFillColor( kGreen );
791 else fMU1->SetFillColor( kRed );
792 if ( trig ) fMU2->SetFillColor( kGreen );
793 else fMU2->SetFillColor( kRed );
794 if ( trig ) fEMU->SetFillColor( kGreen );
795 else fEMU->SetFillColor( kRed );
796 if ( trig ) fJT1->SetFillColor( kGreen );
797 else fJT1->SetFillColor( kRed );
798 if ( trig ) fJT3->SetFillColor( kGreen );
799 else fJT3->SetFillColor( kRed );
800 if ( trig ) fJT4->SetFillColor( kGreen );
801 else fJT4->SetFillColor( kRed );
802 if ( trig ) fALL->SetFillColor( kGreen );
803 else fALL->SetFillColor( kRed );
804 fTrigPad->Modified();
805}

◆ DisplayTrigger() [2/3]

virtual void BesVisDisplay::DisplayTrigger ( Int_t trig)
virtual

◆ DisplayTrigger() [3/3]

virtual void BesVisDisplay::DisplayTrigger ( Int_t trig)
virtual

◆ DistancetoPrimitive() [1/3]

Int_t BesVisDisplay::DistancetoPrimitive ( Int_t px,
Int_t py )
virtual

Definition at line 808 of file BesVisDisplay.cxx.

808 {
809 // Compute distance from point px,py to objects in event
810
811 if ( fBesHeader ) return fBesHeader->DistancetoPrimitive( px, py ) - 10;
812 else return 9999;
813
814 if ( gPad == fTrigPad )
815 {
816 gPad->SetCursor( kCross );
817 return 0;
818 }
819
820 const Int_t big = 9999;
821 Int_t dist = big;
822 Float_t xmin = gPad->GetX1();
823 Float_t xmax = gPad->GetX2();
824 Float_t dx = 0.05 * ( xmax - xmin );
825 Float_t x = gPad->AbsPixeltoX( px );
826 if ( x < xmin + dx || x > xmax - dx ) return dist;
827
828 // scan list of particles
829 // dist = fParticle->DistancetoPrimitive(px, py);
830 // if (dist <= 0) return 0;
831
832 // scan list of fruits
833 /*
834 TIter nextf(fFruits);
835 BesVisFruit *fruit;
836 while((fruit=(BesVisFruit*)nextf())) {
837 dist = fruit->DistancetoPrimitive(px, py);
838 if (dist < 5) {
839 gPad->SetSelected(fruit->Fruit());
840 gPad->SetCursor(kCross);
841 return 0;
842 }
843 }
844 */
845
846 /*
847 // scan list of detectors (currently only one tube)
848 dist = fNodin->DistancetoPrimitive(px, py);
849 if (gPad->GetCanvas()->GetSelected() == gPad->GetView()) {
850 gPad->SetSelected(this);
851 }
852 */
853
854 return 0;
855}
Double_t x[10]

◆ DistancetoPrimitive() [2/3]

virtual Int_t BesVisDisplay::DistancetoPrimitive ( Int_t px,
Int_t py )
virtual

◆ DistancetoPrimitive() [3/3]

virtual Int_t BesVisDisplay::DistancetoPrimitive ( Int_t px,
Int_t py )
virtual

◆ Draw() [1/3]

void BesVisDisplay::Draw ( Option_t * option = "")
virtual

Definition at line 858 of file BesVisDisplay.cxx.

858 {
859 // Insert current event in graphics pad list
860
861 // fPad->cd();
862
863 // fCanvas->Range(0,0,1,1);
864 Draw2D();
865 Draw3D();
867 // DrawView(fTheta, fPhi);
868 // fPad->x3d();
869 /*
870 TViewerX3D *x3dPad = new TViewerX3D(fPad);
871 x3dPad->CreateScene("x3d");
872 //x3dPad->SetForegroundColor(x3dPad->GetWhitePixel());
873 //x3dPad->SetBackgroundColor(x3dPad->GetWhitePixel());
874 x3dPad->Show();
875 */
876
877 // Display the event number and title
878 // fPad->cd();
879 // DrawTitle();
880}
void Draw3D(Option_t *option="")
virtual void SwitchDisplayMode(Int_t mode)
void Draw2D(Option_t *option="")

◆ Draw() [2/3]

virtual void BesVisDisplay::Draw ( Option_t * option = "")
virtual

◆ Draw() [3/3]

virtual void BesVisDisplay::Draw ( Option_t * option = "")
virtual

◆ Draw2D() [1/3]

void BesVisDisplay::Draw2D ( Option_t * option = "")

Definition at line 883 of file BesVisDisplay.cxx.

883 {
884 cout << "Create 2D View " << endl;
885 fPadXY->cd();
886 fPadXY->Clear();
887 Draw2DXY();
888 fPadXY->Update();
889
890 fPadZR->cd();
891 fPadZR->Clear();
892 Draw2DZR();
893 fPadZR->Update();
894
895 // DrawTitle();
896
897 // fPad->SetEditable(kFALSE);
898}
void Draw2DZR(Option_t *option="")
void Draw2DXY(Option_t *option="")

Referenced by Draw().

◆ Draw2D() [2/3]

void BesVisDisplay::Draw2D ( Option_t * option = "")

◆ Draw2D() [3/3]

void BesVisDisplay::Draw2D ( Option_t * option = "")

◆ Draw2DXY() [1/3]

void BesVisDisplay::Draw2DXY ( Option_t * option = "")

Definition at line 912 of file BesVisDisplay.cxx.

912 {
913 fxyView = new BesView();
914 fxyView->ViewXY();
915}

Referenced by Draw2D().

◆ Draw2DXY() [2/3]

void BesVisDisplay::Draw2DXY ( Option_t * option = "")

◆ Draw2DXY() [3/3]

void BesVisDisplay::Draw2DXY ( Option_t * option = "")

◆ Draw2DZR() [1/3]

void BesVisDisplay::Draw2DZR ( Option_t * option = "")

Definition at line 918 of file BesVisDisplay.cxx.

918 {
919 fzrView = new BesView();
920 fzrView->ViewZR();
921}

Referenced by Draw2D().

◆ Draw2DZR() [2/3]

void BesVisDisplay::Draw2DZR ( Option_t * option = "")

◆ Draw2DZR() [3/3]

void BesVisDisplay::Draw2DZR ( Option_t * option = "")

◆ Draw3D() [1/3]

void BesVisDisplay::Draw3D ( Option_t * option = "")

Definition at line 901 of file BesVisDisplay.cxx.

901 {
902 cout << "enter BesVisDisplay::Draw3D()" << endl; // added by tianhl to debug shutdown
903
904 fPad3D->cd();
905 fPad3D->Clear();
906
907 f3DView = new BesView();
908 f3DView->View3D();
909}

Referenced by Draw().

◆ Draw3D() [2/3]

void BesVisDisplay::Draw3D ( Option_t * option = "")

◆ Draw3D() [3/3]

void BesVisDisplay::Draw3D ( Option_t * option = "")

◆ DrawAllViews() [1/3]

void BesVisDisplay::DrawAllViews ( )
virtual

Definition at line 924 of file BesVisDisplay.cxx.

924 {
925 // Draw front,top,side and 30 deg views
926
927 fDrawAllViews = kTRUE;
928 fPad->cd();
929 fPad->SetFillColor( 15 );
930 fPad->Clear();
931 fPad->Divide( 2, 2 );
932
933 // draw 30 deg view
934 fPad->cd( 1 );
935 DrawView( 30, 30 );
936 DrawTitle();
937
938 // draw front view
939 fPad->cd( 2 );
940 DrawView( 0, 180 ); // 0,-90, 0
941 DrawTitle( "Front" );
942
943 // draw top view
944 fPad->cd( 3 );
945 DrawView( 90, 90 );
946 DrawTitle( "Top" );
947
948 // draw side view
949 fPad->cd( 4 );
950 DrawView( 90, 0 );
951 DrawTitle( "Side" );
952
953 fPad->cd( 2 );
954}
virtual void DrawView(Float_t theta, Float_t phi)
virtual void DrawTitle(Option_t *option="")

◆ DrawAllViews() [2/3]

virtual void BesVisDisplay::DrawAllViews ( )
virtual

◆ DrawAllViews() [3/3]

virtual void BesVisDisplay::DrawAllViews ( )
virtual

◆ DrawClusters() [1/3]

Bool_t BesVisDisplay::DrawClusters ( )
inline

Definition at line 171 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

171{ return fDrawClusters; }

◆ DrawClusters() [2/3]

Bool_t BesVisDisplay::DrawClusters ( )
inline

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

171{ return fDrawClusters; }

◆ DrawClusters() [3/3]

Bool_t BesVisDisplay::DrawClusters ( )
inline

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

171{ return fDrawClusters; }

◆ DrawHeader() [1/3]

void BesVisDisplay::DrawHeader ( )
virtual

Definition at line 256 of file BesVisDisplay.cxx.

256 {
257 fPadHeader->cd();
258 // fPadHeader->Clear();
259
260 // TASImage asImage("HeaderH2.gif");
261 // Pixmap_t pic = asImage.GetPixmap();
262
263 // cout << "mode " << fDisplayMode << endl;
264 // draw text over image with funny font
265 if ( !IsVHeader() ) // Long Peixun's update: replace by IsVHeader()
266 {
267 fHeaderImage->Zoom( 161, 649, 635, 174 ); // (x Offset, y Offset, width, height)
268 // fHeaderImage->Scale(800, 200);
269 }
270 else
271 {
272 fHeaderImage->Zoom( 600, 324, 164, 473 );
273 // fHeaderImage->Scale(200, 600);
274 }
275
276 // draw text over image with foreground specified by pixmap
277 // img->DrawText(250, 350, "goodbye cruel world ...", 24, 0, ar, TImage::kPlain, "fore.xpm");
278
279 fBesHeader->Clear();
280 // fBesHeader->AddText("Commented");
281
282 if ( !gEvent ) { fBesHeader->AddText( "No Event Info" ); }
283 else
284 {
285 // old coordinates
286 Double_t coordx = fCoordx;
287 Double_t coordy = fCoordy;
288
289 // Get data
290 Long64_t runno = gEvent->GetRun();
291 Long64_t eventno = gEvent->GetEvent();
292 Int_t year = gEvent->GetYear();
293 Int_t month = gEvent->GetMonth();
294 Int_t day = gEvent->GetDay();
295 Int_t hour = gEvent->GetHour();
296 Int_t min = gEvent->GetMin();
297 Int_t sec = gEvent->GetSec();
298
299 // Add run no.
300 if ( IsVHeader() )
301 {
302 coordx = 0.1;
303 coordy = 0.88; // Long Peixun's update: 0.90 -> 0.88
304 }
305 else
306 {
307 coordx = 0.02;
308 coordy = 0.88; // Long Peixun's update: 0.90 -> 0.88
309 }
310 char title1[20];
311 sprintf( title1, "Run %ld ", runno );
312 TText* ttitle1 = fBesHeader->AddText( coordx, coordy, title1 );
313 ttitle1->SetTextSize( fTextSizeTitle );
314 ttitle1->SetTextColor( 1 );
315 ttitle1->SetTextAlign( 12 );
316
317 // Add event no.
318 if ( IsVHeader() )
319 {
320 coordx = 0.1;
321 coordy = 0.81; // Long Peixun's update: 0.86 -> 0.81
322 }
323 else
324 {
325 coordx = 0.02;
326 coordy = 0.76; // Long Peixun's update: 0.82 -> 0.76
327 }
328 char title2[20];
329 sprintf( title2, "Event %ld ", eventno );
330 TText* ttitle2 = fBesHeader->AddText( coordx, coordy, title2 );
331 ttitle2->SetTextSize( fTextSizeTitle );
332 ttitle2->SetTextColor( 1 );
333 ttitle2->SetTextAlign( 12 );
334
335 // Add estime
336 if ( IsVHeader() )
337 {
338 coordx = 0.1;
339 coordy = 0.74; // Long Peixun's update: 0.83 -> 0.74
340 }
341 else
342 {
343 coordx = 0.02;
344 coordy = 0.63; // Long Peixun's update: 0.72 -> 0.63
345 }
346 char titleEvTime[30];
347
348 // Long Peixun's update: if this event is not a rec event, don't show estime
349 if ( gEvent->GetHeader().GetEventRec() )
350 {
351 if ( fabs( gEvent->GetHeader().GetEvTime() ) > 0.0001 )
352 {
353 double esTimeConst = 230; // sub in T0 of each layer in MDC calibration
354 sprintf( titleEvTime, "Estime:%5.1fns",
355 gEvent->GetHeader().GetEvTime() - esTimeConst );
356 }
357 else sprintf( titleEvTime, "Estime:0 ns" );
358 }
359 else sprintf( titleEvTime, "Estime: -" );
360
361 TText* ttitleEvTime = fBesHeader->AddText( coordx, coordy, titleEvTime );
362 ttitleEvTime->SetTextSize( fTextSizeTime );
363 ttitleEvTime->SetTextFont( 52 );
364 ttitleEvTime->SetTextColor( 1 );
365 ttitleEvTime->SetTextAlign( 12 );
366
367 // Add stat
368 if ( IsVHeader() )
369 {
370 coordx = 0.1;
371 coordy = 0.69; // Long Peixun's update: 0.81 -> 0.69
372 }
373 else
374 {
375 coordx = 0.2;
376 coordy = 0.63; // Long Peixun's update: 0.72 -> 0.63
377 }
378 char titleEvTimeStat[30];
379
380 // Long Peixun's update: if this event is not a rec event, don't show status
381 if ( gEvent->GetHeader().GetEventRec() )
382 { sprintf( titleEvTimeStat, " stat:%3d", gEvent->GetHeader().GetEvTimeStatus() ); }
383 else sprintf( titleEvTimeStat, " stat: -" );
384
385 TText* ttitleEvTimeStat = fBesHeader->AddText( coordx, coordy, titleEvTimeStat );
386 ttitleEvTimeStat->SetTextSize( fTextSizeTime );
387 ttitleEvTimeStat->SetTextFont( 52 );
388 ttitleEvTimeStat->SetTextColor( 1 );
389 ttitleEvTimeStat->SetTextAlign( 12 );
390
391 // Add quality
392 if ( IsVHeader() )
393 {
394 coordx = 0.1;
395 coordy = 0.64; // Long Peixun's update: 0.79 -> 0.64
396 }
397 else
398 {
399 coordx = 0.4;
400 coordy = 0.63; // Long Peixun's update: 0.72 -> 0.63
401 }
402 char titleEvTimeQ[30];
403
404 // Long Peixun's update: if this event is not a rec event, don't show quality
405 if ( gEvent->GetHeader().GetEventRec() )
406 { sprintf( titleEvTimeQ, " quality:%3.1f", gEvent->GetHeader().GetEvTimeQuality() ); }
407 else sprintf( titleEvTimeQ, " quality: -" );
408
409 TText* ttitleEvTimeQ = fBesHeader->AddText( coordx, coordy, titleEvTimeQ );
410 ttitleEvTimeQ->SetTextSize( fTextSizeTime );
411 ttitleEvTimeQ->SetTextFont( 52 );
412 ttitleEvTimeQ->SetTextColor( 1 );
413 ttitleEvTimeQ->SetTextAlign( 12 );
414
415 // Add date
416 if ( IsVHeader() )
417 {
418 coordx = 0.1;
419 coordy = 0.57; // Long Peixun's update: 0.76 -> 0.57
420 }
421 else
422 {
423 coordx = 0.02;
424 coordy = 0.51; // Long Peixun's update: 0.60 -> 0.51
425 }
426 char date[70];
427 sprintf( date, "date: %4d-%02d-%02d ", year, month, day );
428 TText* tdate = fBesHeader->AddText( coordx, coordy, date );
429 tdate->SetTextSize( fTextSizeTime );
430 tdate->SetTextFont( 52 );
431 tdate->SetTextColor( 1 );
432 tdate->SetTextAlign( 12 );
433
434 // Add time
435 if ( IsVHeader() )
436 {
437 coordx = 0.1;
438 coordy = 0.52; // Long Peixun's update: 0.69 -> 0.52
439 }
440 else
441 {
442 coordx = 0.25;
443 coordy = 0.51; // Long Peixun's update: 0.60 -> 0.51
444 }
445 char time[70];
446 sprintf( time, "time: %02d:%02d:%02d", hour, min, sec );
447 TText* ttime = fBesHeader->AddText( coordx, coordy, time );
448 ttime->SetTextSize( fTextSizeTime );
449 ttime->SetTextFont( 52 );
450 ttime->SetTextColor( 1 );
451 ttime->SetTextAlign( 12 );
452
453 // string for contents
454 TString info;
455 vector<TString> statusCon;
456
457 char data[25];
458 if ( gEvent->GetMC() ) sprintf( data, "MC=Yes" );
459 else sprintf( data, "MC=No" );
460 statusCon.push_back( TString( data ) );
461
462 vector<Int_t> trigChannelVector = gEvent->GetHeader().GetTrigChannelVector();
463 vector<Int_t> trigConditionVector = gEvent->GetHeader().GetTrigConditionVector();
464 Int_t timeType = gEvent->GetHeader().GetTimeType();
465 //************************************
466 sprintf( data, "Time Type: %d", timeType );
467 statusCon.push_back( TString( data ) );
468 if ( IsVHeader() )
469 {
470 coordx = 0.10;
471 coordy = 0.45; // Long Peixun's update: 0.71 -> 0.45
472 }
473 else
474 {
475 coordx = 0.02;
476 coordy = 0.38; // Long Peixun's update: 0.50 -> 0.38
477 }
478 for ( Int_t i = 0; i < (Int_t)statusCon.size(); i++ )
479 {
480 TText* ttitle = fBesHeader->AddText( coordx, coordy, statusCon[i].Data() );
481 if ( IsVHeader() ) coordy -= 0.04; // Long Peixun's update: 0.02 -> 0.04
482 else coordx += 0.2;
483 ttitle->SetTextSize( fTextSizeData );
484 ttitle->SetTextFont( 62 );
485 ttitle->SetTextColor( 1 );
486 ttitle->SetTextAlign( 12 );
487 }
488 vector<TString> infoCon;
489 // cout << "BesVisDisplay::time Type: " << timeType << endl;
490 vector<Int_t>::iterator pTrigVector;
491 // Long Peixun's update: Annotate "for"
492 // for (pTrigVector = trigConditionVector.begin();
493 // pTrigVector != trigConditionVector.end();
494 // pTrigVector++){
495 // //cout << "BesVisDisplay::trigCondition: " << *pTrigVector << endl;
496 // }
497 // for (pTrigVector = trigChannelVector.begin();
498 // pTrigVector != trigChannelVector.end();
499 // pTrigVector++){
500 // sprintf(data, "Trig Channel_00");
501 // infoCon.push_back(TString(data));
502 // sprintf(data, "Trig Channel_01");
503 // infoCon.push_back(TString(data));
504 // sprintf(data, "Trig Channel_02");
505 // infoCon.push_back(TString(data));
506 // sprintf(data, "Trig Channel_03");
507 // infoCon.push_back(TString(data));
508 // sprintf(data, "Trig Channel_04");
509 // infoCon.push_back(TString(data));
510 // sprintf(data, "Trig Channel_05");
511 // infoCon.push_back(TString(data));
512 // sprintf(data, "Trig Channel_06");
513 // infoCon.push_back(TString(data));
514 // sprintf(data, "Trig Channel_07");
515 // infoCon.push_back(TString(data));
516 // sprintf(data, "Trig Channel_08");
517 // infoCon.push_back(TString(data));
518 // sprintf(data, "Trig Channel_09");
519 // infoCon.push_back(TString(data));
520 // sprintf(data, "Trig Channel_10");
521 // infoCon.push_back(TString(data));
522 // sprintf(data, "Trig Channel_11");
523 // infoCon.push_back(TString(data));
524 // sprintf(data, "Trig Channel_12");
525 // infoCon.push_back(TString(data));
526 // sprintf(data, "Trig Channel_13");
527 // infoCon.push_back(TString(data));
528 // sprintf(data, "Trig Channel_14");
529 // infoCon.push_back(TString(data));
530 // sprintf(data, "Trig Channel_15");
531 // infoCon.push_back(TString(data));
532 // cout << "BesVisDisplay::trigChannel: " << *pTrigVector << endl;
533 //}
534 //************************************
535
536 // if (GetMdcOn()) {
537 // //Float_t p = gEvent->GetHeader().GetP();
538 // //Float_t pt = gEvent->GetHeader().GetPt();
539 // //Float_t px = gEvent->GetHeader().GetPx();
540 // //Float_t py = gEvent->GetHeader().GetPy();
541 // //Float_t pz = gEvent->GetHeader().GetPz();
542
543 // //sprintf(data, "P= %-.3fGeV", p);
544 // //infoCon.push_back(TString(data));
545 // //sprintf(data, "Pt= %-.3fGeV", pt);
546 // //infoCon.push_back(TString(data));
547 // //sprintf(data, "Px= %-.3fGeV", px);
548 // //infoCon.push_back(TString(data));
549 // //sprintf(data, "Py= %-.3fGeV", py);
550 // //infoCon.push_back(TString(data));
551 // //sprintf(data, "Pz= %-.3fGeV", pz);
552 // //infoCon.push_back(TString(data));
553 //}
554
555 // if (GetTofOn()) {
556 // Float_t t = gEvent->GetHeader().GetT();
557
558 // sprintf(data, "tofMin= %-.3fns", t);
559 // infoCon.push_back(TString(data));
560 //}
561
562 // if (GetEmcOn()) {
563 // Float_t e = gEvent->GetHeader().GetE();
564
565 // sprintf(data, "ECal= %-.3fGeV", e);
566 // infoCon.push_back(TString(data));
567 //}
568
569 ////sprintf(data, "MDC Track(GeV): ");
570 ////infoCon.push_back(TString(data));
571 ////sprintf(data, "P1=0.945");
572 ////infoCon.push_back(TString(data));
573 ////sprintf(data, "P2=0.702");
574 ////infoCon.push_back(TString(data));
575 ////sprintf(data, "P3=0.421");
576 ////infoCon.push_back(TString(data));
577 ////sprintf(data, "P4=1.048");
578 ////infoCon.push_back(TString(data));
579
580 ////sprintf(data, "EMC Cluster(MeV):");
581 ////infoCon.push_back(TString(data));
582 ////sprintf(data, "E1=151.91");
583 ////infoCon.push_back(TString(data));
584 ////sprintf(data, "E2=226.00");
585 ////infoCon.push_back(TString(data));
586 ////sprintf(data, "E3=295.91");
587 ////infoCon.push_back(TString(data));
588 ////sprintf(data, "E4=165.27");
589 ////infoCon.push_back(TString(data));
590 ////sprintf(data, "E5=48.68");
591 ////infoCon.push_back(TString(data));
592 ////sprintf(data, "E6=193.98");
593 ////infoCon.push_back(TString(data));
594 Int_t npr;
595 Float_t rowH;
596 Float_t textSize = fTextSizeData;
597 if ( IsVHeader() )
598 {
599 fCoordx = 0.10;
600 fCoordy = 0.35; // Long Peixun's update: 0.70 -> 0.35
601 npr = 1;
602 rowH = 0.04;
603 textSize *= 1.2;
604 }
605 else
606 {
607 fCoordx = 0.02;
608 fCoordy = 0.38; // Long Peixun's update: 0.50 -> 0.38
609 npr = 4;
610 rowH = 0.1;
611 }
612
613 pTrigVector = trigChannelVector.begin();
614 for ( Int_t i = 0; i < (Int_t)infoCon.size(); i++ )
615 {
616 coordx = fCoordx + ( i % npr ) * ( 1.0 / npr );
617 coordy = fCoordy - ( i / npr ) * rowH;
618
619 if ( *pTrigVector == i )
620 {
621 TString temp = infoCon[i] + " ON";
622 TText* tdata = fBesHeader->AddText( coordx, coordy, temp.Data() );
623 tdata->SetTextSize( textSize );
624 tdata->SetTextFont( 62 );
625 tdata->SetTextColor( 2 );
626 tdata->SetTextAlign( 12 );
627 pTrigVector++;
628 }
629 else
630 {
631 TString temp = infoCon[i] + " OFF";
632 TText* tdata = fBesHeader->AddText( coordx, coordy, temp.Data() );
633 tdata->SetTextSize( textSize );
634 tdata->SetTextFont( 62 );
635 tdata->SetTextColor( 1 );
636 tdata->SetTextAlign( 12 );
637 }
638 }
639 }
640
641 fBesHeader->Draw( "same" );
642
643 fPadHeader->SetEditable( kFALSE );
644 fPadHeader->Modified();
645 fPadHeader->Update();
646 fCanvas->cd();
647}
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)
TTree * data
Double_t time
#define min(a, b)

Referenced by Init(), ResizePad(), SetEmcOn(), SetMdcOn(), and SetTofOn().

◆ DrawHeader() [2/3]

virtual void BesVisDisplay::DrawHeader ( )
virtual

◆ DrawHeader() [3/3]

virtual void BesVisDisplay::DrawHeader ( )
virtual

◆ DrawImageSequence() [1/3]

void BesVisDisplay::DrawImageSequence ( Int_t thetaStart,
Int_t thetaStep )

Definition at line 1153 of file BesVisDisplay.cxx.

1153 {
1154 /*
1155 fRayPicCount = 0;
1156 //for(int i = thetaStart; i < thetaStart + 360; i += thetaStep) {
1157 //DrawViewRaytracer(i, 30, 270);
1158 //}
1159 for (int i = 0; i < fTofROOTGeo->GetScinNb(0); i++) {
1160 for (int j=0; j < 20; j++) {
1161 fTofROOTGeo->GetPhysicalScin(1, i*20+j)->SetVisibility(1);
1162 }
1163 DrawViewRaytracer(30, 30, 270);
1164 }
1165 */
1166}

◆ DrawImageSequence() [2/3]

void BesVisDisplay::DrawImageSequence ( Int_t thetaStart,
Int_t thetaStep )

◆ DrawImageSequence() [3/3]

void BesVisDisplay::DrawImageSequence ( Int_t thetaStart,
Int_t thetaStep )

◆ DrawParticles() [1/3]

Bool_t BesVisDisplay::DrawParticles ( )
inline

Definition at line 172 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

172{ return fDrawParticles; }

◆ DrawParticles() [2/3]

Bool_t BesVisDisplay::DrawParticles ( )
inline

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

172{ return fDrawParticles; }

◆ DrawParticles() [3/3]

Bool_t BesVisDisplay::DrawParticles ( )
inline

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

172{ return fDrawParticles; }

◆ DrawParticles2() [1/3]

Bool_t BesVisDisplay::DrawParticles2 ( )
inline

Definition at line 174 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

174{ return fDrawParticles2; }

◆ DrawParticles2() [2/3]

Bool_t BesVisDisplay::DrawParticles2 ( )
inline

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

174{ return fDrawParticles2; }

◆ DrawParticles2() [3/3]

Bool_t BesVisDisplay::DrawParticles2 ( )
inline

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

174{ return fDrawParticles2; }

◆ DrawTitle() [1/3]

void BesVisDisplay::DrawTitle ( Option_t * option = "")
virtual

Definition at line 957 of file BesVisDisplay.cxx.

957 {
958 // Draw the event title
959
960 Float_t xmin = gPad->GetX1();
961 Float_t xmax = gPad->GetX2();
962 Float_t ymin = gPad->GetY1();
963 Float_t ymax = gPad->GetY2();
964 Float_t dx = xmax - xmin;
965 Float_t dy = ymax - ymin;
966 if ( strlen( option ) == 0 )
967 {
968 TPaveText* title =
969 new TPaveText( xmin + 0.01 * dx, ymax - 0.09 * dy, xmin + 0.5 * dx, ymax - 0.01 * dy );
970 title->SetBit( kCanDelete );
971 title->SetFillColor( 42 );
972 title->Draw();
973 char ptitle[100];
974 // sprintf(ptitle,"Pythia event: %d, Run:%d",gBesVisast->Event(), gBesVisast->Run());
975 // sprintf(ptitle,"Monte Carlo event: %d",gBesVisast->Event());
976 sprintf( ptitle, "Monte Carlo event" );
977 title->AddText( ptitle );
978 // sprintf(ptitle,"Pythia Mode: %s",gBesVisast->MCMaker()->GetTitle());
979 // title->AddText(ptitle);
980 }
981 else
982 {
983 TPaveLabel* label = new TPaveLabel( xmin + 0.01 * dx, ymax - 0.07 * dy, xmin + 0.2 * dx,
984 ymax - 0.01 * dy, option );
985 label->SetBit( kCanDelete );
986 label->SetFillColor( 42 );
987 label->Draw();
988 }
989}
titledef title[20]

Referenced by DrawAllViews().

◆ DrawTitle() [2/3]

virtual void BesVisDisplay::DrawTitle ( Option_t * option = "")
virtual

◆ DrawTitle() [3/3]

virtual void BesVisDisplay::DrawTitle ( Option_t * option = "")
virtual

◆ DrawView() [1/3]

void BesVisDisplay::DrawView ( Float_t theta,
Float_t phi )
virtual

Definition at line 992 of file BesVisDisplay.cxx.

992 {
993 // Draw a view of ATLAS
994
995 // fPad3D->SetFillColor(10);
996 // Display ATLAS outline
997 gPad->Clear();
998
999 // TImage *i1 = TImage::Open("rose512.jpg");
1000 // i1->SetConstRatio(kFALSE);
1001 // gPad->cd();
1002 // i1->Draw();
1003
1004 Int_t iret;
1005 BesTView* view = new BesTView( 1 );
1006 view->SetRange( -0.5 * fBesR, -0.5 * fBesR, -0.5 * fBesZ, 0.5 * fBesR, 0.5 * fBesR,
1007 0.5 * fBesZ );
1008 view->ZoomView( gPad, 1.2 );
1009 view->AdjustPad(); // Long Peixun's update: Adjust Pad
1010
1011 // fNodin->Draw("same");
1012 // fBes->Draw("same");
1013 fBesGeometry->Draw( "3D" );
1014
1015 // add itself to the list
1016 // AppendPad();
1017
1018 // Loop on all makers to add their products to the pad
1019 /*
1020 TIter next(gBesVisast->Makers());
1021 BesVisMaker *maker;
1022 while ((maker = (BesVisMaker*)next())) {
1023 maker->Draw();
1024 }
1025 */
1026
1027 // view->SetView(phi, theta, 90, iret); //previous side view necessary
1028 view->SetView( phi, theta, 270, iret );
1029 // view->SetParralel(); //-----------liangyt
1030 view->SetParallel();
1031 // use SetParallel() instead of depreciated function TView::SetParralel()
1032 // changed by tianhl at Mon Aug 20 2007
1033 // view->SetPerspective();
1034 // view->ShowAxis();
1035
1036 // DrawViewRange(0, 0, 0, 2500);
1037}
virtual void ZoomView(TVirtualPad *pad=0, Double_t zoomFactor=1.25)
virtual void SetRange(const Double_t *min, const Double_t *max)
static void AdjustPad(TVirtualPad *pad=0)
virtual void SetParallel()
virtual void SetView(Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep)

Referenced by DrawAllViews().

◆ DrawView() [2/3]

virtual void BesVisDisplay::DrawView ( Float_t theta,
Float_t phi )
virtual

◆ DrawView() [3/3]

virtual void BesVisDisplay::DrawView ( Float_t theta,
Float_t phi )
virtual

◆ DrawViewGL() [1/3]

void BesVisDisplay::DrawViewGL ( )
virtual

Definition at line 1048 of file BesVisDisplay.cxx.

1048 {
1049 // Draw current view using OPENGL
1050
1051 TPad* pad = (TPad*)gPad->GetPadSave();
1052 pad->cd();
1053 TView* view = pad->GetView();
1054 if ( !view ) return;
1055 pad->x3d( "OPENGL" ); //-----------liangyt
1056}

◆ DrawViewGL() [2/3]

virtual void BesVisDisplay::DrawViewGL ( )
virtual

◆ DrawViewGL() [3/3]

virtual void BesVisDisplay::DrawViewGL ( )
virtual

◆ DrawViewRange() [1/3]

void BesVisDisplay::DrawViewRange ( Double_t x0,
Double_t y0,
Double_t z0,
Double_t zoomSize )

Definition at line 1040 of file BesVisDisplay.cxx.

1040 {
1041 // Draw a view of some place
1042
1043 gPad->GetView()->SetRange( x0 - 0.5 * zoomSize, y0 - 0.5 * zoomSize, z0 - 0.5 * zoomSize,
1044 x0 + 0.5 * zoomSize, y0 + 0.5 * zoomSize, z0 + 0.5 * zoomSize );
1045}

◆ DrawViewRange() [2/3]

void BesVisDisplay::DrawViewRange ( Double_t x0,
Double_t y0,
Double_t z0,
Double_t zoomSize )

◆ DrawViewRange() [3/3]

void BesVisDisplay::DrawViewRange ( Double_t x0,
Double_t y0,
Double_t z0,
Double_t zoomSize )

◆ DrawViewRaytracer() [1/3]

void BesVisDisplay::DrawViewRaytracer ( Float_t theta,
Float_t phi,
Float_t psi )
virtual

Definition at line 1070 of file BesVisDisplay.cxx.

1070 {
1071 // TCanvas *rayCanvas = new TCanvas("rayCanvas", "Raytracer Canvas", 10, 10, 800, 800);
1072 TCanvas* rayCanvas = new TCanvas( "rayCanvas", "Raytracer Canvas", 10, 10, 800, 800 );
1073 rayCanvas->cd();
1074
1075 // TPad *rayPad = new TPad("rayPad", "Raytracer display",0.,0.,1,1);
1076 // rayPad->Draw();
1077 // rayPad->Modified();
1078 gPad->SetFillColor( 1 );
1079
1080 // rayPad->SetBorderSize(2);
1081 // rayPad->cd();
1082 // fMucGeo->GetVolMuc()->Draw();
1083 // fBes->Draw();
1084
1085 TView* view = gPad->GetView();
1086 // view->SetPerspective();
1087 int iret;
1088 view->ZoomView( gPad, 1.5 );
1089 view->SetView( phi, theta, psi, iret );
1090 // |
1091 // \|/
1092
1093 // gGeoManager->GetGeomPainter()->SetBombFactors(2, 2, 2, 2);
1094 // gGeoManager->GetGeomPainter()->SetExplodedView(3);
1095
1096 gGeoManager->GetGeomPainter()->SetRaytracing( kTRUE );
1097
1098 rayCanvas->Modified();
1099 rayCanvas->Update();
1100 // rayPad->Modified();
1101 // rayPad->Update();
1102
1103 stringstream sPicCount;
1104 sPicCount << fRayPicCount << ".gif";
1105 string str = sPicCount.str();
1106
1107 gPad->SaveAs( str.c_str() );
1108 fRayPicCount++;
1109}

◆ DrawViewRaytracer() [2/3]

virtual void BesVisDisplay::DrawViewRaytracer ( Float_t theta,
Float_t phi,
Float_t psi )
virtual

◆ DrawViewRaytracer() [3/3]

virtual void BesVisDisplay::DrawViewRaytracer ( Float_t theta,
Float_t phi,
Float_t psi )
virtual

◆ DrawViewX3D() [1/6]

void BesVisDisplay::DrawViewX3D ( )
virtual

Definition at line 1059 of file BesVisDisplay.cxx.

1059 {
1060 // Draw current view using X3D
1061
1062 TPad* pad = (TPad*)gPad->GetPadSave();
1063 pad->cd();
1064 TView* view = pad->GetView();
1065 if ( !view ) return;
1066 pad->x3d(); //-----------liangyt
1067}

◆ DrawViewX3D() [2/6]

virtual void BesVisDisplay::DrawViewX3D ( )
virtual

◆ DrawViewX3D() [3/6]

virtual void BesVisDisplay::DrawViewX3D ( )
virtual

◆ DrawViewX3D() [4/6]

void BesVisDisplay::DrawViewX3D ( char option)
virtual

Definition at line 1111 of file BesVisDisplay.cxx.

1111 {
1112 TCanvas* x3dCanvas = new TCanvas( "x3dCanvas", "X3dtracer Canvas", 10, 10, 800, 800 );
1113 x3dCanvas->cd();
1114
1115 gPad->SetFillColor( 1 );
1116 // x3dPad->SetBorderSize(2);
1117 // x3dPad->cd();
1118
1119 // fBes->Draw("x3d");
1120
1121 // TView *view = gPad->GetView();
1122 // view->SetPerspective();
1123 // int iret;
1124 // view->ZoomView(gPad, 1.2);
1125 // view->SetView(30, 60, 270, iret);
1126
1127 // gPad->x3d();//-----------liangyt
1128 gPad->GetViewer3D();
1129 // use TPad::GetViewer3D() instead of depreciated function TPad::x3d()
1130 // changed by tianhl at Mon Aug 20 2007
1131 // TViewerX3D *x3d = (TViewerX3D*)gPad->GetViewer3D();
1132
1133 // TViewerX3D *x3d = new TViewerX3D(x3dCanvas, "");
1134 // x3d->ExecCommand(0,0,option);
1135
1136 // for (Int_t i=0;i<500;i++) {
1137 // Int_t px = i%500;
1138 // Int_t py = (2*i)%200;
1139 // x3d->ExecCommand(px,py,0); //rotate
1140 // if (i%20 >10) x3d->ExecCommand(px,py,'j'); //zoom
1141 // if (i%20 <10) x3d->ExecCommand(px,py,'k'); //unzoom
1142 // }
1143
1144 stringstream sPicCount;
1145 fRayPicCount = 0;
1146 sPicCount << fRayPicCount << ".gif";
1147 string str = sPicCount.str();
1148
1149 gPad->SaveAs( str.c_str() );
1150 fRayPicCount++;
1151}

◆ DrawViewX3D() [5/6]

virtual void BesVisDisplay::DrawViewX3D ( char option)
virtual

◆ DrawViewX3D() [6/6]

virtual void BesVisDisplay::DrawViewX3D ( char option)
virtual

◆ ExecuteEvent() [1/3]

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

Definition at line 1169 of file BesVisDisplay.cxx.

1169 {
1170 //*-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*
1171 //*-* =========================================
1172
1173 if ( gPad->GetView() ) { gPad->GetView()->ExecuteRotateView( event, px, py ); }
1174}

◆ ExecuteEvent() [2/3]

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

◆ ExecuteEvent() [3/3]

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

◆ GetBesGeometry() [1/3]

BesGeometry * BesVisDisplay::GetBesGeometry ( )
inline

Definition at line 147 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

147{ return fBesGeometry; }

◆ GetBesGeometry() [2/3]

BesGeometry * BesVisDisplay::GetBesGeometry ( )
inline

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

147{ return fBesGeometry; }

◆ GetBesGeometry() [3/3]

BesGeometry * BesVisDisplay::GetBesGeometry ( )
inline

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

147{ return fBesGeometry; }

◆ GetDisplayMode() [1/3]

Int_t BesVisDisplay::GetDisplayMode ( )
inline

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

128{ return fDisplayMode; }

◆ GetDisplayMode() [2/3]

Int_t BesVisDisplay::GetDisplayMode ( )
inline

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

128{ return fDisplayMode; }

◆ GetDisplayMode() [3/3]

Int_t BesVisDisplay::GetDisplayMode ( )
inline

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

128{ return fDisplayMode; }

◆ GetEmcOn() [1/3]

Bool_t BesVisDisplay::GetEmcOn ( )
inline

Definition at line 154 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

154{ return fEmcOn; }

◆ GetEmcOn() [2/3]

Bool_t BesVisDisplay::GetEmcOn ( )
inline

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

154{ return fEmcOn; }

◆ GetEmcOn() [3/3]

Bool_t BesVisDisplay::GetEmcOn ( )
inline

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

154{ return fEmcOn; }

◆ GetEmcROOTGeo() [1/3]

EmcROOTGeo * BesVisDisplay::GetEmcROOTGeo ( )
inline

Definition at line 189 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

189{ return fEmcROOTGeo; }

◆ GetEmcROOTGeo() [2/3]

EmcROOTGeo * BesVisDisplay::GetEmcROOTGeo ( )
inline

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

189{ return fEmcROOTGeo; }

◆ GetEmcROOTGeo() [3/3]

EmcROOTGeo * BesVisDisplay::GetEmcROOTGeo ( )
inline

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

189{ return fEmcROOTGeo; }

◆ GetEvent() [1/3]

void BesVisDisplay::GetEvent ( Long64_t event)
virtual

Definition at line 1177 of file BesVisDisplay.cxx.

1177 {
1178 // Read event in memory
1179
1180 // gBesVisast->GetEvent(event);
1181
1182 // Draw();
1183
1184 // gGeoManager->ClearAttributes();
1189}

◆ GetEvent() [2/3]

virtual void BesVisDisplay::GetEvent ( Long64_t event)
virtual

◆ GetEvent() [3/3]

virtual void BesVisDisplay::GetEvent ( Long64_t event)
virtual

◆ GetMdcOn() [1/3]

Bool_t BesVisDisplay::GetMdcOn ( )
inline

Definition at line 150 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

150{ return fMdcOn; }

◆ GetMdcOn() [2/3]

Bool_t BesVisDisplay::GetMdcOn ( )
inline

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

150{ return fMdcOn; }

◆ GetMdcOn() [3/3]

Bool_t BesVisDisplay::GetMdcOn ( )
inline

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

150{ return fMdcOn; }

◆ GetMdcROOTGeo() [1/3]

MdcROOTGeo * BesVisDisplay::GetMdcROOTGeo ( )
inline

Definition at line 187 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

187{ return fMdcROOTGeo; }

◆ GetMdcROOTGeo() [2/3]

MdcROOTGeo * BesVisDisplay::GetMdcROOTGeo ( )
inline

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

187{ return fMdcROOTGeo; }

◆ GetMdcROOTGeo() [3/3]

MdcROOTGeo * BesVisDisplay::GetMdcROOTGeo ( )
inline

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

187{ return fMdcROOTGeo; }

◆ GetMucROOTGeo() [1/3]

MucROOTGeo * BesVisDisplay::GetMucROOTGeo ( )
inline

Definition at line 190 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

190{ return fMucROOTGeo; }

◆ GetMucROOTGeo() [2/3]

MucROOTGeo * BesVisDisplay::GetMucROOTGeo ( )
inline

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

190{ return fMucROOTGeo; }

◆ GetMucROOTGeo() [3/3]

MucROOTGeo * BesVisDisplay::GetMucROOTGeo ( )
inline

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

190{ return fMucROOTGeo; }

◆ GetPad3D() [1/3]

TPad * BesVisDisplay::GetPad3D ( )
inline

Definition at line 138 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

138{ return fPad3D; }

◆ GetPad3D() [2/3]

TPad * BesVisDisplay::GetPad3D ( )
inline

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

138{ return fPad3D; }

◆ GetPad3D() [3/3]

TPad * BesVisDisplay::GetPad3D ( )
inline

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

138{ return fPad3D; }

◆ GetPadXY() [1/3]

TPad * BesVisDisplay::GetPadXY ( )
inline

Definition at line 136 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

136{ return fPadXY; }

◆ GetPadXY() [2/3]

TPad * BesVisDisplay::GetPadXY ( )
inline

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

136{ return fPadXY; }

◆ GetPadXY() [3/3]

TPad * BesVisDisplay::GetPadXY ( )
inline

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

136{ return fPadXY; }

◆ GetPadZR() [1/3]

TPad * BesVisDisplay::GetPadZR ( )
inline

Definition at line 137 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

137{ return fPadZR; }

◆ GetPadZR() [2/3]

TPad * BesVisDisplay::GetPadZR ( )
inline

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

137{ return fPadZR; }

◆ GetPadZR() [3/3]

TPad * BesVisDisplay::GetPadZR ( )
inline

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

137{ return fPadZR; }

◆ GetTofOn() [1/3]

Bool_t BesVisDisplay::GetTofOn ( )
inline

Definition at line 152 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

152{ return fTofOn; }

◆ GetTofOn() [2/3]

Bool_t BesVisDisplay::GetTofOn ( )
inline

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

152{ return fTofOn; }

◆ GetTofOn() [3/3]

Bool_t BesVisDisplay::GetTofOn ( )
inline

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

152{ return fTofOn; }

◆ GetTofROOTGeo() [1/3]

TofROOTGeo * BesVisDisplay::GetTofROOTGeo ( )
inline

Definition at line 188 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

188{ return fTofROOTGeo; }

◆ GetTofROOTGeo() [2/3]

TofROOTGeo * BesVisDisplay::GetTofROOTGeo ( )
inline

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

188{ return fTofROOTGeo; }

◆ GetTofROOTGeo() [3/3]

TofROOTGeo * BesVisDisplay::GetTofROOTGeo ( )
inline

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

188{ return fTofROOTGeo; }

◆ GetVisHeader() [1/3]

Bool_t BesVisDisplay::GetVisHeader ( ) const
inline

Definition at line 158 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

158{ return fVisHeader; }

◆ GetVisHeader() [2/3]

Bool_t BesVisDisplay::GetVisHeader ( ) const
inline

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

158{ return fVisHeader; }

◆ GetVisHeader() [3/3]

Bool_t BesVisDisplay::GetVisHeader ( ) const
inline

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

158{ return fVisHeader; }

◆ GetVolBes() [1/3]

TGeoVolume * BesVisDisplay::GetVolBes ( )
inline

Definition at line 186 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

186{ return fBes; }

◆ GetVolBes() [2/3]

TGeoVolume * BesVisDisplay::GetVolBes ( )
inline

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

186{ return fBes; }

◆ GetVolBes() [3/3]

TGeoVolume * BesVisDisplay::GetVolBes ( )
inline

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

186{ return fBes; }

◆ Init() [1/3]

void BesVisDisplay::Init ( )

Definition at line 90 of file BesVisDisplay.cxx.

90 {
91 fDisplayMode = 0;
92 // Long Peixun's update: Initialize flag of header visibility
93 fVisHeader = 1;
94 fCanvas->cd();
95 // fCanvas->SetEditable(kFALSE);
96 fCanvas->SetFillColor( 10 );
97
98 // pad 3D
99 fPad3D = new TPad( "Pad3D", "Pad3D", 0.75, 0.75, 0.9, 0.9 );
100 // Long Peixun's update: Back color of 3D view -> White
101 // fPad3D->SetFillColor(TColor::GetColor(204,204,204));
102 // fPad3D->SetFillColor(16);
103 fPad3D->Draw();
104
105 // pad Header
106 fPadHeader = new TPad( "PadHeader", "PadHeader", 0.0, 0.68, 1.0, 1.0 );
107 fPadHeader->Draw();
108 fPadHeader->cd();
109
110 TString fp = gEnv->GetValue( "Root.TTFontPath", "" );
111 TString bc = fp + "/BlackChancery.ttf";
112 TString ar = fp + "/arial.ttf";
113
114 string besvisPath = getenv( "BESVISLIBROOT" );
115 TString filePath( besvisPath );
116 filePath += "/icons/";
117
118 fHeaderHImage = TImage::Open( filePath + "HeaderH.gif" );
119 fHeaderHImage->SetEditable( kTRUE );
120 // fHeaderHImage->Draw("same");
121 fHeaderVImage = TImage::Open( filePath + "HeaderV.gif" );
122 fHeaderVImage->SetEditable( kTRUE );
123 // fHeaderVImage->Draw("same");
124 fHeaderImage = TImage::Open( filePath + "Header.gif" );
125 fHeaderImage->DrawText( 620, 15, "BesVis", 30, gROOT->GetColor( 2 )->AsHexString(), bc,
126 TImage::kShadeBelow );
127 fHeaderImage->SetConstRatio( false );
128 fHeaderImage->Draw( "same" );
129
130 fBesHeader = new BesHeader( 0, 0, 1, 1, "br" );
131 fBesHeader->SetTextSize( 0.1 );
132 fBesHeader->SetFillColor( 28 );
133 fBesHeader->SetFillStyle( 0 );
134 fBesHeader->SetBorderSize( 4 );
135
136 fLatticeWidth = 0.185;
137 fTextSizeTitle = 0.08;
138 fTextSizeTime = 0.07;
139 fTextSizeData = 0.05;
140 fTextSizeFlt = 0.02;
141 fCoordx = 0.01;
142 fCoordy = 0.8;
143 fDistanceOfRows = 0.01;
144
145 fMdcOn = true;
146 fTofOn = true;
147 fEmcOn = true;
148
149 Connect( fBesHeader, "TransferMdcOn(Bool_t)", "BesVisDisplay", this, "SetMdcOn(Bool_t)" );
150 Connect( fBesHeader, "TransferTofOn(Bool_t)", "BesVisDisplay", this, "SetTofOn(Bool_t)" );
151 Connect( fBesHeader, "TransferEmcOn(Bool_t)", "BesVisDisplay", this, "SetEmcOn(Bool_t)" );
152
153 DrawHeader();
154
155 // pad XY
156 fPadXY = new TPad( "PadXY", "PadXY", 0.0, 0.0, 0.5, 0.68 );
157 fPadXY->Draw();
158
159 // pad ZR
160 fPadZR = new TPad( "PadZR", "PadZR", 0.5, 0.0, 1.0, 0.68 );
161 fPadZR->Draw();
162
163 /*
164 fPad3D->SetBorderMode(0);
165 fPad3D->SetBorderSize(3);
166 fPadHeader->SetBorderMode(1);
167 fPadHeader->SetBorderSize(3);
168 fPadXY->SetBorderMode(2);
169 fPadXY->SetBorderSize(3);
170 fPadZR->SetBorderMode(3);
171 fPadZR->SetBorderSize(3);
172 */
173}
virtual void DrawHeader()

◆ Init() [2/3]

void BesVisDisplay::Init ( )

◆ Init() [3/3]

void BesVisDisplay::Init ( )

◆ InitGeometryFromGDML() [1/3]

void BesVisDisplay::InitGeometryFromGDML ( const TString fPath,
bool mrpc = false,
bool cgem = false )
virtual

Definition at line 227 of file BesVisDisplay.cxx.

227 {
228 if ( gBesGeometry ) delete gBesGeometry;
229 fBesGeometry = new BesGeometry();
230 gBesGeometry = fBesGeometry;
231 fBesGeometry->InitFromGDML( fPath, mrpc, cgem );
232 fBesGeometry->SetDefaultVis();
233
234 // should be deleted after BesView completed;
235 fMdcROOTGeo = fBesGeometry->GetMdcROOTGeo(); // here liang
236 fTofROOTGeo = fBesGeometry->GetTofROOTGeo(); // here liang
237 fEmcROOTGeo = fBesGeometry->GetEmcROOTGeo(); // here liang
238 fMucROOTGeo = fBesGeometry->GetMucROOTGeo();
239}
R__EXTERN BesGeometry * gBesGeometry
virtual void InitFromGDML(const TString fPath, bool mrpc=false, bool cgem=false)

◆ InitGeometryFromGDML() [2/3]

virtual void BesVisDisplay::InitGeometryFromGDML ( const TString fPath,
bool mrpc = false,
bool cgem = false )
virtual

◆ InitGeometryFromGDML() [3/3]

virtual void BesVisDisplay::InitGeometryFromGDML ( const TString fPath,
bool mrpc = false,
bool cgem = false )
virtual

◆ InitGeometryFromROOT() [1/3]

void BesVisDisplay::InitGeometryFromROOT ( TGeoVolume * bes)
virtual

Definition at line 243 of file BesVisDisplay.cxx.

243 {
244 if ( gBesGeometry ) delete gBesGeometry;
245 fBesGeometry = new BesGeometry();
246 gBesGeometry = fBesGeometry;
247 fBesGeometry->InitFromROOT( volBes );
248
249 // should be deleted after BesView completed;
250 fMdcROOTGeo = fBesGeometry->GetMdcROOTGeo();
251 fTofROOTGeo = fBesGeometry->GetTofROOTGeo();
252 fEmcROOTGeo = fBesGeometry->GetEmcROOTGeo();
253 fMucROOTGeo = fBesGeometry->GetMucROOTGeo();
254}
virtual void InitFromROOT(TGeoVolume *volBes)

◆ InitGeometryFromROOT() [2/3]

virtual void BesVisDisplay::InitGeometryFromROOT ( TGeoVolume * bes)
virtual

◆ InitGeometryFromROOT() [3/3]

virtual void BesVisDisplay::InitGeometryFromROOT ( TGeoVolume * bes)
virtual

◆ IsVHeader() [1/3]

Bool_t BesVisDisplay::IsVHeader ( )
inline

Definition at line 129 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

129 {
130 if ( fDisplayMode == 0 || fDisplayMode == 4 ) return false;
131 else return true;
132 }

Referenced by DrawHeader().

◆ IsVHeader() [2/3]

Bool_t BesVisDisplay::IsVHeader ( )
inline

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

129 {
130 if ( fDisplayMode == 0 || fDisplayMode == 4 ) return false;
131 else return true;
132 }

◆ IsVHeader() [3/3]

Bool_t BesVisDisplay::IsVHeader ( )
inline

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

129 {
130 if ( fDisplayMode == 0 || fDisplayMode == 4 ) return false;
131 else return true;
132 }

◆ Pad() [1/3]

TPad * BesVisDisplay::Pad ( )
inline

Definition at line 194 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

194{ return fPad; }

◆ Pad() [2/3]

TPad * BesVisDisplay::Pad ( )
inline

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

194{ return fPad; }

◆ Pad() [3/3]

TPad * BesVisDisplay::Pad ( )
inline

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

194{ return fPad; }

◆ Paint() [1/3]

void BesVisDisplay::Paint ( Option_t * option = "")
virtual

Definition at line 1192 of file BesVisDisplay.cxx.

1192 {
1193 // Paint miscellaneous items
1194}

◆ Paint() [2/3]

virtual void BesVisDisplay::Paint ( Option_t * option = "")
virtual

◆ Paint() [3/3]

virtual void BesVisDisplay::Paint ( Option_t * option = "")
virtual

◆ PaintFruit() [1/3]

void BesVisDisplay::PaintFruit ( TObject * obj,
Float_t eta,
Float_t phi,
Float_t pt,
Int_t type,
Option_t * option = "" )
virtual

Definition at line 1197 of file BesVisDisplay.cxx.

1198 {
1199 // Display fruit from obj
1200 /*
1201 if (fDrawClusters) {
1202 if (!fFruits) fFruits = new TList();
1203 BesVisFruit *fruit = new BesVisFruit(obj, eta, phi, pt, type);
1204 fFruits->Add(fruit);
1205 fruit->Paint(option);
1206 }
1207 */
1208}

◆ PaintFruit() [2/3]

virtual void BesVisDisplay::PaintFruit ( TObject * obj,
Float_t eta,
Float_t phi,
Float_t pt,
Int_t type,
Option_t * option = "" )
virtual

◆ PaintFruit() [3/3]

virtual void BesVisDisplay::PaintFruit ( TObject * obj,
Float_t eta,
Float_t phi,
Float_t pt,
Int_t type,
Option_t * option = "" )
virtual

◆ PaintParticles() [1/3]

void BesVisDisplay::PaintParticles ( Option_t * option = "")
virtual

Definition at line 1211 of file BesVisDisplay.cxx.

1211 {
1212 // if (fDrawParticles) fParticle->Paint(option);
1213}

◆ PaintParticles() [2/3]

virtual void BesVisDisplay::PaintParticles ( Option_t * option = "")
virtual

◆ PaintParticles() [3/3]

virtual void BesVisDisplay::PaintParticles ( Option_t * option = "")
virtual

◆ PTcut() [1/3]

Float_t BesVisDisplay::PTcut ( )
inline

Definition at line 200 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

200{ return fPTcut; }

◆ PTcut() [2/3]

Float_t BesVisDisplay::PTcut ( )
inline

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

200{ return fPTcut; }

◆ PTcut() [3/3]

Float_t BesVisDisplay::PTcut ( )
inline

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

200{ return fPTcut; }

◆ PTcutEGMUNU() [1/3]

Float_t BesVisDisplay::PTcutEGMUNU ( )
inline

Definition at line 201 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

201{ return fPTcutEGMUNU; }

◆ PTcutEGMUNU() [2/3]

Float_t BesVisDisplay::PTcutEGMUNU ( )
inline

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

201{ return fPTcutEGMUNU; }

◆ PTcutEGMUNU() [3/3]

Float_t BesVisDisplay::PTcutEGMUNU ( )
inline

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

201{ return fPTcutEGMUNU; }

◆ Refresh() [1/3]

void BesVisDisplay::Refresh ( )
virtual

Definition at line 202 of file BesVisDisplay.cxx.

202 {
203 if ( fPadXY )
204 {
205 fPadXY->cd();
206 BesView* view = dynamic_cast<BesView*>( fPadXY->GetView() );
207 if ( view ) view->Refresh();
208 }
209 if ( fPadZR )
210 {
211 fPadZR->cd();
212 BesView* view = dynamic_cast<BesView*>( fPadZR->GetView() );
213 if ( view ) view->Refresh();
214 }
215 if ( fPad3D )
216 {
217 fPad3D->cd();
218 BesView* view = dynamic_cast<BesView*>( fPad3D->GetView() );
219 if ( view ) view->Refresh();
220 }
221
222 SwitchDisplayMode( fDisplayMode );
223}
void Refresh()
Definition BesView.cxx:921

◆ Refresh() [2/3]

virtual void BesVisDisplay::Refresh ( )
virtual

◆ Refresh() [3/3]

virtual void BesVisDisplay::Refresh ( )
virtual

◆ Reset() [1/3]

void BesVisDisplay::Reset ( )
virtual

Definition at line 177 of file BesVisDisplay.cxx.

177 {
178 if ( fPadXY )
179 {
180 fPadXY->cd();
181 BesView* view = dynamic_cast<BesView*>( fPadXY->GetView() );
182 if ( view ) view->Reset();
183 }
184 if ( fPadZR )
185 {
186 fPadZR->cd();
187 BesView* view = dynamic_cast<BesView*>( fPadZR->GetView() );
188 if ( view ) view->Reset();
189 }
190 if ( fPad3D )
191 {
192 fPad3D->cd();
193 BesView* view = dynamic_cast<BesView*>( fPad3D->GetView() );
194 if ( view ) view->Reset();
195 }
196
197 SwitchDisplayMode( fDisplayMode );
198}
void Reset()
Definition BesView.cxx:900

◆ Reset() [2/3]

virtual void BesVisDisplay::Reset ( )
virtual

◆ Reset() [3/3]

virtual void BesVisDisplay::Reset ( )
virtual

◆ ResizePad() [1/3]

void BesVisDisplay::ResizePad ( )
virtual

Definition at line 682 of file BesVisDisplay.cxx.

682 {
683 fCanvas->cd();
684 Double_t xlowH = 0.09, xupH = 0.1, ylowH = 0.09, yupH = 0.1;
685 Int_t width = fCanvas->GetWw();
686 Int_t height = fCanvas->GetWh();
687 Double_t hVSw = Double_t( height ) / width;
688 Double_t x2D = 1.0 - hVSw;
689 // cout << "Canvas width " << width << " height " << height << " x2D " << x2D << endl;
690 Double_t y2D = 0.5 / hVSw;
691 Double_t x3D = ( 1.0 / 3 ) / hVSw;
692
693 switch ( fDisplayMode )
694 {
695 case 0: // 2D XY+ZR
696 fPadHeader->SetPad( 0.0, y2D, 1.0, 1.0 );
697 fPadXY->SetPad( 0.0, 0.0, 0.5, y2D );
698 fPadZR->SetPad( 0.5, 0.0, 1.0, y2D );
699 fPad3D->SetPad( xlowH, ylowH, xupH, yupH );
700 break;
701 case 1: // 2D XY
702 fPadHeader->SetPad( 0.0, 0.0, x2D, 1.0 );
703 fPadXY->SetPad( x2D, 0.0, 1.0, 1.0 );
704 fPadZR->SetPad( xlowH, ylowH, xupH, yupH );
705 fPad3D->SetPad( xlowH, ylowH, xupH, yupH );
706 break;
707 case 2: // 2D ZR
708 fPadHeader->SetPad( 0.0, 0.0, x2D, 1.0 );
709 fPadXY->SetPad( xlowH, ylowH, xupH, yupH );
710 fPadZR->SetPad( x2D, 0.0, 1.0, 1.0 );
711 fPad3D->SetPad( xlowH, ylowH, xupH, yupH );
712 break;
713 case 3: // 3D
714 fPadHeader->SetPad( 0.0, 0.0, x2D, 1.0 );
715 fPadXY->SetPad( xlowH, ylowH, xupH, yupH );
716 fPadZR->SetPad( xlowH, ylowH, xupH, yupH );
717 fPad3D->SetPad( x2D, 0.0, 1.0, 1.0 );
718 break;
719 case 4: // 2D+3D
720 // fPadHeader->SetPad(xlowH, ylowH, xupH, yupH);
721 fPadHeader->SetPad( 0.0, 2 * x3D, 1.0, 1.0 );
722 fPadXY->SetPad( 0.0, x3D, 1.0 / 3, 2 * x3D );
723 fPadZR->SetPad( 0.0, 0.0, 1.0 / 3, x3D );
724 fPad3D->SetPad( 1.0 / 3, 0.0, 1.0, 2 * x3D );
725 break;
726 default: return;
727 }
728
729 // Long Peixun's update: Add Header visibility control
730 if ( !fVisHeader ) fPadHeader->SetPad( xlowH * 10, ylowH * 10, xupH * 10, yupH * 10 );
731
732 // fPadHeader->Update();
733 DrawHeader();
734
735 switch ( fDisplayMode )
736 {
737 case 0: // 2D XY+ZR
738 fPadXY->cd();
739 fPadXY->Update();
740 fPadZR->Update();
741 break;
742 case 1: // 2D XY
743 fPadXY->cd();
744 fPadXY->Update();
745 break;
746 case 2: // 2D ZR
747 fPadZR->cd();
748 fPadZR->Update();
749 break;
750 case 3: // 3D
751 fPad3D->cd();
752 fPad3D->Update();
753 break;
754 case 4: // 2D+3D
755 fPad3D->cd();
756 fPad3D->Update();
757 break;
758 // Long Peixun's update: remove useless code
759 }
760}

Referenced by SetVisHeader(), and SwitchDisplayMode().

◆ ResizePad() [2/3]

virtual void BesVisDisplay::ResizePad ( )
virtual

◆ ResizePad() [3/3]

virtual void BesVisDisplay::ResizePad ( )
virtual

◆ Rin() [1/3]

Float_t BesVisDisplay::Rin ( )
inline

Definition at line 202 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

202{ return fRin; }

◆ Rin() [2/3]

Float_t BesVisDisplay::Rin ( )
inline

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

202{ return fRin; }

◆ Rin() [3/3]

Float_t BesVisDisplay::Rin ( )
inline

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

202{ return fRin; }

◆ Rout() [1/3]

Float_t BesVisDisplay::Rout ( )
inline

Definition at line 203 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

203{ return fRout; }

◆ Rout() [2/3]

Float_t BesVisDisplay::Rout ( )
inline

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

203{ return fRout; }

◆ Rout() [3/3]

Float_t BesVisDisplay::Rout ( )
inline

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

203{ return fRout; }

◆ SetAllVisible() [1/3]

void BesVisDisplay::SetAllVisible ( Int_t vis)
inline

Definition at line 215 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

215{ fAllVis = vis; }

◆ SetAllVisible() [2/3]

void BesVisDisplay::SetAllVisible ( Int_t vis)
inline

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

215{ fAllVis = vis; }

◆ SetAllVisible() [3/3]

void BesVisDisplay::SetAllVisible ( Int_t vis)
inline

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

215{ fAllVis = vis; }

◆ SetCanvas() [1/3]

void BesVisDisplay::SetCanvas ( TCanvas * c = 0)
virtual

Definition at line 85 of file BesVisDisplay.cxx.

85 {
86 if ( c != 0 ) { fCanvas = c; }
87 else { fCanvas = new TCanvas( "Canvas", " ", 0, 0, 1024, 768 ); }
88}

◆ SetCanvas() [2/3]

virtual void BesVisDisplay::SetCanvas ( TCanvas * c = 0)
virtual

◆ SetCanvas() [3/3]

virtual void BesVisDisplay::SetCanvas ( TCanvas * c = 0)
virtual

◆ SetDisplayMode() [1/3]

void BesVisDisplay::SetDisplayMode ( Int_t mode)
inline

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

127{ fDisplayMode = mode; }

Referenced by SwitchDisplayMode().

◆ SetDisplayMode() [2/3]

void BesVisDisplay::SetDisplayMode ( Int_t mode)
inline

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

127{ fDisplayMode = mode; }

◆ SetDisplayMode() [3/3]

void BesVisDisplay::SetDisplayMode ( Int_t mode)
inline

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

127{ fDisplayMode = mode; }

◆ SetDrawClusters() [1/3]

virtual void BesVisDisplay::SetDrawClusters ( Bool_t draw = kTRUE)
inlinevirtual

Definition at line 204 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

204{ fDrawClusters = draw; } // *MENU*

◆ SetDrawClusters() [2/3]

virtual void BesVisDisplay::SetDrawClusters ( Bool_t draw = kTRUE)
inlinevirtual

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

204{ fDrawClusters = draw; } // *MENU*

◆ SetDrawClusters() [3/3]

virtual void BesVisDisplay::SetDrawClusters ( Bool_t draw = kTRUE)
inlinevirtual

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

204{ fDrawClusters = draw; } // *MENU*

◆ SetDrawParticles() [1/3]

virtual void BesVisDisplay::SetDrawParticles ( Bool_t draw = kTRUE)
inlinevirtual

Definition at line 205 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

205{ fDrawParticles = draw; } // *MENU*

◆ SetDrawParticles() [2/3]

virtual void BesVisDisplay::SetDrawParticles ( Bool_t draw = kTRUE)
inlinevirtual

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

205{ fDrawParticles = draw; } // *MENU*

◆ SetDrawParticles() [3/3]

virtual void BesVisDisplay::SetDrawParticles ( Bool_t draw = kTRUE)
inlinevirtual

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

205{ fDrawParticles = draw; } // *MENU*

◆ SetEmcCon() [1/3]

void BesVisDisplay::SetEmcCon ( Int_t emcCon)
inline

Definition at line 213 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

213{ fEmcCon = emcCon; }

◆ SetEmcCon() [2/3]

void BesVisDisplay::SetEmcCon ( Int_t emcCon)
inline

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

213{ fEmcCon = emcCon; }

◆ SetEmcCon() [3/3]

void BesVisDisplay::SetEmcCon ( Int_t emcCon)
inline

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

213{ fEmcCon = emcCon; }

◆ SetEmcFiredCell() [1/3]

void BesVisDisplay::SetEmcFiredCell ( )

Definition at line 1333 of file BesVisDisplay.cxx.

1333 {
1334 int theta[26] = { 3, 3, 2, 9, 9, 8, 5, 7, 6, 10, 10, 7, 8,
1335 9, 9, 9, 37, 2, 7, 7, 4, 4, 5, 5, 15, 15 };
1336 int phi[26] = { 45, 46, 46, 80, 81, 80, 83, 81, 81, 81, 80, 80, 81,
1337 82, 83, 84, 17, 84, 77, 78, 79, 80, 80, 79, 31, 32 };
1338
1339 for ( int i = 0; i < 26; i++ )
1340 {
1341 fEmcROOTGeo->GetPhysicalCrystal( 1, phi[i], theta[i] )->SetVisibility( 1 );
1342 std::cout << "1"
1343 << " " << phi[i] << " " << theta[i] << std::endl;
1344 }
1345}

Referenced by GetEvent().

◆ SetEmcFiredCell() [2/3]

void BesVisDisplay::SetEmcFiredCell ( )

◆ SetEmcFiredCell() [3/3]

void BesVisDisplay::SetEmcFiredCell ( )

◆ SetEmcOn() [1/3]

void BesVisDisplay::SetEmcOn ( Bool_t EmcOn)
virtual

Definition at line 667 of file BesVisDisplay.cxx.

667 {
668 fEmcOn = EmcOn;
669 // fBesHeader->SetEmcOn(EmcOn);
670 DrawHeader();
671}

◆ SetEmcOn() [2/3]

virtual void BesVisDisplay::SetEmcOn ( Bool_t EmcOn)
virtual

◆ SetEmcOn() [3/3]

virtual void BesVisDisplay::SetEmcOn ( Bool_t EmcOn)
virtual

◆ SetHalfVisible() [1/3]

void BesVisDisplay::SetHalfVisible ( Int_t vis)
inline

Definition at line 217 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

217{ fHalfVis = vis; }

◆ SetHalfVisible() [2/3]

void BesVisDisplay::SetHalfVisible ( Int_t vis)
inline

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

217{ fHalfVis = vis; }

◆ SetHalfVisible() [3/3]

void BesVisDisplay::SetHalfVisible ( Int_t vis)
inline

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

217{ fHalfVis = vis; }

◆ SetMdcCon() [1/3]

void BesVisDisplay::SetMdcCon ( Int_t mdcCon)
inline

Definition at line 211 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

211{ fMdcCon = mdcCon; }

◆ SetMdcCon() [2/3]

void BesVisDisplay::SetMdcCon ( Int_t mdcCon)
inline

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

211{ fMdcCon = mdcCon; }

◆ SetMdcCon() [3/3]

void BesVisDisplay::SetMdcCon ( Int_t mdcCon)
inline

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

211{ fMdcCon = mdcCon; }

◆ SetMdcFiredCell() [1/3]

void BesVisDisplay::SetMdcFiredCell ( )

Definition at line 1289 of file BesVisDisplay.cxx.

1289 {
1290 int layer[135] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
1291 17, 18, 19, 19, 20, 21, 22, 22, 23, 24, 25, 26, 27, 28, 29, 29, 30,
1292 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 41, 42, 0, 1, 2, 3,
1293 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
1294 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
1295 37, 38, 39, 40, 41, 42, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
1296 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
1297 28, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42 };
1298 int replica[135] = {
1299 12, 13, 14, 17, 19, 23, 25, 25, 25, 26, 29, 30, 33, 34, 38, 38, 44,
1300 44, 48, 48, 49, 51, 52, 51, 52, 52, 62, 63, 63, 63, 68, 68, 69, 68,
1301 69, 79, 80, 79, 80, 91, 91, 91, 92, 103, 103, 104, 103, 4, 7, 9, 4,
1302 9, 4, 9, 9, 8, 8, 55, 56, 63, 64, 71, 71, 82, 82, 89, 90, 99,
1303 100, 99, 100, 120, 120, 120, 120, 130, 131, 130, 131, 151, 151, 151, 151, 166, 166,
1304 167, 166, 167, 187, 188, 188, 7, 9, 9, 12, 13, 15, 16, 17, 17, 17, 20,
1305 20, 22, 23, 25, 26, 29, 30, 32, 33, 34, 35, 34, 35, 42, 42, 42, 42,
1306 45, 46, 46, 46, 46, 53, 54, 53, 54, 61, 62, 61, 62, 69, 70, 70 };
1307
1308 for ( int i = 0; i < 135; i++ )
1309 {
1310 fMdcROOTGeo->GetPhysicalReplica( layer[i], replica[i] )->SetVisibility( 1 );
1311 if ( layer[i] > 35 )
1312 fMdcROOTGeo->GetPhysicalReplica( layer[i] + 7, replica[i] )->SetVisibility( 1 );
1313 std::cout << layer[i] << " " << replica[i] << std::endl;
1314 }
1315}

Referenced by GetEvent().

◆ SetMdcFiredCell() [2/3]

void BesVisDisplay::SetMdcFiredCell ( )

◆ SetMdcFiredCell() [3/3]

void BesVisDisplay::SetMdcFiredCell ( )

◆ SetMdcOn() [1/3]

void BesVisDisplay::SetMdcOn ( Bool_t MdcOn)
virtual

Definition at line 651 of file BesVisDisplay.cxx.

651 {
652 fMdcOn = MdcOn;
653 // fBesHeader->SetMdcOn(MdcOn);
654 DrawHeader();
655}

◆ SetMdcOn() [2/3]

virtual void BesVisDisplay::SetMdcOn ( Bool_t MdcOn)
virtual

◆ SetMdcOn() [3/3]

virtual void BesVisDisplay::SetMdcOn ( Bool_t MdcOn)
virtual

◆ SetMucCon() [1/3]

void BesVisDisplay::SetMucCon ( Int_t mucCon)
inline

Definition at line 214 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

214{ fMucCon = mucCon; }

◆ SetMucCon() [2/3]

void BesVisDisplay::SetMucCon ( Int_t mucCon)
inline

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

214{ fMucCon = mucCon; }

◆ SetMucCon() [3/3]

void BesVisDisplay::SetMucCon ( Int_t mucCon)
inline

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

214{ fMucCon = mucCon; }

◆ SetMucFiredCell() [1/3]

void BesVisDisplay::SetMucFiredCell ( )

Definition at line 1348 of file BesVisDisplay.cxx.

1348 {
1349 vector<int> cellCon;
1350
1351 int part[11] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
1352 int seg[11] = { 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 2 };
1353 int gap[11] = { 0, 1, 0, 1, 2, 2, 3, 4, 5, 6, 7 };
1354 int strip[11] = { 2, 20, 20, 29, 21, 22, 27, 25, 25, 30, 22 };
1355
1356 for ( int i = 0; i < 11; i++ )
1357 {
1358 fMucROOTGeo->GetPhysicalStrip( part[i], seg[i], gap[i], strip[i] )->SetVisibility( 1 );
1359 std::cout << " " << part[i] << " " << seg[i] << " " << gap[i] << " " << strip[i]
1360 << std::endl;
1361 }
1362}

Referenced by GetEvent().

◆ SetMucFiredCell() [2/3]

void BesVisDisplay::SetMucFiredCell ( )

◆ SetMucFiredCell() [3/3]

void BesVisDisplay::SetMucFiredCell ( )

◆ SetNoEndVisible() [1/3]

void BesVisDisplay::SetNoEndVisible ( Int_t vis)
inline

Definition at line 218 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

218{ fNoEndVis = vis; }

◆ SetNoEndVisible() [2/3]

void BesVisDisplay::SetNoEndVisible ( Int_t vis)
inline

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

218{ fNoEndVis = vis; }

◆ SetNoEndVisible() [3/3]

void BesVisDisplay::SetNoEndVisible ( Int_t vis)
inline

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

218{ fNoEndVis = vis; }

◆ SetPTcut() [1/3]

void BesVisDisplay::SetPTcut ( Float_t ptcut = 0.4)
virtual

Definition at line 1216 of file BesVisDisplay.cxx.

1216 {
1217 fPTcut = ptcut;
1218
1219 if ( fDrawAllViews )
1220 {
1221 fPad->cd( 1 );
1222 gPad->Modified();
1223 fPad->cd( 2 );
1224 gPad->Modified();
1225 fPad->cd( 3 );
1226 gPad->Modified();
1227 fPad->cd( 4 );
1228 gPad->Modified();
1229 fPad->cd();
1230 }
1231}

◆ SetPTcut() [2/3]

virtual void BesVisDisplay::SetPTcut ( Float_t ptcut = 0.4)
virtual

◆ SetPTcut() [3/3]

virtual void BesVisDisplay::SetPTcut ( Float_t ptcut = 0.4)
virtual

◆ SetPTcutEGMUNU() [1/3]

void BesVisDisplay::SetPTcutEGMUNU ( Float_t ptcut = 5)
virtual

Definition at line 1234 of file BesVisDisplay.cxx.

1234 {
1235 fPTcutEGMUNU = ptcut;
1236
1237 if ( fDrawAllViews )
1238 {
1239 fPad->cd( 1 );
1240 gPad->Modified();
1241 fPad->cd( 2 );
1242 gPad->Modified();
1243 fPad->cd( 3 );
1244 gPad->Modified();
1245 fPad->cd( 4 );
1246 gPad->Modified();
1247 fPad->cd();
1248 }
1249}

◆ SetPTcutEGMUNU() [2/3]

virtual void BesVisDisplay::SetPTcutEGMUNU ( Float_t ptcut = 5)
virtual

◆ SetPTcutEGMUNU() [3/3]

virtual void BesVisDisplay::SetPTcutEGMUNU ( Float_t ptcut = 5)
virtual

◆ SetQuarterVisible() [1/3]

void BesVisDisplay::SetQuarterVisible ( Int_t vis)
inline

Definition at line 216 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

216{ fQuarterVis = vis; }

◆ SetQuarterVisible() [2/3]

void BesVisDisplay::SetQuarterVisible ( Int_t vis)
inline

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

216{ fQuarterVis = vis; }

◆ SetQuarterVisible() [3/3]

void BesVisDisplay::SetQuarterVisible ( Int_t vis)
inline

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

216{ fQuarterVis = vis; }

◆ SetTofCon() [1/3]

void BesVisDisplay::SetTofCon ( Int_t tofCon)
inline

Definition at line 212 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

212{ fTofCon = tofCon; }

◆ SetTofCon() [2/3]

void BesVisDisplay::SetTofCon ( Int_t tofCon)
inline

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

212{ fTofCon = tofCon; }

◆ SetTofCon() [3/3]

void BesVisDisplay::SetTofCon ( Int_t tofCon)
inline

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

212{ fTofCon = tofCon; }

◆ SetTofFiredCell() [1/3]

void BesVisDisplay::SetTofFiredCell ( )

Definition at line 1318 of file BesVisDisplay.cxx.

1318 {
1319 int part[7] = {
1320 1, 1, 1, 2, 2, 1, 1,
1321 };
1322 int scin[7] = { 31, 32, 57, 31, 32, 59, 21 };
1323
1324 std::cout << "set tof fired cell" << std::endl;
1325 for ( int i = 0; i < 7; i++ )
1326 {
1327 fTofROOTGeo->GetPhysicalScin( part[i], 0, scin[i] )->SetVisibility( 1 );
1328 std::cout << part[i] << " " << scin[i] << std::endl;
1329 }
1330}

Referenced by GetEvent().

◆ SetTofFiredCell() [2/3]

void BesVisDisplay::SetTofFiredCell ( )

◆ SetTofFiredCell() [3/3]

void BesVisDisplay::SetTofFiredCell ( )

◆ SetTofOn() [1/3]

void BesVisDisplay::SetTofOn ( Bool_t TofOn)
virtual

Definition at line 659 of file BesVisDisplay.cxx.

659 {
660 fTofOn = TofOn;
661 // fBesHeader->SetTofOn(TofOn);
662 DrawHeader();
663}

◆ SetTofOn() [2/3]

virtual void BesVisDisplay::SetTofOn ( Bool_t TofOn)
virtual

◆ SetTofOn() [3/3]

virtual void BesVisDisplay::SetTofOn ( Bool_t TofOn)
virtual

◆ SetView() [1/3]

void BesVisDisplay::SetView ( Float_t theta,
Float_t phi )
virtual

Definition at line 1252 of file BesVisDisplay.cxx.

1252 {
1253 // change viewing angles for current event
1254
1255 fPad->cd();
1256 fDrawAllViews = kFALSE;
1257 fPhi = phi;
1258 fTheta = theta;
1259 Int_t iret;
1260
1261 TView* view = gPad->GetView();
1262 if ( view ) view->SetView( fPhi, fTheta, 0, iret );
1263 else Draw();
1264
1265 gPad->Modified();
1266}
legend Draw()

◆ SetView() [2/3]

virtual void BesVisDisplay::SetView ( Float_t theta,
Float_t phi )
virtual

◆ SetView() [3/3]

virtual void BesVisDisplay::SetView ( Float_t theta,
Float_t phi )
virtual

◆ SetVisHeader() [1/3]

void BesVisDisplay::SetVisHeader ( Bool_t val)
virtual

Definition at line 1386 of file BesVisDisplay.cxx.

1386 {
1387 fVisHeader = val;
1388 ResizePad();
1389}
virtual void ResizePad()

◆ SetVisHeader() [2/3]

virtual void BesVisDisplay::SetVisHeader ( Bool_t val)
virtual

◆ SetVisHeader() [3/3]

virtual void BesVisDisplay::SetVisHeader ( Bool_t val)
virtual

◆ ShowNextEvent() [1/3]

void BesVisDisplay::ShowNextEvent ( Int_t delta = 1)
virtual

Definition at line 1269 of file BesVisDisplay.cxx.

1269 {
1270 // Display (current event_number+delta)
1271 // delta = 1 shown next event
1272 // delta = -1 show previous event
1273
1274 // fTheta += 10;
1275 // fPhi += 10;
1276 if ( delta )
1277 {
1278 // gBesVisast->Clear();
1279 // Int_t current_event = gBesVisast->Event();
1280 // Int_t new_event = current_event + delta;
1281 // gBesVisast->GetEvent(new_event);
1282 // GetEvent(new_event);
1283 }
1284 fPad->cd();
1285 Draw();
1286}

◆ ShowNextEvent() [2/3]

virtual void BesVisDisplay::ShowNextEvent ( Int_t delta = 1)
virtual

◆ ShowNextEvent() [3/3]

virtual void BesVisDisplay::ShowNextEvent ( Int_t delta = 1)
virtual

◆ SizeFruit() [1/3]

void BesVisDisplay::SizeFruit ( ) const
virtual

Definition at line 1365 of file BesVisDisplay.cxx.

1365 {
1366 const Int_t npoints = 2;
1367 gSize3D.numPoints += npoints;
1368 gSize3D.numSegs += ( npoints - 1 );
1369 gSize3D.numPolys += 0;
1370}

◆ SizeFruit() [2/3]

virtual void BesVisDisplay::SizeFruit ( ) const
virtual

◆ SizeFruit() [3/3]

virtual void BesVisDisplay::SizeFruit ( ) const
virtual

◆ SizeParticles() [1/3]

void BesVisDisplay::SizeParticles ( ) const
virtual

Definition at line 1373 of file BesVisDisplay.cxx.

1373 {
1374 // if (fDrawParticles) fParticle->SizeParticles();
1375 // printf("numPoints=%d, numSegs=%d,
1376 // numPolys=%d\n",gSize3D.numPoints,gSize3D.numSegs,gSize3D.numPolys);
1377}

◆ SizeParticles() [2/3]

virtual void BesVisDisplay::SizeParticles ( ) const
virtual

◆ SizeParticles() [3/3]

virtual void BesVisDisplay::SizeParticles ( ) const
virtual

◆ SwitchDisplayMode() [1/3]

void BesVisDisplay::SwitchDisplayMode ( Int_t mode)
virtual

Definition at line 675 of file BesVisDisplay.cxx.

675 {
676 SetDisplayMode( mode );
677 ResizePad();
678 fCanvas->Update();
679}

Referenced by Draw(), Refresh(), and Reset().

◆ SwitchDisplayMode() [2/3]

virtual void BesVisDisplay::SwitchDisplayMode ( Int_t mode)
virtual

◆ SwitchDisplayMode() [3/3]

virtual void BesVisDisplay::SwitchDisplayMode ( Int_t mode)
virtual

◆ SwitchPad() [1/3]

void BesVisDisplay::SwitchPad ( )
virtual

Definition at line 762 of file BesVisDisplay.cxx.

762 {
763 if ( fDisplayMode == 0 )
764 {
765 if ( (TPad*)gPad == fPadXY ) fPadZR->cd();
766 else fPadXY->cd();
767 }
768
769 if ( fDisplayMode == 4 )
770 {
771 if ( (TPad*)gPad == fPadXY ) fPadZR->cd();
772 else if ( (TPad*)gPad == fPadZR ) fPad3D->cd();
773 else fPadXY->cd();
774 }
775
776 fCanvas->Update();
777}

◆ SwitchPad() [2/3]

virtual void BesVisDisplay::SwitchPad ( )
virtual

◆ SwitchPad() [3/3]

virtual void BesVisDisplay::SwitchPad ( )
virtual

◆ Zin() [1/3]

Float_t BesVisDisplay::Zin ( )
inline

Definition at line 226 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

226{ return fZin; }

◆ Zin() [2/3]

Float_t BesVisDisplay::Zin ( )
inline

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

226{ return fZin; }

◆ Zin() [3/3]

Float_t BesVisDisplay::Zin ( )
inline

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

226{ return fZin; }

◆ Zout() [1/3]

Float_t BesVisDisplay::Zout ( )
inline

Definition at line 227 of file EventDisplay/BesVisLib/include/BesVisLib/BesVisDisplay.h.

227{ return fZout; }

◆ Zout() [2/3]

Float_t BesVisDisplay::Zout ( )
inline

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

227{ return fZout; }

◆ Zout() [3/3]

Float_t BesVisDisplay::Zout ( )
inline

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

227{ return fZout; }

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