VSPlot


class description - source file - inheritance tree

class VSPlot : public TH1D

    private:
void BuildVSP() public:
VSPlot VSPlot() VSPlot VSPlot(Text_t* name, Text_t* title, Int_t nbinsx, Axis_t xlow, Axis_t xup, VManager* serie) VSPlot VSPlot(Text_t* name, Text_t* title, Int_t nbinsx, Axis_t xlow, Axis_t xup) VSPlot VSPlot(Text_t* name, Text_t* title, Text_t* asciifilename) VSPlot VSPlot(Text_t* name, Text_t* title, Int_t nbinsx, Axis_t* xbins) VSPlot VSPlot(VSPlot& vsplot) virtual void ~VSPlot() void AbandonManager() void AdoptManager(VManager* mgr) static TClass* Class() void Copy(TObject& newvsp) virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) TH1* DrawCopy(Option_t* option) Stat_t GetAverageLevel() VGPSTime GetGPSStart() Int_t GetLeapS() Int_t GetLocalTime() VManager* GetManager() const virtual char* GetObjectInfo(Int_t px, Int_t py) const Stat_t GetPlotRMS() Int_t GetStartTimeDisplay() Double_t GetStartTimeXOffset() Double_t GetStartTimeYOffset() void GetStats(Stat_t* stats) Double_t GetStep() virtual TClass* IsA() const virtual void Paint(Option_t* option) void PaintStatVS(Int_t dostat, TF1* fit) void SetGPSStart(UInt_t gpsstartS, UInt_t gpsstartNS) void SetGPSStart(Double_t gpsstart) void SetLeapS(Int_t leaps) void SetLocalTime(Int_t localtime) void SetStartTimeDisplay(Int_t mode) void SetStartTimeXOffset(Double_t offset) void SetStartTimeYOffset(Double_t offset) void SetStep(Double_t step) Int_t ShiftAppend(Int_t nval, Double_t* values) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
VManager* mManager Manager maintaining this plot VGPSTime mGPSStart Start time of the series for this plot Double_t mStep Step (sample) size of the series for this plot Int_t mLeapS leap seconds for calculating UTC time Int_t mLocalTime offset factor for calculating local time Int_t fStartTimeDisplay on/off Flag to display start time below axis Double_t mStartTimeXOffset X offset for start time display Double_t mStartTimeYOffset Y offset for start time display TString mUnitX units on the X axis TString mUnitY units on the Y axis

Class Description

                                                                      
 VSPlot                                                               
                                                                      
 class describing a plot (representation) of a series                 
                                                                      


void Copy(TObject& newvsp)

void BuildVSP()
 Builds the VSPlot and deletes VSPlots having the same name and maintained
 by the same manager

void AbandonManager()
 Removes this plot from the maintenance of the VEGA manager

void AdoptManager(VManager* mgr)
 Adopt the manager as the maintainer of this plot

Stat_t GetPlotRMS()
 Return the Root Mean Square of the values of this series

Stat_t GetAverageLevel()
 Return the average level of the values of this series

void GetStats(Stat_t *stats)
 fill the array stats from the contents of this plot/series
 The array stats must be correctly dimensionned in the calling program.
 stats[0] = sumw
 stats[1] = sumw2
 stats[2] = sumwx
 stats[3] = sumwx2
 stats[4] = sumwy   if 2-d or 3-d
 stats[5] = sumwy2
 stats[6] = sumwz   if 3-d
 stats[7] = sumwz2

 If no axis-subrange is specified (via TAxis::SetRange), the array stats
 is simply a copy of the statistics quantities computed at filling time.
 If a sub-range is specified, the function recomputes these quantities
 from the bin contents in the current axis range.

Int_t ShiftAppend(Int_t nval, Double_t* values)
 Shift the contents of the VSPlot.
 "nval" is the length of the "values" input array, nval values are removed
 from the beginning of the VSPlot and the new nval values are appended
 to the end. If nval is bigger than the number of points in the plot,
 nothing is done.
 The start GPS time is adjusted accordingly.
 Returns 1 in case of success, 0 otherwise

TH1* DrawCopy(Option_t *option)

Int_t DistancetoPrimitive(Int_t px, Int_t py)
 -*-*-*-*-*-*-*-*-*Compute distance from point px,py to a line*-*-*-*-*-*
                   ===========================================
   Compute the closest distance of approach from point px,py to elements
   of a VSPlot. Special treatment due to x axis being time axis.
   in the case of "sameti" option, have to shift the plots so they
   coincide in time.
   The distance is computed in pixels units.

void Paint(Option_t *option)
*-*-*-*-*-*-*-*-*Control routine to paint the VSPlots*-*-*-*-*-*-*
*-*              ===============================================

  This function is automatically called by TCanvas::Update.
  (see TH1::Draw for the list of options)

void PaintStatVS(Int_t dostat, TF1 *fit)
 *-*-*-*-*-*-*-*-*-*-*-*Draw the statistics box*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
 *-*                    =======================
 The type of information printed in the VSPlot statistics box
  can be selected via gVStyle->SetOptStat(mode).
  The parameter mode can be = rasn  (default = 1111)
    n = 1;  name of histogram is printed
    s = 1;  start time of the vector
    a = 1;  average value printed
    r = 1;  rms printed
  Example: gStyle->SetOptStat(11);
           print only name of vsplot and start time.

 The type of information about fit parameters printed in the histogram
 statistics box can be selected via the parameter mode.
  The parameter mode can be = pcev  (default = 0111)
    v = 1;  print name/values of parameters
    e = 1;  print errors (if e=1, v must be 1)
    c = 1;  print Chisquare/Number of degress of freedom
    p = 1;  print Probability
  Example: gStyle->SetOptFit(1011);
           print fit probability, parameter names/values and errors.


char* GetObjectInfo(Int_t px, Int_t py) const
   Redefines TObject::GetObjectInfo.
   Displays the vsplot info (time, bin number, contents)
   corresponding to cursor position px,py


void SetGPSStart(Double_t gpsstart)
 Set GPS time of the start of the X axis

void SetGPSStart(UInt_t gpsstartS, UInt_t gpsstartNS)
 Set GPS time of the start of the X axis



Inline Functions


             VSPlot VSPlot()
             VSPlot VSPlot(Text_t* name, Text_t* title, Int_t nbinsx, Axis_t xlow, Axis_t xup, VManager* serie)
             VSPlot VSPlot(Text_t* name, Text_t* title, Int_t nbinsx, Axis_t xlow, Axis_t xup)
             VSPlot VSPlot(Text_t* name, Text_t* title, Text_t* asciifilename)
             VSPlot VSPlot(Text_t* name, Text_t* title, Int_t nbinsx, Axis_t* xbins)
             VSPlot VSPlot(VSPlot& vsplot)
          VManager* GetManager() const
           VGPSTime GetGPSStart()
           Double_t GetStep()
              Int_t GetLocalTime()
              Int_t GetLeapS()
              Int_t GetStartTimeDisplay()
           Double_t GetStartTimeXOffset()
           Double_t GetStartTimeYOffset()
               void SetStep(Double_t step)
               void SetLocalTime(Int_t localtime)
               void SetLeapS(Int_t leaps)
               void SetStartTimeDisplay(Int_t mode)
               void SetStartTimeXOffset(Double_t offset)
               void SetStartTimeYOffset(Double_t offset)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
               void ~VSPlot()
Last update: Tue Jul 1 17:29:41 2003


- ROOT page - VEGA page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to , or contact with any questions or problems regarding ROOT or VEGA.