CGEM BOSS 6.6.5.i
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 //Long Peixun's update: init status of CGEM unfolded view
50 fStatusCgemUF[0] = new BesStatus();
51 fStatusCgemUF[0]->Default(kCgemUFView0);
52 fStatusCgemUF[1] = new BesStatus();
53 fStatusCgemUF[1]->Default(kCgemUFView1);
54 fStatusCgemUF[2] = new BesStatus();
55 fStatusCgemUF[2]->Default(kCgemUFView2);
56
57 // init status of current view
58 fStatusCurrent = new BesStatus();
59
60 // Init
61 fViewType = k3DView;
62 fStatusCurrent->Transfer(fStatus3D,1);
63 if ( !gBesGeometry ) {
64 cout << "BesGeometry does not exist! " << endl;
65 return;
66 }
67
68 m_BesR = gBesGeometry->GetBesR();
69 m_BesZ = gBesGeometry->GetBesZ();
70 DefaultRange();
71 fExtentDefault = GetExtent();
72
73 fZoomFactor = 1.2;
74 //fMarkerSize = 0.1; //Long Peixun's update: fMarkerSize has been initialized in DefaultRange()
75 //Long Peixun's update: Initialize ViewCenter
76 ViewCenter[0] = ViewCenter[1] = 0.0;
77}
R__EXTERN BesGeometry * gBesGeometry
@ kCgemUFView2
Definition BesStatus.h:20
@ kCgemUFView0
Definition BesStatus.h:18
@ kXYView
Definition BesStatus.h:15
@ k3DView
Definition BesStatus.h:14
@ kCgemUFView1
Definition BesStatus.h:19
@ kZRView
Definition BesStatus.h:16
Float_t GetBesR()
Definition BesGeometry.h:41
Float_t GetBesZ()
Definition BesGeometry.h:42