Ignore:
Timestamp:
10/20/03 21:32:30 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r2414 r2416  
    215215//     <index>      The pixel with the given index is drawn
    216216//
    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="")
     217void MRawEvtData::Draw(Option_t *opt)
    221218{
    222219    if (GetNumPixels()==0)
    223220    {
    224221        *fLog << warn << "Sorry, no pixel to draw!" << endl;
    225         return;
    226     }
    227     if (!pad)
    228     {
    229         *fLog << warn << "MRawEvtData::DrawTS - No pad available..." << endl;
    230222        return;
    231223    }
     
    246238    if (!pix.Jump(id))
    247239    {
    248         *fLog << warn << "Pixel Idx #" << dec << id << " doesn't exist!" << endl;
     240        *fLog << warn << dec << "Pixel Idx #" << id << " doesn't exist!" << endl;
    249241        return;
    250242    }
     
    275267
    276268        graphhi->SetBit(kCanDelete);
    277         MParContainer::DrawTS(graphhi, pad, same ? "C*" : "AC*");
     269        graphhi->Draw(same ? "C*" : "AC*");
    278270
    279271        TH1F *histhi = graphhi->GetHistogram();
     
    294286
    295287            graphlo->SetBit(kCanDelete);
    296             MParContainer::DrawTS(graphlo, pad, "C*");
     288            graphlo->Draw("C*");
    297289
    298290            TH1F *histlo = graphlo->GetHistogram();
     
    308300    {
    309301        // 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;
    312303
    313304        TH1F *histh = new TH1F(name, "FADC Samples", nh, -0.5, nh-.5);
     
    318309            histh->Fill(i, higains[i]);
    319310        histh->SetBit(kCanDelete);
    320         MParContainer::DrawTS(histh, pad, same ? "same" : "");
     311        histh->Draw(same ? "same" : "");
    321312
    322313        if (nl>0)
     
    328319                histl->Fill(i, logains[i]);
    329320            histl->SetBit(kCanDelete);
    330             MParContainer::DrawTS(histl, pad, "same");
     321            histl->Draw("same");
    331322        }
    332323        return;
     
    543534    evt.fArraySize       = fArraySize;
    544535}
    545 
Note: See TracChangeset for help on using the changeset viewer.