BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Tof2DScin Class Reference

#include <Tof2DScin.h>

Inheritance diagram for Tof2DScin:

Public Member Functions

 Tof2DScin ()
 Tof2DScin (const char *name, const char *title, Int_t N, Double_t *P, Int_t part)
 ~Tof2DScin ()
virtual void SetStyle ()
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void SetHighlighted (bool status=true)
virtual void SetFired (bool status=true)
virtual bool IsHighlighted ()
virtual bool IsFired ()
virtual void AddInfo (TString info)
virtual void CloseInfo ()
virtual void ClearInfo ()
virtual void SetTime (Double_t time)
virtual void SetCharge (Double_t charge)
virtual Double_t GetTime ()
virtual Double_t GetCharge ()
virtual void ResetTimeCharge ()
virtual void Draw (Option_t *option="")
virtual void Paint (Option_t *option="")
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Int_t GetPart ()
virtual bool HasZRSection ()
Double_t GetAngle (Double_t x, Double_t y)
Double_t Range360 (Double_t input)
void SetTimeChannel (UInt_t tc)
void SetChargeChannel (UInt_t cc)
UInt_t GetTimeChannel () const
UInt_t GetChargeChannel () const
 Tof2DScin ()
 Tof2DScin (const char *name, const char *title, Int_t N, Double_t *P, Int_t part)
 ~Tof2DScin ()
virtual void SetStyle ()
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void SetHighlighted (bool status=true)
virtual void SetFired (bool status=true)
virtual bool IsHighlighted ()
virtual bool IsFired ()
virtual void AddInfo (TString info)
virtual void CloseInfo ()
virtual void ClearInfo ()
virtual void SetTime (Double_t time)
virtual void SetCharge (Double_t charge)
virtual Double_t GetTime ()
virtual Double_t GetCharge ()
virtual void ResetTimeCharge ()
virtual void Draw (Option_t *option="")
virtual void Paint (Option_t *option="")
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Int_t GetPart ()
virtual bool HasZRSection ()
Double_t GetAngle (Double_t x, Double_t y)
Double_t Range360 (Double_t input)
void SetTimeChannel (UInt_t tc)
void SetChargeChannel (UInt_t cc)
UInt_t GetTimeChannel () const
UInt_t GetChargeChannel () const
 Tof2DScin ()
 Tof2DScin (const char *name, const char *title, Int_t N, Double_t *P, Int_t part)
 ~Tof2DScin ()
virtual void SetStyle ()
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void SetHighlighted (bool status=true)
virtual void SetFired (bool status=true)
virtual bool IsHighlighted ()
virtual bool IsFired ()
virtual void AddInfo (TString info)
virtual void CloseInfo ()
virtual void ClearInfo ()
virtual void SetTime (Double_t time)
virtual void SetCharge (Double_t charge)
virtual Double_t GetTime ()
virtual Double_t GetCharge ()
virtual void ResetTimeCharge ()
virtual void Draw (Option_t *option="")
virtual void Paint (Option_t *option="")
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Int_t GetPart ()
virtual bool HasZRSection ()
Double_t GetAngle (Double_t x, Double_t y)
Double_t Range360 (Double_t input)
void SetTimeChannel (UInt_t tc)
void SetChargeChannel (UInt_t cc)
UInt_t GetTimeChannel () const
UInt_t GetChargeChannel () const

Detailed Description

Constructor & Destructor Documentation

◆ Tof2DScin() [1/6]

Tof2DScin::Tof2DScin ( )

◆ Tof2DScin() [2/6]

Tof2DScin::Tof2DScin ( const char * name,
const char * title,
Int_t N,
Double_t * P,
Int_t part )

Definition at line 24 of file Tof2DScin.cxx.

24 {
25 SetName( name );
26 SetTitle( title );
27 fTip = 0;
28 fHighlighted = false;
29 fFired = false;
30 fPart = part;
31
32 fTime = 0.0;
33 fCharge = 0.0;
34
35 fZRSectionTolerance[1] = 0.071; // half of gap between two scin
36 fZRSectionTolerance[2] = fZRSectionTolerance[0] = 0.1647;
37
38 // ------XY------
39
40 Double_t Pxy[3 * 4]; // N=8
41 for ( Int_t i = 0; i < 3 * 4; i++ )
42 {
43 Pxy[i] = ( P[i] + P[i + 3 * 4] ) / 2.0;
44 // if (GetName() == TString("EastEcScin0")) cout << Pxy[i] << endl;
45 }
46
47 fScinXY = new BesPolygon2D( name, title, 4, &Pxy[0] );
48 fScinXYFired = new BesPolygon2D( name, title, 4, &Pxy[0] );
49
50 // ------ZR------
51
52 Double_t Pzr[3 * 4];
53 Int_t iSeq[8] = { 0, 3, 1, 2, 5, 6, 4, 7 }; // center of 0+3, 1+2, 5+6, 4+7
54 for ( Int_t i = 0; i < 4; i++ )
55 {
56 for ( Int_t j = 0; j < 3; j++ )
57 { Pzr[3 * i + j] = ( P[3 * iSeq[2 * i] + j] + P[3 * iSeq[2 * i + 1] + j] ) / 2.0; }
58 // if (GetName() == TString("EastEcScin0")) cout << Pxy[i] << endl;
59 }
60
61 fScinZR = new BesPolygon2D( TString( name ) + TString( "zr" ), title, 4, &Pzr[0] );
62 fScinZRFired = new BesPolygon2D( TString( name ) + TString( "zr" ), title, 4, &Pzr[0] );
63
64 fPhiMin = GetAngle( P[3 * 3], P[3 * 3 + 1] );
65 fPhiMax = GetAngle( P[3 * 0], P[3 * 0 + 1] );
66 // Huang Shuhui's update: Fix ZR view of Mrpc
67 if ( fPhiMin > fPhiMax && fPhiMin - fPhiMax < 180.0 )
68 { // not cross 0 degree
69 Double_t phiTemp = fPhiMin;
70 fPhiMin = fPhiMax;
71 fPhiMax = phiTemp;
72 }
73 // Long Peixun's update: Consider crossing 0 degree
74 if ( fPhiMax > fPhiMin && fPhiMax - fPhiMin > 180.0 )
75 {
76 Double_t phiTemp = fPhiMin;
77 fPhiMin = fPhiMax;
78 fPhiMax = phiTemp;
79 }
80 // cout << GetName() << " min "<< fPhiMin << " max " << fPhiMax << endl;
81
82 SetStyle();
83
84 fTip = new BesPaveText( 0, 0, 0.1, 0.1 );
85 CloseInfo();
86}
double P(RecMdcKalTrack *trk)
cout<< "end eff5"<< endl;TGraph *gr1=new TGraphErrors(15, x, eff_ep, errx, err_ep);TGraph *gr2=new TGraphErrors(15, x, eff_em, errx, err_em);TGraph *gr3=new TGraphErrors(15, x, eff_ep2, errx, err_ep2);TGraph *gr4=new TGraphErrors(15, x, eff_em2, errx, err_em2);TGraph *gr5=new TGraphErrors(15, x, eff_ep3, errx, err_ep3);TGraph *gr6=new TGraphErrors(15, x, eff_em3, errx, err_em3);TGraph *gr7=new TGraphErrors(15, x, eff_ep4, errx, err_ep4);TGraph *gr8=new TGraphErrors(15, x, eff_em4, errx, err_em4);TGraph *gr9=new TGraphErrors(15, x, eff_ep5, errx, err_ep5);TGraph *gr10=new TGraphErrors(15, x, eff_em5, errx, err_em5);TCanvas *c1=new TCanvas("c1", "bhabha_eff", 100, 10, 600, 400);TMultiGraph *mg=new TMultiGraph();mg-> SetTitle("bhabha_eff")
titledef title[20]
Double_t GetAngle(Double_t x, Double_t y)
virtual void CloseInfo()
virtual void SetStyle()
Definition Tof2DScin.cxx:98

◆ ~Tof2DScin() [1/3]

Tof2DScin::~Tof2DScin ( )

Definition at line 90 of file Tof2DScin.cxx.

90 {
91 // Long Peixun's update: remove "if"
92 delete fScinXY;
93 delete fScinZR;
94 delete fScinXYFired;
95 delete fScinZRFired;
96}

◆ Tof2DScin() [3/6]

Tof2DScin::Tof2DScin ( )

◆ Tof2DScin() [4/6]

Tof2DScin::Tof2DScin ( const char * name,
const char * title,
Int_t N,
Double_t * P,
Int_t part )

◆ ~Tof2DScin() [2/3]

Tof2DScin::~Tof2DScin ( )

◆ Tof2DScin() [5/6]

Tof2DScin::Tof2DScin ( )

◆ Tof2DScin() [6/6]

Tof2DScin::Tof2DScin ( const char * name,
const char * title,
Int_t N,
Double_t * P,
Int_t part )

◆ ~Tof2DScin() [3/3]

Tof2DScin::~Tof2DScin ( )

Member Function Documentation

◆ AddInfo() [1/3]

virtual void Tof2DScin::AddInfo ( TString info)
inlinevirtual

Definition at line 33 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

33{ fInfoCon.push_back( info ); }

Referenced by TofROOTGeo::SetHits().

◆ AddInfo() [2/3]

virtual void Tof2DScin::AddInfo ( TString info)
inlinevirtual

Definition at line 33 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

33{ fInfoCon.push_back( info ); }

◆ AddInfo() [3/3]

virtual void Tof2DScin::AddInfo ( TString info)
inlinevirtual

Definition at line 33 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

33{ fInfoCon.push_back( info ); }

◆ ClearInfo() [1/3]

void Tof2DScin::ClearInfo ( )
virtual

Definition at line 120 of file Tof2DScin.cxx.

120 {
121 fInfoCon.clear();
122 fTip->DeleteText();
123}

Referenced by TofROOTGeo::SetHits().

◆ ClearInfo() [2/3]

virtual void Tof2DScin::ClearInfo ( )
virtual

◆ ClearInfo() [3/3]

virtual void Tof2DScin::ClearInfo ( )
virtual

◆ CloseInfo() [1/3]

void Tof2DScin::CloseInfo ( )
virtual

Definition at line 125 of file Tof2DScin.cxx.

125 {
126 if ( fTip )
127 {
128 fTip->Clear();
129
130 if ( fInfoCon.size() == 0 ) fInfoCon.push_back( GetTitle() );
131 fTip->SetText( fInfoCon );
132 }
133 else cout << "Tof2DScin::CloseInfo, not initialized" << endl;
134}

Referenced by TofROOTGeo::SetHits(), and Tof2DScin().

◆ CloseInfo() [2/3]

virtual void Tof2DScin::CloseInfo ( )
virtual

◆ CloseInfo() [3/3]

virtual void Tof2DScin::CloseInfo ( )
virtual

◆ DistancetoPrimitive() [1/3]

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

Definition at line 138 of file Tof2DScin.cxx.

138 {
139
140 BesView* view = dynamic_cast<BesView*>( gPad->GetView() );
141 if ( view->GetViewType() & kXYView && fScinXY )
142 { return fScinXY->DistancetoPrimitive( px, py ); }
143 else if ( view->GetViewType() & kZRView && fScinZR )
144 {
145 if ( HasZRSection() ) return fScinZR->DistancetoPrimitive( px, py );
146 }
147
148 return 9999;
149}
virtual bool HasZRSection()

◆ DistancetoPrimitive() [2/3]

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

◆ DistancetoPrimitive() [3/3]

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

◆ Draw() [1/3]

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

Definition at line 204 of file Tof2DScin.cxx.

204 {
205 //
206 // Tof2DScin draw function
207 TString opt = option;
208 opt.ToUpper();
209
210 AppendPad( option );
211}

Referenced by TofROOTGeo::DrawHits().

◆ Draw() [2/3]

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

◆ Draw() [3/3]

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

◆ ExecuteEvent() [1/3]

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

Definition at line 153 of file Tof2DScin.cxx.

153 {
154
155 // cout << GetName() << endl;
156
157 BesView* view = dynamic_cast<BesView*>( gPad->GetView() );
158
159 if ( gBesCursor->GetType() == kBesHand )
160 {
161 if ( view ) view->ExecuteEvent( event, px, py );
162 }
163 else if ( gBesCursor->GetType() == kBesPick )
164 {
165
166 if ( gPad ) gPad->SetCursor( kPointer );
167
168 switch ( event )
169 {
170
171 case kMouseEnter:
172 this->SetHighlighted( true );
173
174 // if (this->IsFired() || view->GetVisTofHitsGlobal()) {
175 Draw();
176
177 fTip->SetPos( px, py );
178 view->UpdateView( 0 );
179
180 // Long Peixun's update: If ShowInfo is not checked, don't show tip text.
181 if ( gBesCursor->GetShowInfo() ) fTip->Draw( "BR,SAME" ); // "BR,ARC,SAME"
182 gPad->Modified();
183 gPad->Update();
184 break;
185
186 case kMouseLeave:
187 if ( this->IsHighlighted() )
188 {
189 this->SetHighlighted( false );
190 // if (view->GetVisTofHitsGlobal())
191 Draw();
192
193 view->UpdateView( 0 );
194 gPad->Modified();
195 gPad->Update();
196 break;
197 }
198 }
199 }
200}
legend Draw()
virtual void UpdateView(Bool_t resetview=kFALSE)
Definition BesView.cxx:659
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Definition BesView.cxx:371
virtual void SetHighlighted(bool status=true)

◆ ExecuteEvent() [2/3]

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

◆ ExecuteEvent() [3/3]

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

◆ GetAngle() [1/3]

Double_t Tof2DScin::GetAngle ( Double_t x,
Double_t y )

Definition at line 392 of file Tof2DScin.cxx.

393{
394 Double_t angle = TMath::ACos( x / TMath::Sqrt( x * x + y * y ) ) * TMath::RadToDeg();
395 if ( y < 0.0 ) angle *= -1;
396 angle = Range360( angle );
397
398 return angle;
399}
Double_t x[10]
Double_t Range360(Double_t input)

Referenced by Tof2DScin().

◆ GetAngle() [2/3]

Double_t Tof2DScin::GetAngle ( Double_t x,
Double_t y )

◆ GetAngle() [3/3]

Double_t Tof2DScin::GetAngle ( Double_t x,
Double_t y )

◆ GetCharge() [1/3]

virtual Double_t Tof2DScin::GetCharge ( )
inlinevirtual

Definition at line 40 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

40{ return fCharge; }

Referenced by TofROOTGeo::SetHits().

◆ GetCharge() [2/3]

virtual Double_t Tof2DScin::GetCharge ( )
inlinevirtual

Definition at line 40 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

40{ return fCharge; }

◆ GetCharge() [3/3]

virtual Double_t Tof2DScin::GetCharge ( )
inlinevirtual

Definition at line 40 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

40{ return fCharge; }

◆ GetChargeChannel() [1/3]

UInt_t Tof2DScin::GetChargeChannel ( ) const
inline

Definition at line 59 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

59{ return chargeChannel; }

Referenced by TofROOTGeo::DrawHits().

◆ GetChargeChannel() [2/3]

UInt_t Tof2DScin::GetChargeChannel ( ) const
inline

Definition at line 59 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

59{ return chargeChannel; }

◆ GetChargeChannel() [3/3]

UInt_t Tof2DScin::GetChargeChannel ( ) const
inline

Definition at line 59 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

59{ return chargeChannel; }

◆ GetObjectInfo() [1/3]

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

Definition at line 342 of file Tof2DScin.cxx.

342 {
343
344 BesView* view = dynamic_cast<BesView*>( gPad->GetView() );
345 if ( view ) return view->GetObjectInfo( px, py );
346 else return TObject::GetObjectInfo( px, py );
347}
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Definition BesView.cxx:871

◆ GetObjectInfo() [2/3]

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

◆ GetObjectInfo() [3/3]

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

◆ GetPart() [1/3]

virtual Int_t Tof2DScin::GetPart ( )
inlinevirtual

◆ GetPart() [2/3]

virtual Int_t Tof2DScin::GetPart ( )
inlinevirtual

Definition at line 50 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

50{ return fPart; }

◆ GetPart() [3/3]

virtual Int_t Tof2DScin::GetPart ( )
inlinevirtual

Definition at line 50 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

50{ return fPart; }

◆ GetTime() [1/3]

virtual Double_t Tof2DScin::GetTime ( )
inlinevirtual

Definition at line 39 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

39{ return fTime; }

◆ GetTime() [2/3]

virtual Double_t Tof2DScin::GetTime ( )
inlinevirtual

Definition at line 39 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

39{ return fTime; }

◆ GetTime() [3/3]

virtual Double_t Tof2DScin::GetTime ( )
inlinevirtual

Definition at line 39 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

39{ return fTime; }

◆ GetTimeChannel() [1/3]

UInt_t Tof2DScin::GetTimeChannel ( ) const
inline

Definition at line 58 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

58{ return timeChannel; }

Referenced by TofROOTGeo::DrawHits().

◆ GetTimeChannel() [2/3]

UInt_t Tof2DScin::GetTimeChannel ( ) const
inline

Definition at line 58 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

58{ return timeChannel; }

◆ GetTimeChannel() [3/3]

UInt_t Tof2DScin::GetTimeChannel ( ) const
inline

Definition at line 58 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

58{ return timeChannel; }

◆ HasZRSection() [1/3]

bool Tof2DScin::HasZRSection ( )
virtual

Definition at line 351 of file Tof2DScin.cxx.

351 {
352 bool flag = false;
353 BesView* view = dynamic_cast<BesView*>( gPad->GetView() );
354 Double_t viewPhi = view->GetLongitude();
355 viewPhi = Range360( viewPhi );
356 // if (GetName() == TString("Layer0Wire0")) cout << "view " << viewPhi << endl;
357
358 Double_t zrPhi = viewPhi - 90.0;
359 zrPhi = Range360( zrPhi );
360 // if (GetName() == TString("Layer0Wire0")) cout << zrPhi << endl;
361
362 for ( Int_t i = 0; i < 2; i++ )
363 {
364 if ( i == 1 )
365 {
366 zrPhi += 180.0;
367 zrPhi = Range360( zrPhi );
368 }
369
370 if ( zrPhi >= fPhiMin - fZRSectionTolerance[GetPart()] &&
371 zrPhi <= fPhiMax + fZRSectionTolerance[GetPart()] )
372 {
373 flag = true;
374 break;
375 }
376 else if ( fPhiMin > fPhiMax )
377 { // cross 0 degree
378 if ( zrPhi >= fPhiMin - fZRSectionTolerance[GetPart()] ||
379 zrPhi <= fPhiMax + fZRSectionTolerance[GetPart()] )
380 {
381 flag = true;
382 break;
383 }
384 }
385 }
386
387 return flag;
388}

Referenced by DistancetoPrimitive(), and Paint().

◆ HasZRSection() [2/3]

virtual bool Tof2DScin::HasZRSection ( )
virtual

◆ HasZRSection() [3/3]

virtual bool Tof2DScin::HasZRSection ( )
virtual

◆ IsFired() [1/3]

virtual bool Tof2DScin::IsFired ( )
inlinevirtual

Definition at line 31 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

31{ return fFired; }

Referenced by Paint().

◆ IsFired() [2/3]

virtual bool Tof2DScin::IsFired ( )
inlinevirtual

Definition at line 31 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

31{ return fFired; }

◆ IsFired() [3/3]

virtual bool Tof2DScin::IsFired ( )
inlinevirtual

Definition at line 31 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

31{ return fFired; }

◆ IsHighlighted() [1/3]

virtual bool Tof2DScin::IsHighlighted ( )
inlinevirtual

Definition at line 30 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

30{ return fHighlighted; }

Referenced by BesGeoTrack::ExecuteEvent(), ExecuteEvent(), and Paint().

◆ IsHighlighted() [2/3]

virtual bool Tof2DScin::IsHighlighted ( )
inlinevirtual

Definition at line 30 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

30{ return fHighlighted; }

◆ IsHighlighted() [3/3]

virtual bool Tof2DScin::IsHighlighted ( )
inlinevirtual

Definition at line 30 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

30{ return fHighlighted; }

◆ Paint() [1/3]

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

Definition at line 215 of file Tof2DScin.cxx.

215 {
216
217 TString opt = option;
218 opt.ToUpper();
219
220 BesView* view = dynamic_cast<BesView*>( gPad->GetView() );
221 if ( view->GetViewType() & kXYView )
222 {
223
224 if ( this->IsFired() )
225 {
226 if ( fScinXYFired )
227 {
228 fScinXYFired->SetLineColor( lcScinFired );
229 fScinXYFired->SetLineWidth( lwScinFired );
230 fScinXYFired->SetFillColor( fcScinFired );
231 fScinXYFired->SetFillStyle( fsScinFired );
232 }
233 }
234
235 if ( fScinXY )
236 {
237 fScinXY->SetLineColor( lcScin );
238 fScinXY->SetLineWidth( lwScin );
239 fScinXY->SetFillColor( fcScin );
240 fScinXY->SetFillStyle( fsScin );
241 }
242
243 if ( this->IsHighlighted() )
244 {
245 if ( fScinXY )
246 {
247 fScinXY->SetLineColor( lcScinHL );
248 fScinXY->SetLineWidth( lwScinHL );
249 fScinXY->SetFillColor( fcScinHL );
250 fScinXY->SetFillStyle( fsScinHL );
251 }
252 if ( fScinXYFired )
253 {
254 fScinXYFired->SetLineColor( lcScinFiredHL );
255 fScinXYFired->SetLineWidth( lwScinFiredHL );
256 fScinXYFired->SetFillColor( fcScinFiredHL );
257 fScinXYFired->SetFillStyle( fsScinFiredHL );
258 }
259 }
260
261 if ( fScinXY ) fScinXY->Paint();
262 if ( this->IsFired() )
263 {
264 if ( view->GetVisTofHitsGlobal() && ( ( fPart == 0 && view->GetVisTofHitsEast() ) ||
265 ( fPart == 1 && view->GetVisTofHitsBarrel() ) ||
266 ( fPart == 2 && view->GetVisTofHitsWest() ) ) )
267 {
268 if ( fScinXYFired )
269 {
270 // cout << "Tof fired Scin size " << fCharge/fChargeMax << endl;
271 fScinXYFired->Restore(); // restore default size
272 fScinXYFired->SetSize( fCharge / fChargeMax );
273 fScinXYFired->Paint();
274 }
275 }
276 }
277 }
278
279 if ( view->GetViewType() & kZRView )
280 {
281 if ( HasZRSection() )
282 {
283 if ( this->IsFired() )
284 {
285 if ( fScinZRFired )
286 {
287 fScinZRFired->SetLineColor( lcScinFired );
288 fScinZRFired->SetLineWidth( lwScinFired );
289 fScinZRFired->SetFillColor( fcScinFired );
290 fScinZRFired->SetFillStyle( fsScinFired );
291 }
292 }
293
294 if ( fScinZR )
295 {
296 fScinZR->SetLineColor( lcScin );
297 fScinZR->SetLineWidth( lwScin );
298 fScinZR->SetFillColor( fcScin );
299 fScinZR->SetFillStyle( fsScin );
300 }
301
302 if ( this->IsHighlighted() )
303 {
304 if ( fScinZR )
305 {
306 fScinZR->SetLineColor( lcScinHL );
307 fScinZR->SetLineWidth( lwScinHL );
308 fScinZR->SetFillColor( fcScinHL );
309 fScinZR->SetFillStyle( fsScinHL );
310 }
311 if ( fScinZRFired )
312 {
313 fScinZRFired->SetLineColor( lcScinFiredHL );
314 fScinZRFired->SetLineWidth( lwScinFiredHL );
315 fScinZRFired->SetFillColor( fcScinFiredHL );
316 fScinZRFired->SetFillStyle( fsScinFiredHL );
317 }
318 }
319
320 if ( fScinZR ) fScinZR->Paint();
321 if ( this->IsFired() )
322 {
323 if ( view->GetVisTofHitsGlobal() && ( ( fPart == 0 && view->GetVisTofHitsEast() ) ||
324 ( fPart == 1 && view->GetVisTofHitsBarrel() ) ||
325 ( fPart == 2 && view->GetVisTofHitsWest() ) ) )
326 {
327 if ( fScinZRFired )
328 {
329 // cout << "Tof fired Scin size " << fCharge/fChargeMax << endl;
330 fScinZRFired->Restore(); // restore default size
331 fScinZRFired->SetSize( fCharge / fChargeMax );
332 fScinZRFired->Paint();
333 }
334 }
335 }
336 }
337 }
338}

◆ Paint() [2/3]

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

◆ Paint() [3/3]

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

◆ Range360() [1/3]

Double_t Tof2DScin::Range360 ( Double_t input)

Definition at line 403 of file Tof2DScin.cxx.

403 {
404 if ( input >= 360.0 )
405 {
406 do {
407 input -= 360.0;
408 } while ( input >= 360.0 );
409 }
410 else if ( input < 0.0 )
411 {
412 do {
413 input += 360.0;
414 } while ( input < 0.0 );
415 }
416
417 return input;
418}

Referenced by GetAngle(), and HasZRSection().

◆ Range360() [2/3]

Double_t Tof2DScin::Range360 ( Double_t input)

◆ Range360() [3/3]

Double_t Tof2DScin::Range360 ( Double_t input)

◆ ResetTimeCharge() [1/3]

virtual void Tof2DScin::ResetTimeCharge ( )
inlinevirtual

Definition at line 41 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

41 {
42 fTime = 0.0;
43 fCharge = 0.0;
44 }

Referenced by TofROOTGeo::SetHits().

◆ ResetTimeCharge() [2/3]

virtual void Tof2DScin::ResetTimeCharge ( )
inlinevirtual

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

41 {
42 fTime = 0.0;
43 fCharge = 0.0;
44 }

◆ ResetTimeCharge() [3/3]

virtual void Tof2DScin::ResetTimeCharge ( )
inlinevirtual

Definition at line 41 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

41 {
42 fTime = 0.0;
43 fCharge = 0.0;
44 }

◆ SetCharge() [1/3]

virtual void Tof2DScin::SetCharge ( Double_t charge)
inlinevirtual

Definition at line 38 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

38{ fCharge = charge; }

Referenced by TofROOTGeo::SetHits().

◆ SetCharge() [2/3]

virtual void Tof2DScin::SetCharge ( Double_t charge)
inlinevirtual

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

38{ fCharge = charge; }

◆ SetCharge() [3/3]

virtual void Tof2DScin::SetCharge ( Double_t charge)
inlinevirtual

Definition at line 38 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

38{ fCharge = charge; }

◆ SetChargeChannel() [1/3]

void Tof2DScin::SetChargeChannel ( UInt_t cc)
inline

Definition at line 57 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

57{ chargeChannel = cc; }

Referenced by TofROOTGeo::SetHits().

◆ SetChargeChannel() [2/3]

void Tof2DScin::SetChargeChannel ( UInt_t cc)
inline

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

57{ chargeChannel = cc; }

◆ SetChargeChannel() [3/3]

void Tof2DScin::SetChargeChannel ( UInt_t cc)
inline

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

57{ chargeChannel = cc; }

◆ SetFired() [1/3]

virtual void Tof2DScin::SetFired ( bool status = true)
inlinevirtual

Definition at line 29 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

29{ fFired = status; }

Referenced by TofROOTGeo::DrawHits().

◆ SetFired() [2/3]

virtual void Tof2DScin::SetFired ( bool status = true)
inlinevirtual

Definition at line 29 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

29{ fFired = status; }

◆ SetFired() [3/3]

virtual void Tof2DScin::SetFired ( bool status = true)
inlinevirtual

Definition at line 29 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

29{ fFired = status; }

◆ SetHighlighted() [1/3]

virtual void Tof2DScin::SetHighlighted ( bool status = true)
inlinevirtual

Definition at line 28 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

28{ fHighlighted = status; }

Referenced by BesGeoTrack::ExecuteEvent(), and ExecuteEvent().

◆ SetHighlighted() [2/3]

virtual void Tof2DScin::SetHighlighted ( bool status = true)
inlinevirtual

Definition at line 28 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

28{ fHighlighted = status; }

◆ SetHighlighted() [3/3]

virtual void Tof2DScin::SetHighlighted ( bool status = true)
inlinevirtual

Definition at line 28 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

28{ fHighlighted = status; }

◆ SetStyle() [1/3]

void Tof2DScin::SetStyle ( )
virtual

Definition at line 98 of file Tof2DScin.cxx.

98 {
99 lcScin = 15;
100 lwScin = 1;
101 fcScin = 9003; // lightYellow
102 fsScin = 1001;
103
104 lcScinFired = kRed;
105 lwScinFired = 1;
106 fcScinFired = kRed;
107 fsScinFired = 1001;
108
109 lcScinHL = lcScin;
110 lwScinHL = 1;
111 fcScinHL = kBlue;
112 fsScinHL = 1001;
113
114 lcScinFiredHL = kRed;
115 lwScinFiredHL = 2;
116 fcScinFiredHL = kBlue;
117 fsScinFiredHL = 4000;
118}

Referenced by Tof2DScin().

◆ SetStyle() [2/3]

virtual void Tof2DScin::SetStyle ( )
virtual

◆ SetStyle() [3/3]

virtual void Tof2DScin::SetStyle ( )
virtual

◆ SetTime() [1/3]

virtual void Tof2DScin::SetTime ( Double_t time)
inlinevirtual

Definition at line 37 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

37{ fTime = time; }
Double_t time

◆ SetTime() [2/3]

virtual void Tof2DScin::SetTime ( Double_t time)
inlinevirtual

Definition at line 37 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

37{ fTime = time; }

◆ SetTime() [3/3]

virtual void Tof2DScin::SetTime ( Double_t time)
inlinevirtual

Definition at line 37 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

37{ fTime = time; }

◆ SetTimeChannel() [1/3]

void Tof2DScin::SetTimeChannel ( UInt_t tc)
inline

Definition at line 56 of file EventDisplay/BesVisLib/include/BesVisLib/Tof2DScin.h.

56{ timeChannel = tc; }

Referenced by TofROOTGeo::SetHits().

◆ SetTimeChannel() [2/3]

void Tof2DScin::SetTimeChannel ( UInt_t tc)
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-dbg/include/BesVisLib/Tof2DScin.h.

56{ timeChannel = tc; }

◆ SetTimeChannel() [3/3]

void Tof2DScin::SetTimeChannel ( UInt_t tc)
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-opt/include/BesVisLib/Tof2DScin.h.

56{ timeChannel = tc; }

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