Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SaveCanvas.C File Reference
#include <TList.h>
#include <TClass.h>
#include <TCanvas.h>
#include <TSystem.h>
#include <TPad.h>
#include <TString.h>
#include <TDirectory.h>
#include <TFile.h>
#include <TStyle.h>
#include <TObject.h>
#include <TH1F.h>
#include <iostream>
+ Include dependency graph for SaveCanvas.C:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SaveCanvas_C
 

Functions

void SavePad (TPad *p)
 Service function to SaveCanvas()
 
void SaveCanvas (TCanvas *c, TString name="", Bool_t bEPS=kTRUE)
 Save canvas to multiple formats.
 
void example_save_canvas ()
 example to use this SaveCanvas()
 

Macro Definition Documentation

#define SaveCanvas_C

Definition at line 13 of file SaveCanvas.C.

View newest version in sPHENIX GitHub at line 13 of file SaveCanvas.C

Function Documentation

void example_save_canvas ( )

example to use this SaveCanvas()

Output: The canvas data will be saved to RootFileName.root, as well as RootFileName.png for presentation and RootFileName.eps for Latex

How to use RootFileName.root open RootFileName.root with root. It contains the canvas object "CanvasTest", which can be redraw with CanvasTest -> Draw() It also contains a copy of the histograms and graphs data for use in root again, e.g. root [3] h1->GetBinContent(30)

Definition at line 131 of file SaveCanvas.C.

View newest version in sPHENIX GitHub at line 131 of file SaveCanvas.C

References h1, and SaveCanvas().

+ Here is the call graph for this function:

void SaveCanvas ( TCanvas *  c,
TString  name = "",
Bool_t  bEPS = kTRUE 
)

Save canvas to multiple formats.

Parameters
[in]cpointer to the canvas
[in]nameBase of the file name. The default is the name of the cavas
[in]bEPStrue = save .eps and .pdf format too.

Definition at line 76 of file SaveCanvas.C.

View newest version in sPHENIX GitHub at line 76 of file SaveCanvas.C

References f, perf_headwind::name, SavePad(), ambiguity_solver_full_chain::x, and y.

+ Here is the call graph for this function:

void SavePad ( TPad *  p)

Service function to SaveCanvas()

Definition at line 33 of file SaveCanvas.C.

View newest version in sPHENIX GitHub at line 33 of file SaveCanvas.C

References next, merge_hashes::p, and SavePad().

+ Here is the call graph for this function: