HQAOutputPS
class description - source file - inheritance tree (.pdf)
private:
void makeNewPage(TString type)
void makePDF()
void setStyle()
public:
HQAOutputPS()
HQAOutputPS(TString fname)
HQAOutputPS(const HQAOutputPS&)
~HQAOutputPS()
static TClass* Class()
void closePS()
void generatePDF(Bool_t kpdf)
virtual TClass* IsA() const
void makeHist(TList* h)
void makeText(TList* h)
HQAOutputPS& operator=(const HQAOutputPS&)
void saveScal(TList* h, TString fnamePS)
void setDSTFileName(const char* file)
void setNHistPerPage(Int_t nh)
void setStats(Int_t nEvents, Int_t nQAProcessed = 0)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
void writeHist(TList* h)
void writeHist(TList* h1, TList* h2, TString fnamePS)
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)
HQAOutputPS
This class creates a postscript file using TPostScript, and histograms are
added by iterating over TList(s) of active histograms.
Histograms must be of type TH1F, TH2F, or TProfile.
Scalers are added with a TList of HQAScaler and HQAScaler6 objects.
For more information, see the QA home page.
HQAOutputPS(TString fname)
Default constructor, filename must be supplied
~HQAOutputPS()
Default destructor
void writeHist(TList *histList)
Output histograms to Root file (just a simple version)
void writeHist(TList *histList1, TList *histList2, TString fnamePS)
Output histograms to Root file (not really implemented yet)
modified for 2 TLists to be plotted at ones
void makeHist(TList *histList)
This is the class's main function. The canvas is defined, and the TList of
histograms is iterated. Each histogram is drawn according to its type.
void makeText(TList *scalerList)
Method for generating output for scalers
void saveScal(TList *scalerList, TString fnamePS)
Derived from //Method for generating output for scalers
Used to save scalers into txt-file
void closePS()
Closes files and deletes the canvas
void makePDF()
Execute ps2pdf GhostScript command on closed PS file, delete PS file
void makeNewPage(TString type)
In addition to making a new page in the PS file, this function writes the
header at the top of each page and defines the histogram pad.
void setStyle()
Set drawing styles for histograms and PostScript file
Inline Functions
HQAOutputPS HQAOutputPS(TString fname)
void generatePDF(Bool_t kpdf)
void setNHistPerPage(Int_t nh)
void setStats(Int_t nEvents, Int_t nQAProcessed = 0)
void setDSTFileName(const char* file)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
HQAOutputPS HQAOutputPS(const HQAOutputPS&)
HQAOutputPS& operator=(const HQAOutputPS&)
Author: Dan Magestro (magestro@gsi.de)
Last update: 24/01/2002
ROOT page - Class index - Class Hierarchy - 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 ROOT support, or contact the developers with any questions or problems regarding ROOT.