BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BesView.cxx File Reference
#include "TMath.h"
#include "math.h"
#include <TCanvas.h>
#include <TPad.h>
#include <TPaveLabel.h>
#include <TROOT.h>
#include <iostream>
#include "BesVisLib/BesCursor.h"
#include "BesVisLib/BesEvent.h"
#include "BesVisLib/BesGeometry.h"
#include "BesVisLib/BesView.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.

29 : BesTView( 1 ) {
30 //
31 // BesView normal constructor
32 if ( gDebug ) cout << "BesView normal ctor called" << endl;
33
34 // init Label
35 fLabel = new TPaveLabel( 0.02, 0.17, 0.02, 0.09, "3D View" );
36 fLabel->SetFillColor( 42 );
37
38 // init status of 3D view
39 fStatus3D = new BesStatus();
40 fStatus3D->Default( k3DView );
41
42 // init status of XY view
43 fStatusXY = new BesStatus();
44 fStatusXY->Default( kXYView );
45
46 // init status of ZR view
47 fStatusZR = new BesStatus();
48 fStatusZR->Default( kZRView );
49
50 // init status of current view
51 fStatusCurrent = new BesStatus();
52
53 // Init
54 fViewType = k3DView;
55 fStatusCurrent->Transfer( fStatus3D, 1 );
56 if ( !gBesGeometry )
57 {
58 cout << "BesGeometry does not exist! " << endl;
59 return;
60 }
61
62 m_BesR = gBesGeometry->GetBesR();
63 m_BesZ = gBesGeometry->GetBesZ();
64 DefaultRange();
65 fExtentDefault = GetExtent();
66
67 fZoomFactor = 1.2;
68 // fMarkerSize = 0.1; //Long Peixun's update: fMarkerSize has been initialized in
69 // DefaultRange() Long Peixun's update: Initialize ViewCenter
70 ViewCenter[0] = ViewCenter[1] = 0.0;
71}
R__EXTERN BesGeometry * gBesGeometry