Changeset 2416 for trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
- Timestamp:
- 10/20/03 21:32:30 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r2414 r2416 215 215 // <index> The pixel with the given index is drawn 216 216 // 217 // Rem: DrawTS is the thread-safe version of Draw. In most cases 218 // you can use Draw instead 219 // 220 void MRawEvtData::DrawTS(TVirtualPad *pad=NULL, Option_t *opt="") 217 void MRawEvtData::Draw(Option_t *opt) 221 218 { 222 219 if (GetNumPixels()==0) 223 220 { 224 221 *fLog << warn << "Sorry, no pixel to draw!" << endl; 225 return;226 }227 if (!pad)228 {229 *fLog << warn << "MRawEvtData::DrawTS - No pad available..." << endl;230 222 return; 231 223 } … … 246 238 if (!pix.Jump(id)) 247 239 { 248 *fLog << warn << "Pixel Idx #" << dec<< id << " doesn't exist!" << endl;240 *fLog << warn << dec << "Pixel Idx #" << id << " doesn't exist!" << endl; 249 241 return; 250 242 } … … 275 267 276 268 graphhi->SetBit(kCanDelete); 277 MParContainer::DrawTS(graphhi, pad,same ? "C*" : "AC*");269 graphhi->Draw(same ? "C*" : "AC*"); 278 270 279 271 TH1F *histhi = graphhi->GetHistogram(); … … 294 286 295 287 graphlo->SetBit(kCanDelete); 296 MParContainer::DrawTS(graphlo, pad,"C*");288 graphlo->Draw("C*"); 297 289 298 290 TH1F *histlo = graphlo->GetHistogram(); … … 308 300 { 309 301 // FIXME: Add Legend 310 *fLog << inf << "Drawing Histogram of Pixel with Idx #"; 311 *fLog << dec << pix.GetPixelId() << endl; 302 *fLog << inf << "Drawing Histogram of Pixel with Idx #" << dec << pix.GetPixelId() << endl; 312 303 313 304 TH1F *histh = new TH1F(name, "FADC Samples", nh, -0.5, nh-.5); … … 318 309 histh->Fill(i, higains[i]); 319 310 histh->SetBit(kCanDelete); 320 MParContainer::DrawTS(histh, pad,same ? "same" : "");311 histh->Draw(same ? "same" : ""); 321 312 322 313 if (nl>0) … … 328 319 histl->Fill(i, logains[i]); 329 320 histl->SetBit(kCanDelete); 330 MParContainer::DrawTS(histl, pad,"same");321 histl->Draw("same"); 331 322 } 332 323 return; … … 543 534 evt.fArraySize = fArraySize; 544 535 } 545
Note:
See TracChangeset
for help on using the changeset viewer.