Ignore:
Timestamp:
02/10/09 20:00:10 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/melectronics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/melectronics/MPulseShape.cc

    r9280 r9312  
    127127    Clear();
    128128    fSpline = new MSpline3(g);//, fRunHeader->GetFreqSampling()/1000.);
     129    fSpline->SetTitle("MPulseShape");
    129130
    130131    // FIXME: Make a boundary condition e1b1,0,0 (First der, at Xmin and Xmax==0)
     
    146147    Clear();
    147148    fSpline = new MSpline3(f);//, fRunHeader->GetFreqSampling()/1000.);
     149    fSpline->SetTitle("MPulseShape");
    148150
    149151    // FIXME: Make a boundary condition e1b1,0,0 (First der, at Xmin and Xmax==0)
     
    200202    return rc;
    201203}
     204
     205void MPulseShape::Paint(Option_t *)
     206{
     207    fSpline->SetMarkerStyle(kFullDotMedium);
     208
     209    if (!fSpline->GetHistogram())
     210        fSpline->Paint();
     211
     212    TH1 *h = fSpline->GetHistogram();
     213    if (!h)
     214        return;
     215
     216    h->SetXTitle("t [ns]");
     217    h->SetYTitle("a.u.");
     218
     219    fSpline->Paint("PC");
     220}
  • trunk/MagicSoft/Mars/melectronics/MPulseShape.h

    r9274 r9312  
    3636
    3737    void Clear(Option_t *o="");
     38    void Paint(Option_t *o="");
    3839
    3940    MSpline3 *GetSpline() const { return fSpline; }
     
    4344    Float_t GetXmax() const;
    4445
    45     ClassDef(MPulseShape, 0) // Parameter container to hold the setup for a pulse shape
     46    ClassDef(MPulseShape, 1) // Parameter container to hold the setup for a pulse shape
    4647};
    4748
Note: See TracChangeset for help on using the changeset viewer.