127{
129
132 }
134
135 if (gPad) gPad->SetCursor(kPointer);
136
137 Int_t width, color;
138 Int_t normalWidth = 1, hlWidth = 2;
139
140 switch (event) {
141 case kMouseEnter:
142 if (fType == 0) {
144 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
146 if (aHit != 0) {
149 }
150 }
151 }
152 }
153 }
154 else if (fType == 1) {
156 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
158 if (aHit != 0) {
163 }
164 }
165 }
166 }
167 }
168 else if (fType == 2) {
170 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
172 if (aHit != 0) {
177 }
178 }
179 }
180 }
181 }
182 else if (fType == 3) {
184 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
186 if (aHit != 0) {
189 }
190 }
191 }
192 }
193 }
194
195
196 if (fType == 0) {
197 width = this->GetLineWidth();
198 color = this->GetLineColor();
201 }
202 else if (fType == 1) {
203 fMarker->SetMarkerColor(kMagenta);
204 }
205 else if (fType == 2) {
206 fMarker->SetMarkerColor(kMagenta);
207 }
208 else if (fType == 3) {
209 width = this->GetLineWidth();
210 color = this->GetLineColor();
213 }
214 else if (fType == 4) {
217 }
218 else if (fType == 6 || fType == 7)
219 {
220 fMarker->SetMarkerColor(kViolet);
221 fMarker->SetMarkerStyle(8);
222 }
223
226
227
228
230 gPad->Modified();
231 gPad->Update();
232 break;
233
234 case kMouseLeave:
235 if (fType == 0) {
236 for (Int_t i = 0; i < (Int_t)fHits.GetEntries(); i++) {
240 }
241 }
242 }
243 else if (fType == 1) {
244 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
248 }
249 }
250 }
251 else if (fType == 2) {
252 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
256 }
257 }
258 }
259 else if (fType == 3) {
260 for (Int_t i = 0; i < (Int_t)fHits.GetEntries(); i++) {
264 }
265 }
266 }
267
268
269 if (fType == 0) {
272 }
273 else if (fType == 1) {
274 fMarker->SetMarkerColor(kBlack);
275 }
276 else if (fType == 2) {
277 fMarker->SetMarkerColor(kBlack);
278 }
279 else if (fType == 3) {
282 }
283 else if (fType == 4) {
286 }
287 else if (fType == 6 || fType == 7)
288 {
289 fMarker->SetMarkerColor(kBlack);
290 fMarker->SetMarkerStyle(4);
291 }
292
294 gPad->Modified();
295 gPad->Update();
296 break;
297 }
298
299 TGeoTrack::ExecuteEvent(event, px, py);
300 }
301}
R__EXTERN BesCursor * gBesCursor
virtual void SetPos(Int_t px, Int_t py)
Bool_t GetVisMucHitsGlobal()
Bool_t GetVisMdcHitsGlobal()
Bool_t GetVisEmcHitsBarrel()
Bool_t GetVisEmcHitsGlobal()
virtual void UpdateView(Bool_t resetview=kFALSE)
Bool_t GetVisEmcHitsWest()
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Bool_t GetVisTofHitsWest()
Bool_t GetVisTofHitsGlobal()
Bool_t GetVisEmcHitsEast()
Bool_t GetVisTofHitsBarrel()
Bool_t GetVisTofHitsEast()
virtual void SetHighlighted(bool status=true)
virtual bool IsHighlighted()
virtual void SetHighlighted(bool status=true)
virtual bool IsHighlighted()
virtual void SetHighlighted(bool status=true)
virtual bool IsHighlighted()
virtual void SetHighlighted(bool status=true)
virtual bool IsHighlighted()