Ignore:
Timestamp:
10/20/03 21:32:30 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
2 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 
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.h

    r2414 r2416  
    5252    void Clear(Option_t * = NULL);
    5353    void Print(Option_t * = NULL) const;
    54     void DrawTS(TVirtualPad *pad=NULL, Option_t *option="");
    55     void Copy(TObject &named)
    56 #if ROOT_VERSION_CODE > ROOT_VERSION(3,04,01)
    57 const
    58 #endif
    59         ;
     54    void Draw (Option_t * = NULL);
    6055
    6156    void DeletePixels(Bool_t flag=kFALSE);
     
    7065
    7166    Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
    72     void   DrawPixelContent(Int_t num, TVirtualPad *pad=NULL) const
     67    void   DrawPixelContent(Int_t num) const
    7368    {
    7469        TString s("HIST");
    7570        s += num;
    76         const_cast<MRawEvtData*>(this)->DrawTS(pad, s);
    77         //const_cast<MRawEvtData*>(this)->Draw(s);
     71        const_cast<MRawEvtData*>(this)->Draw(s);
    7872    }
     73
     74    void Copy(TObject &named)
     75#if ROOT_VERSION_CODE > ROOT_VERSION(3,04,01)
     76        const
     77#endif
     78        ;
    7979
    8080    ClassDef(MRawEvtData, 2) //Container to store the raw Event Data
Note: See TracChangeset for help on using the changeset viewer.