BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesGeoTrack.h
Go to the documentation of this file.
1
2#ifndef BESGEOTRACK_H
3#define BESGEOTRACK_H
4
5#include <vector>
6#include "TPaveText.h"
7#include "TGeoTrack.h"
8
9#include "BesMarker2D.h"
10#include "BesPaveText.h"
11
12class BesGeoTrack : public TGeoTrack {
13
14 public:
15
17 BesGeoTrack(Int_t id, Int_t pdgcode, TVirtualGeoTrack *parent=0, TObject *particle=0);
18 virtual ~BesGeoTrack();
19
20 virtual void Init();
21 virtual void AddHit(TObject* obj) { fHits.Add(obj); }
22 virtual void AddInfo(TString info) { fInfoCon.push_back(info); }
23 virtual void CloseInfo();
24 virtual void SetCharge(Int_t charge);
25 virtual void SetTrackType(Int_t type) { fType = type; }
26
27 virtual void AddPoint(Double_t x, Double_t y, Double_t z, Double_t t);
28 virtual void SetMarker(Double_t x, Double_t y, Double_t z);
29 //BesMarker2D *GetMarker() { return fMarker; }
30
31 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
32 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
33 virtual void Draw(Option_t *option = "");
34 virtual void Paint(Option_t *option = "");
35 virtual char *GetObjectInfo(Int_t px, Int_t py) const;
36
37 private:
38
39 TObjArray fHits;
40 std::vector<TString> fInfoCon;
41 Int_t fCharge;
42 Int_t fType; // 1: Mdc, 2: Tof, 3: Emc, 4: Muc, 5: Ext
43
44 BesPaveText *fTip;
45 TPolyLine3D *fPolyLine3D;
46 BesMarker2D *fMarker;
47
48 ClassDef(BesGeoTrack,1) // BesGeoTrack
49};
50
51#endif
52
53
virtual void CloseInfo()
Definition: BesGeoTrack.cxx:53
virtual void Draw(Option_t *option="")
virtual void AddPoint(Double_t x, Double_t y, Double_t z, Double_t t)
Definition: BesGeoTrack.cxx:62
virtual char * GetObjectInfo(Int_t px, Int_t py) const
virtual void SetMarker(Double_t x, Double_t y, Double_t z)
Definition: BesGeoTrack.cxx:67
virtual void Paint(Option_t *option="")
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual void Init()
Definition: BesGeoTrack.cxx:44
virtual ~BesGeoTrack()
Definition: BesGeoTrack.cxx:36
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Definition: BesGeoTrack.cxx:83
virtual void SetCharge(Int_t charge)
int t()
Definition: t.c:1