113{
115
118 }
120
121 if (gPad) gPad->SetCursor(kPointer);
122
123 Int_t width, color;
124 Int_t normalWidth = 1, hlWidth = 2;
125
126 switch (event) {
127 case kMouseEnter:
128 if (fType == 0) {
130 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
132 if (aHit != 0) {
135 }
136 }
137 }
138 }
139 }
140 else if (fType == 1) {
142 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
144 if (aHit != 0) {
149 }
150 }
151 }
152 }
153 }
154 else if (fType == 2) {
156 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
158 if (aHit != 0) {
163 }
164 }
165 }
166 }
167 }
168 else if (fType == 3) {
170 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
172 if (aHit != 0) {
175 }
176 }
177 }
178 }
179 }
180
181
182 if (fType == 0) {
183 width = this->GetLineWidth();
184 color = this->GetLineColor();
187 }
188 else if (fType == 1) {
189 fMarker->SetMarkerColor(kMagenta);
190 }
191 else if (fType == 2) {
192 fMarker->SetMarkerColor(kMagenta);
193 }
194 else if (fType == 3) {
195 width = this->GetLineWidth();
196 color = this->GetLineColor();
199 }
200 else if (fType == 4) {
203 }
204
207
208
209
211 gPad->Modified();
212 gPad->Update();
213 break;
214
215 case kMouseLeave:
216 if (fType == 0) {
217 for (Int_t i = 0; i < (Int_t)fHits.GetEntries(); i++) {
221 }
222 }
223 }
224 else if (fType == 1) {
225 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
229 }
230 }
231 }
232 else if (fType == 2) {
233 for (Int_t i = 0; i < fHits.GetEntries(); i++) {
237 }
238 }
239 }
240 else if (fType == 3) {
241 for (Int_t i = 0; i < (Int_t)fHits.GetEntries(); i++) {
245 }
246 }
247 }
248
249
250 if (fType == 0) {
253 }
254 else if (fType == 1) {
255 fMarker->SetMarkerColor(kBlack);
256 }
257 else if (fType == 2) {
258 fMarker->SetMarkerColor(kBlack);
259 }
260 else if (fType == 3) {
263 }
264 else if (fType == 4) {
267 }
268
270 gPad->Modified();
271 gPad->Update();
272 break;
273 }
274
275 TGeoTrack::ExecuteEvent(event, px, py);
276 }
277}
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()