CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
BesGeoTrack Class Reference

#include <BesGeoTrack.h>

+ Inheritance diagram for BesGeoTrack:

Public Member Functions

 BesGeoTrack ()
 
 BesGeoTrack (Int_t id, Int_t pdgcode, TVirtualGeoTrack *parent=0, TObject *particle=0)
 
virtual ~BesGeoTrack ()
 
virtual void Init ()
 
virtual void AddInfo (TString info)
 
virtual void CloseInfo ()
 
virtual void SetCharge (Int_t charge)
 
virtual void SetTrackType (Int_t type)
 
virtual void AddHit (TObject *obj)
 
virtual void Add3DHit (TObject *obj)
 
virtual void AddCluster (TObject *obj)
 
virtual void SetTrackID (Int_t id)
 
virtual Int_t GetTrackID () const
 
virtual void AddPoint (Double_t x, Double_t y, Double_t z, Double_t t)
 
virtual void SetMarker (Double_t x, Double_t y, Double_t z)
 
virtual void Construct3DLine ()
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Draw (Option_t *option="")
 
virtual void Paint (Option_t *option="")
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 

Protected Attributes

TObjArray fHits
 
TObjArray f3DHits
 
TObjArray fClusters
 
Int_t fTrkID
 
std::vector< TString > fInfoCon
 
Int_t fCharge
 
Int_t fType
 
BesPaveTextfTip
 
TPolyLine3D * fPolyLine3D
 
BesMarker2DfMarker
 

Detailed Description

Definition at line 12 of file BesGeoTrack.h.

Constructor & Destructor Documentation

◆ BesGeoTrack() [1/2]

BesGeoTrack::BesGeoTrack ( )

◆ BesGeoTrack() [2/2]

BesGeoTrack::BesGeoTrack ( Int_t id,
Int_t pdgcode,
TVirtualGeoTrack * parent = 0,
TObject * particle = 0 )

Definition at line 29 of file BesGeoTrack.cxx.

30 : TGeoTrack(id, pdgcode, parent, particle)
31{
32// std::cout << "co BesGeoTrack: " << ++count << std::endl;
33 Init();
34}
virtual void Init()

◆ ~BesGeoTrack()

BesGeoTrack::~BesGeoTrack ( )
virtual

Definition at line 36 of file BesGeoTrack.cxx.

37{
38// std::cout << "de BesGeoTrack: " << --count << std::endl;
39 //Long Peixun's update: remove "if"
40 delete fTip;
41 delete fPolyLine3D;
42 delete fMarker;
43}
BesMarker2D * fMarker
Definition BesGeoTrack.h:59
TPolyLine3D * fPolyLine3D
Definition BesGeoTrack.h:58
BesPaveText * fTip
Definition BesGeoTrack.h:57

Member Function Documentation

◆ Add3DHit()

virtual void BesGeoTrack::Add3DHit ( TObject * obj)
inlinevirtual

Definition at line 27 of file BesGeoTrack.h.

27{ f3DHits.Add(obj); } //Long Peixun's update: for 3D track display
TObjArray f3DHits
Definition BesGeoTrack.h:46

Referenced by BesEvent::ConstructEmcTrackFromRec(), BesEvent::ConstructMdcTrackFromRec(), BesEvent::ConstructMucTrackFromRec(), and BesEvent::ConstructTofTrackFromRec().

◆ AddCluster()

virtual void BesGeoTrack::AddCluster ( TObject * obj)
inlinevirtual

Definition at line 28 of file BesGeoTrack.h.

28{ fClusters.Add(obj); } //Long Peixun's update: for CGEM clusters
TObjArray fClusters
Definition BesGeoTrack.h:47

Referenced by BesEvent::ConstructMdcTrackFromRec().

◆ AddHit()

virtual void BesGeoTrack::AddHit ( TObject * obj)
inlinevirtual

◆ AddInfo()

virtual void BesGeoTrack::AddInfo ( TString info)
inlinevirtual

◆ AddPoint()

void BesGeoTrack::AddPoint ( Double_t x,
Double_t y,
Double_t z,
Double_t t )
virtual

Definition at line 65 of file BesGeoTrack.cxx.

66{
67 TGeoTrack::AddPoint(x,y,z,t);
68}
int t()
Definition t.c:1

Referenced by BesEvent::ConstructMcTrack(), BesEvent::ConstructMdcTrackFromRec(), and BesEvent::ConstructMucTrackFromRec().

◆ CloseInfo()

void BesGeoTrack::CloseInfo ( )
virtual

Definition at line 56 of file BesGeoTrack.cxx.

57{
58 if (fTip) {
60 }
61 else
62 cout << "BesGeoTrack::CloseInfo, not initialized" << endl;
63}
virtual void SetText(std::vector< TString > infoCon)

Referenced by BesEvent::ConstructEmcTrackFromRec(), BesEvent::ConstructMcTrack(), BesEvent::ConstructMdcTrackFromRec(), BesEvent::ConstructMucTrackFromRec(), BesEvent::ConstructTofTrackFromRec(), and BesEvent::SetCgemClusters().

◆ Construct3DLine()

void BesGeoTrack::Construct3DLine ( )
virtual

Definition at line 342 of file BesGeoTrack.cxx.

343{
344 Double_t x,y,z,t;
345 fPolyLine3D = new TPolyLine3D(GetNpoints());
346 fPolyLine3D->SetBit(kCanDelete);
347 for (Int_t i = 0; i < GetNpoints(); i++)
348 {
349 GetPoint(i,x,y,z,t);
350 fPolyLine3D->SetPoint(i,x,y,z);
351 }
352 if (fType == 8) //Long Peixun's update: Change the color of MC truth tracks
353 {
354 fPolyLine3D->SetLineWidth(7);
355 fPolyLine3D->SetLineColor(kBlue);
356 }
357 else if(fType == 9)
358 {
359 fPolyLine3D->SetLineWidth(7);
360 fPolyLine3D->SetLineColor(kOrange);
361 }
362 else
363 {
364 fPolyLine3D->SetLineWidth(7); //Long Peixun's update: more wider
365 fPolyLine3D->SetLineColor(923); //Long Peixun's update: Red -> Black
366 }
367}
Double_t x[10]

Referenced by Draw(), BesEvent::DrawMcParticles(), and BesEvent::DrawTracks().

◆ DistancetoPrimitive()

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

Definition at line 98 of file BesGeoTrack.cxx.

99{
100 Int_t dist = 9999;
101 Int_t cx, cy;
102 Double_t edge = 4.0; // edge width of track
103 Double_t markSizeRatio = 4.0; // 4.0 is approximate size.
104
105 if (fType == 1 || fType == 2 || fType == 6 || fType == 7) { // tof or emc or cgem
106 if (!fMarker) return dist;
107 fMarker->GetCenterPixel(cx, cy);
108 if (fType == 1) { // tof
109 Double_t r = sqrt( Double_t((px-cx)*(px-cx) + (py-cy)*(py-cy)) );
110 Double_t markerR = markSizeRatio*fMarker->GetMarkerSize();
111 if (markerR > 50) markerR = 50;
112 // if the size of a marker with type of circle is too large > 50 pixel, it could not be enlarged.
113 if ( fabs(r-markerR) < edge ) dist = 0;
114 }
115 //Long Peixun's update: consider cluster in CGEM view
116 else if (fType == 2 || fType == 6 || fType == 7) { // emc
117 Double_t dx = abs(px-cx), dy = abs(py-cy);
118 if ( fabs(dx) < edge && fabs(dy) < markSizeRatio*fMarker->GetMarkerSize() ||
119 fabs(dy) < edge && fabs(dx) < markSizeRatio*fMarker->GetMarkerSize() )
120 dist = 0;
121 }
122
123 return dist;
124 }
125 else return TGeoTrack::DistancetoPrimitive(px, py);
126}
double abs(const EvtComplex &c)
virtual void GetCenterPixel(Int_t &px, Int_t &py)

◆ Draw()

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

Definition at line 369 of file BesGeoTrack.cxx.

370{
371 // Draw Polyline3D for OpenGL and X3d
372 BesView *view = dynamic_cast<BesView*>(gPad->GetView());
373 if (view && view->GetViewType() & k3DView) {
374 //Long Peixun's update: Move these code to Construct3DLine()
376 fPolyLine3D->Draw(option);
377 }
378
379 //Long Peixun's update: The color of components in the track should be Red
380 for (Int_t i = 0; i < f3DHits.GetEntries(); ++i)
381 {
382 TGeoPhysicalNode* pHit = (TGeoPhysicalNode*)f3DHits.At(i);
383 if (pHit) pHit->SetLineColor(kRed);
384
385 }
386
387 if (!gPad) gGeoManager->GetMasterVolume()->Draw();
388 char *opt1 = Compress(option); // we will have to delete this ?
389 TString opt(opt1);
390 Bool_t is_default = kTRUE;
391 Bool_t is_onelevel = kFALSE;
392 Bool_t is_all = kFALSE;
393 Bool_t is_type = kFALSE;
394 if (opt.Contains("/D")) {
395 is_onelevel = kTRUE;
396 is_default = kFALSE;
397 }
398 if (opt.Contains("/*")) {
399 is_all = kTRUE;
400 is_default = kFALSE;
401 }
402 if (opt.Contains("/N")) {
403 is_type = kTRUE;
404 Int_t ist = opt.Index("/N")+2;
405 Int_t ilast = opt.Index("/",ist);
406 if (ilast<0) ilast=opt.Length();
407 TString type = opt(ist, ilast-ist);
408 gGeoManager->SetParticleName(type.Data());
409 }
410 SetBits(is_default, is_onelevel, is_all, is_type);
411 AppendPad("SAME");
412
413 delete [] opt1;
414 return;
415}
@ k3DView
Definition BesStatus.h:14
virtual void Construct3DLine()
EBESViewType GetViewType()
Definition BesView.h:74

Referenced by BesEvent::DrawCgemClusters(), BesEvent::DrawCgemUFClusters(), BesEvent::DrawMcParticles(), and BesEvent::DrawTracks().

◆ ExecuteEvent()

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

Reimplemented in BesMcTrack.

Definition at line 128 of file BesGeoTrack.cxx.

129{
130 BesView *view = dynamic_cast<BesView*>(gPad->GetView());
131
132 Int_t width, color;
133 Int_t normalWidth = 2, hlWidth = 3;
134
135 if (gBesCursor->GetType() == kBesHand) {
136 if (view) view->ExecuteEvent(event, px, py);
137 }
138 else if (gBesCursor->GetType() == kBesPick){
139
140 if (gPad) gPad->SetCursor(kPointer);
141
142 switch (event) {
143 case kMouseEnter:
144 if (fType == 0 || fType==9)
145 {
146 if (view->GetVisMdcHitsGlobal())
147 {
148 for (Int_t i = 0; i < fHits.GetEntries(); i++)
149 {
150 Mdc2DWire *aHit = (Mdc2DWire*)fHits.At(i);
151 if (aHit != 0) {
152 if (view->GetVisMdcHits()) {
153 aHit->SetHighlighted(true);
154 }
155 }
156 }
157 }
158
159 //Long Peixun's update: Highlight associated CGEM clusters
160 if (view->GetVisCgemHitsGlobal() && view->GetVisCgemHitsClusters())
161 {
162 for (Int_t i = 0; i < fClusters.GetEntries(); ++i)
163 {
164 BesGeoTrack* aCluster = (BesGeoTrack*)fClusters.At(i);
165 if (aCluster)
166 {
167 aCluster->fMarker->SetMarkerColor(kViolet);
168 aCluster->fMarker->SetMarkerStyle(8);
169 }
170 }
171 }
172 }
173
174 else if (fType == 1) {
175 if (view->GetVisTofHitsGlobal()) {
176 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
177 Tof2DScin *aHit = (Tof2DScin*)fHits.At(i);
178 if (aHit != 0) {
179 if ( aHit->GetPart() == 0 && view->GetVisTofHitsEast() ||
180 aHit->GetPart() == 1 && view->GetVisTofHitsBarrel() ||
181 aHit->GetPart() == 2 && view->GetVisTofHitsWest() ) {
182 aHit->SetHighlighted(true);
183 }
184 }
185 }
186 }
187 }
188 else if (fType == 2) {
189 if (view->GetVisEmcHitsGlobal()) {
190 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
191 Emc2DCrystal *aHit = (Emc2DCrystal*)fHits.At(i);
192 if (aHit != 0) {
193 if ( aHit->GetPart() == 0 && view->GetVisEmcHitsEast() ||
194 aHit->GetPart() == 1 && view->GetVisEmcHitsBarrel() ||
195 aHit->GetPart() == 2 && view->GetVisEmcHitsWest() ) {
196 aHit->SetHighlighted(true);
197 }
198 }
199 }
200 }
201 }
202 else if (fType == 3) {
203 if (view->GetVisMucHitsGlobal()) {
204 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
205 Muc2DStrip *aHit = (Muc2DStrip*)fHits.At(i);
206 if (aHit != 0) {
207 if (view->GetVisMucHitsGlobal()) {
208 aHit->SetHighlighted(true);
209 }
210 }
211 }
212 }
213 }
214
215
216 if (fType == 0 || fType==9) {
217 width = this->GetLineWidth();
218 color = this->GetLineColor();
219 this->SetLineWidth(hlWidth);
220 this->SetLineColor(kRed);
221 }
222 else if (fType == 1) {
223 fMarker->SetMarkerColor(kMagenta);
224 }
225 else if (fType == 2) {
226 fMarker->SetMarkerColor(kMagenta);
227 }
228 else if (fType == 3) {
229 width = this->GetLineWidth();
230 color = this->GetLineColor();
231 this->SetLineWidth(hlWidth);
232 this->SetLineColor(kRed);
233 }
234 else if (fType == 4) {
235 this->SetLineWidth(hlWidth);
236 this->SetLineColor(kBlue);
237 }
238 else if (fType == 6 || fType == 7) //Long Peixun's update: for clusters in CGEM
239 {
240 fMarker->SetMarkerColor(kViolet);
241 fMarker->SetMarkerStyle(8);
242 }
243
244 fTip->SetPos(px, py);
245 view->UpdateView(0);
246
247 //yzhang 2011-11-15 TEMP
248 //drawHeader(fTip->GetText);
249 if (gBesCursor->GetShowInfo()) fTip->Draw("TL,SAME"); // "BR,ARC,SAME"
250 gPad->Modified();
251 gPad->Update();
252 break;
253
254 case kMouseLeave:
255 if (fType == 0 || fType==9) {
256 for (Int_t i = 0; i < (Int_t)fHits.GetEntries(); i++) {
257 Mdc2DWire *aHit = (Mdc2DWire*)fHits.At(i);
258 if (aHit != 0 && aHit->IsHighlighted()) {
259 aHit->SetHighlighted(false);
260 }
261 }
262
263 //Long Peixun's update: Dehighlight associated CGEM clusters
264 if (view->GetVisCgemHitsGlobal() && view->GetVisCgemHitsClusters())
265 {
266 for (Int_t i = 0; i < fClusters.GetEntries(); ++i)
267 {
268 BesGeoTrack* aCluster = (BesGeoTrack*)fClusters.At(i);
269 if (aCluster)
270 {
271 aCluster->fMarker->SetMarkerColor(kBlack);
272 aCluster->fMarker->SetMarkerStyle(4);
273 }
274 }
275 }
276 }
277 else if (fType == 1) {
278 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
279 Tof2DScin *aHit = (Tof2DScin*)fHits.At(i);
280 if (aHit != 0 && aHit->IsHighlighted()) {
281 aHit->SetHighlighted(false);
282 }
283 }
284 }
285 else if (fType == 2) {
286 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
287 Emc2DCrystal *aHit = (Emc2DCrystal*)fHits.At(i);
288 if (aHit != 0 && aHit->IsHighlighted()) {
289 aHit->SetHighlighted(false);
290 }
291 }
292 }
293 else if (fType == 3) {
294 for (Int_t i = 0; i < (Int_t)fHits.GetEntries(); i++) {
295 Muc2DStrip *aHit = (Muc2DStrip*)fHits.At(i);
296 if (aHit != 0 && aHit->IsHighlighted()) {
297 aHit->SetHighlighted(false);
298 }
299 }
300 }
301
302
303 if (fType == 0) {
304 this->SetLineWidth(normalWidth);
305 this->SetLineColor(kBlack);
306 }
307 else if (fType == 1) {
308 fMarker->SetMarkerColor(kBlack);
309 }
310 else if (fType == 2) {
311 fMarker->SetMarkerColor(kBlack);
312 }
313 else if (fType == 3) {
314 this->SetLineWidth(normalWidth);
315 this->SetLineColor(kBlack);
316 }
317 else if (fType == 4) {
318 this->SetLineWidth(normalWidth);
319 this->SetLineColor(kBlack);
320 }
321 else if (fType == 6 || fType == 7) //Long Peixun's update: for clusters in CGEM
322 {
323 fMarker->SetMarkerColor(kBlack);
324 fMarker->SetMarkerStyle(4);
325 }
326 else if (fType == 9) { // Wang Liangliang for ideal tracking, Nov 2021
327 this->SetLineWidth(normalWidth);
328 this->SetLineColor(kOrange);
329 }
330
331 view->UpdateView(0);
332 gPad->Modified();
333 gPad->Update();
334 break;
335 }
336
337 TGeoTrack::ExecuteEvent(event, px, py);
338 }
339}
@ kBesHand
Definition BesCursor.h:15
@ kBesPick
Definition BesCursor.h:14
R__EXTERN BesCursor * gBesCursor
Definition BesCursor.h:40
g1 SetLineColor(2)
gr SetLineWidth(2)
Bool_t GetShowInfo()
Definition BesCursor.h:35
EBESCursorType GetType()
Definition BesCursor.h:32
virtual void SetPos(Int_t px, Int_t py)
Bool_t GetVisMucHitsGlobal()
Definition BesView.h:245
Bool_t GetVisMdcHitsGlobal()
Definition BesView.h:214
Bool_t GetVisEmcHitsBarrel()
Definition BesView.h:234
Bool_t GetVisEmcHitsGlobal()
Definition BesView.h:232
virtual void UpdateView(Bool_t resetview=kFALSE)
Definition BesView.cxx:753
Bool_t GetVisMdcHits()
Definition BesView.h:215
Bool_t GetVisEmcHitsWest()
Definition BesView.h:235
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Definition BesView.cxx:451
Bool_t GetVisTofHitsWest()
Definition BesView.h:224
Bool_t GetVisTofHitsGlobal()
Definition BesView.h:221
Bool_t GetVisCgemHitsClusters()
Definition BesView.h:204
Bool_t GetVisEmcHitsEast()
Definition BesView.h:233
Bool_t GetVisCgemHitsGlobal()
Definition BesView.h:201
Bool_t GetVisTofHitsBarrel()
Definition BesView.h:223
Bool_t GetVisTofHitsEast()
Definition BesView.h:222
virtual void SetHighlighted(bool status=true)
virtual Int_t GetPart()
virtual bool IsHighlighted()
virtual void SetHighlighted(bool status=true)
Definition Mdc2DWire.h:32
virtual bool IsHighlighted()
Definition Mdc2DWire.h:34
virtual void SetHighlighted(bool status=true)
Definition Muc2DStrip.h:30
virtual bool IsHighlighted()
Definition Muc2DStrip.h:32
virtual Int_t GetPart()
Definition Tof2DScin.h:49
virtual void SetHighlighted(bool status=true)
Definition Tof2DScin.h:30
virtual bool IsHighlighted()
Definition Tof2DScin.h:32

◆ GetObjectInfo()

char * BesGeoTrack::GetObjectInfo ( Int_t px,
Int_t py ) const
virtual

Definition at line 455 of file BesGeoTrack.cxx.

455 {
456
457 BesView *view = dynamic_cast<BesView*>(gPad->GetView());
458 if (view) return view->GetObjectInfo(px, py);
459 else return TObject::GetObjectInfo(px, py);
460}
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Definition BesView.cxx:965

◆ GetTrackID()

virtual Int_t BesGeoTrack::GetTrackID ( ) const
inlinevirtual

Definition at line 30 of file BesGeoTrack.h.

30{ return fTrkID; } //...

Referenced by BesEvent::ConstructMdcTrackFromRec().

◆ Init()

void BesGeoTrack::Init ( )
virtual

Definition at line 45 of file BesGeoTrack.cxx.

46{
47 fTip = new BesPaveText(0, 0, 0.1, 0.1, "TL");
48 fPolyLine3D = 0; //Long Peixun's update: Initialize trackID and fPolyLine3D
49 fTrkID = 0; //...
50 fMarker = 0;
51
52 this->SetLineWidth(2);
53 //fHits.Clear("C");
54}

Referenced by BesGeoTrack().

◆ Paint()

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

Definition at line 417 of file BesGeoTrack.cxx.

418{
419 BesView *view = dynamic_cast<BesView*>(gPad->GetView());
420 Double_t viewPhi = view->GetLongitude();
421 TVector3 viewVec(cos(viewPhi*TMath::DegToRad()), sin(viewPhi*TMath::DegToRad()), 0);
422 Double_t x, y, z, t;
423 Double_t x1=0.0, y1=0.0, z1=0.0;
424 Double_t dot, dotMin = 1e+20, dotTolerance = 0.01;
425 for (Int_t i = 1; i < GetNpoints(); i++) {
426 GetPoint(i, x, y, z, t);
427 TVector3 vec(x,y,0);
428 if (vec.Mag() > 5.0) {
429 vec.SetMag(1.0);
430 dot = fabs(vec.Dot(viewVec));
431 if ( dot < dotTolerance && dot < dotMin ) {
432 x1 = x;
433 y1 = y;
434 z1 = z;
435 dotMin = dot;
436 }
437 }
438 }
439
440 if (dotMin < 1e+20) {
441 BesMarker2D sectionPhi("trackPhi", "trackPhi", x1, y1, z1);
442 sectionPhi.SetMarkerStyle(28);
443 sectionPhi.SetMarkerColor(1);
444 sectionPhi.SetMarkerSize(2);
445 sectionPhi.Paint();
446 //sectionPhi paint the marker in origin point of MdcTrack!!!
447 }
448
449 if (fMarker) fMarker->Paint(option);
450 TGeoTrack::Paint(option);
451}
double sin(const BesAngle a)
Definition BesAngle.h:210
double cos(const BesAngle a)
Definition BesAngle.h:213
virtual void Paint(Option_t *option="")
Double_t GetLongitude()
Definition BesTView.h:95
dble_vec_t vec[12]
Definition ranlxd.c:372

◆ SetCharge()

void BesGeoTrack::SetCharge ( Int_t charge)
virtual

Reimplemented in BesMcTrack.

Definition at line 462 of file BesGeoTrack.cxx.

463{
464 fCharge = charge;
465 if (fCharge > 0) this->SetLineColor(kBlack); // +
466 else if (fCharge < 0) this->SetLineColor(kBlack); // -
467 else this->SetLineColor(kGreen); // 0
468
469 if (fType == 9) // Wang Liangliang for ideal tracking, Nov 2021
470 this->SetLineColor(kOrange);
471}
Int_t fCharge
Definition BesGeoTrack.h:51

Referenced by BesEvent::ConstructMdcTrackFromRec(), BesEvent::ConstructMucTrackFromRec(), and BesMcTrack::SetCharge().

◆ SetMarker()

void BesGeoTrack::SetMarker ( Double_t x,
Double_t y,
Double_t z )
virtual

Definition at line 70 of file BesGeoTrack.cxx.

71{
72 fMarker = new BesMarker2D("RecMarker", "RecMarker", x, y, z);
73
74 if (fType == 1) { // tof
75 fMarker->SetMarkerSizeMultiple(15); //Long Peixun's update: 20 -> 15
76 fMarker->SetMarkerStyle(5);
77 fMarker->SetMarkerColor(kBlack);
78 }
79 else if (fType == 2) { // emc
80 fMarker->SetMarkerSizeMultiple(15); //Long Peixun's update: 20 -> 15
81 fMarker->SetMarkerStyle(2);
82 fMarker->SetMarkerColor(kBlack);
83 }
84 else if (fType == 6) //Long Peixun's update: cluster in CGEM view
85 {
87 fMarker->SetMarkerStyle(4);
88 fMarker->SetMarkerColor(kBlack);
89 }
90 else if (fType == 7) //Long Peixun's update: cluster in CGEM UF view
91 {
93 fMarker->SetMarkerStyle(4);
94 fMarker->SetMarkerColor(kBlack);
95 }
96}
virtual void SetMarkerSizeMultiple(Int_t input)
Definition BesMarker2D.h:34

Referenced by BesEvent::ConstructEmcTrackFromRec(), BesEvent::ConstructTofTrackFromRec(), and BesEvent::SetCgemClusters().

◆ SetTrackID()

virtual void BesGeoTrack::SetTrackID ( Int_t id)
inlinevirtual

Definition at line 29 of file BesGeoTrack.h.

29{ fTrkID = id; } //Long Peixun's update: Set and Get TrackID

Referenced by BesEvent::SetCgemClusters(), BesEvent::SetEmcShowers(), BesEvent::SetMdcTracks(), BesEvent::SetMucTracks(), and BesEvent::SetTofTracks().

◆ SetTrackType()

virtual void BesGeoTrack::SetTrackType ( Int_t type)
inlinevirtual

Member Data Documentation

◆ f3DHits

TObjArray BesGeoTrack::f3DHits
protected

Definition at line 46 of file BesGeoTrack.h.

Referenced by Add3DHit(), and Draw().

◆ fCharge

Int_t BesGeoTrack::fCharge
protected

Definition at line 51 of file BesGeoTrack.h.

Referenced by SetCharge().

◆ fClusters

TObjArray BesGeoTrack::fClusters
protected

Definition at line 47 of file BesGeoTrack.h.

Referenced by AddCluster(), and ExecuteEvent().

◆ fHits

TObjArray BesGeoTrack::fHits
protected

Definition at line 45 of file BesGeoTrack.h.

Referenced by AddHit(), and ExecuteEvent().

◆ fInfoCon

std::vector<TString> BesGeoTrack::fInfoCon
protected

Definition at line 50 of file BesGeoTrack.h.

Referenced by AddInfo(), and CloseInfo().

◆ fMarker

BesMarker2D* BesGeoTrack::fMarker
protected

Definition at line 59 of file BesGeoTrack.h.

Referenced by DistancetoPrimitive(), ExecuteEvent(), Init(), Paint(), SetMarker(), and ~BesGeoTrack().

◆ fPolyLine3D

TPolyLine3D* BesGeoTrack::fPolyLine3D
protected

Definition at line 58 of file BesGeoTrack.h.

Referenced by Construct3DLine(), Draw(), Init(), and ~BesGeoTrack().

◆ fTip

BesPaveText* BesGeoTrack::fTip
protected

Definition at line 57 of file BesGeoTrack.h.

Referenced by CloseInfo(), ExecuteEvent(), BesMcTrack::ExecuteEvent(), Init(), and ~BesGeoTrack().

◆ fTrkID

Int_t BesGeoTrack::fTrkID
protected

Definition at line 48 of file BesGeoTrack.h.

Referenced by GetTrackID(), Init(), and SetTrackID().

◆ fType

Int_t BesGeoTrack::fType
protected

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