//*-- Author : Dan Magestro (magestro@gsi.de)
//*-- Modified : 24/01/2002
#ifndef HQAOUTPUTPS_H
#define HQAOUTPUTPS_H

#include "TPostScript.h"

class TCanvas;
class TPad;

class HQAOutputPS : public TPostScript {

public:
  HQAOutputPS() {}
  HQAOutputPS(TString fname);
  ~HQAOutputPS();


  void writeHist(TList *h);
  //void writeHist(TList *h1, TList *h2); //for 2 lists //asd
  void writeHist(TList *h1, TList *h2, TString fnamePS); //for 2 lists into another root file //asd
  void makeHist(TList *h);
  void makeText(TList *h);
  void saveScal(TList *h, TString fnamePS); //asd txt-file output for scalers
  
  void generatePDF(Bool_t kpdf) {kPDF = kpdf;}

  void closePS();

  void setNHistPerPage(Int_t nh) {nHistPerPage = nh;}

  inline void setStats(Int_t nEvents, Int_t nQAProcessed = 0);
  inline void setDSTFileName(const Char_t *file) {fnameDST = file;}

private:
  TCanvas *fCanvas;       //! canvas
  TPad    *fHistPad;      //! histogram pad

  Int_t pageCount;        //! counts pages of a certain type
  Int_t histCount;        //! counts histograms for page breaks
  Int_t nProcessed;       //! number of events QA'd
  Int_t nHistPerPage;     //! user-supplied parameter (default=6)
  Int_t nEvent;           //! total number of events in output file

  Bool_t kFIRST;          //! needed for one-time formatting
  Bool_t kPDF;            //! generate PDF file using ps2pdf; default = kTRUE

  TString fnamePS;        //! PS filename
  TString fnameDST;       //! DST filename (used in page header)

  void makeNewPage(TString type);
  void setStyle();
  void makePDF();

  ClassDef(HQAOutputPS,1) // QA Postscript file generator
};

inline void HQAOutputPS::setStats(Int_t nEvents, Int_t nQAProcessed) {
  nEvent = nEvents;
  nProcessed = nQAProcessed;
}

#endif

Last change: Sat May 22 13:07:49 2010
Last generated: 2010-05-22 13:07

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