BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
BesView.cxx File Reference
#include <TROOT.h>
#include <TCanvas.h>
#include <TPad.h>
#include <TPaveLabel.h>
#include <iostream>
#include "math.h"
#include "TMath.h"
#include "BesVisLib/BesView.h"
#include "BesVisLib/BesGeometry.h"
#include "BesVisLib/BesEvent.h"
#include "BesVisLib/BesCursor.h"

Go to the source code of this file.

Functions

 ClassImp (BesView) BesView
 

Function Documentation

◆ ClassImp()

ClassImp ( BesView  )

Definition at line 21 of file BesView.cxx.

28 : BesTView(1) {
29 //
30 // BesView normal constructor
31 if ( gDebug ) cout << "BesView normal ctor called" << endl;
32
33 // init Label
34 fLabel = new TPaveLabel(0.02,0.17,0.02,0.09,"3D View");
35 fLabel->SetFillColor(42);
36
37 // init status of 3D view
38 fStatus3D = new BesStatus();
39 fStatus3D->Default(k3DView);
40
41 // init status of XY view
42 fStatusXY = new BesStatus();
43 fStatusXY->Default(kXYView);
44
45 // init status of ZR view
46 fStatusZR = new BesStatus();
47 fStatusZR->Default(kZRView);
48
49 // init status of current view
50 fStatusCurrent = new BesStatus();
51
52 // Init
53 fViewType = k3DView;
54 fStatusCurrent->Transfer(fStatus3D,1);
55 if ( !gBesGeometry ) {
56 cout << "BesGeometry does not exist! " << endl;
57 return;
58 }
59
60 m_BesR = gBesGeometry->GetBesR();
61 m_BesZ = gBesGeometry->GetBesZ();
62 DefaultRange();
63 fExtentDefault = GetExtent();
64
65 fZoomFactor = 1.2;
66 fMarkerSize = 0.1;
67}
R__EXTERN BesGeometry * gBesGeometry
Definition: BesGeometry.h:103
@ kXYView
Definition: BesStatus.h:15
@ k3DView
Definition: BesStatus.h:14
@ kZRView
Definition: BesStatus.h:16
Float_t GetBesR()
Definition: BesGeometry.h:35
Float_t GetBesZ()
Definition: BesGeometry.h:36