Analysis Software
Documentation for sPHENIX simulation software
|
#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>
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() | |
#define SaveCanvas_C |
Definition at line 13 of file SaveCanvas.C.
View newest version in sPHENIX GitHub at line 13 of file SaveCanvas.C
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().
void SaveCanvas | ( | TCanvas * | c, |
TString | name = "" , |
||
Bool_t | bEPS = kTRUE |
||
) |
Save canvas to multiple formats.
[in] | c | pointer to the canvas |
[in] | name | Base of the file name. The default is the name of the cavas |
[in] | bEPS | true = 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.
Referenced by AmplitudeCheck(), CentralCalorimeterRate(), ChannelCheck(), ChargeCheck(), ChargePerLayer(), Check(), Check1(), Check2(), ClusterQA(), Clusters3D(), ClusterSizeScan(), CrossSection2RAA(), CrossSection2RAA_Proposal(), CrossSection2v2(), CrossSection2zg(), DataRate(), DCACheck(), dNchdEta(), dNdeta(), Draw_HFJetTruth_DrawCrossSection_PR(), Draw_HFJetTruth_InvMass_DrawCrossSection_PR(), DrawCalibratedE(), DrawCalibratedE_Plot(), DrawCalibratedE_PlotTestBeam(), DrawCalibratedE_Tower(), DrawCluster_Linearality(), DrawCluster_Res(), DrawCluster_Res_2Fit(), DrawCluster_Res_2Fit_1DSpacalNoSVX(), DrawCluster_Res_2Fit_1DSpacalNoSVX_Eta3(), DrawCluster_Res_2Fit_2DSpacalNoSVX(), DrawCluster_Res_2Fit_Electron_NoSVX(), DrawCrossSection(), DrawDist(), DrawEcal_BlockCalibration(), DrawEMCalTower_LineShape(), DrawEMCalTower_Resolution(), DrawEMCalTower_Resolution_Compare(), DrawEnergyDensity(), DrawEnergyDensityXY(), DrawFieldMap(), DrawLeakage(), DrawLeakage_LY(), DrawLeakage_Phi(), DrawLeakage_Phi_Folding(), DrawLeakage_Wide(), DrawPrototype2EMCalTower_Resolution(), DrawPrototype2EMCalTower_ResolutionRecalib(), DrawSF(), DrawTower_EMCDistribution(), DrawTower_EMCDistribution5x5(), DrawTower_EMCTrigEff(), DrawTower_EMCTrigEff_SlideingWindow2(), DrawTower_Raw_E(), DrawTowerIDCheck(), DrawTowerSum_Res_2Fit_1DSpacalNoSVX(), DrawTowerSum_Res_2Fit_1DSpacalNoSVX_Eta3(), DrawTpcPrototypeGenFitTrkFitter_Summary(), Edep_Checks(), Edep_Distribution(), Edep_LL_Distribution(), EMC_HodoScope_Calibration(), EMCDistribution(), EMCDistribution_ADC(), EMCDistribution_Fast(), EMCDistribution_HCalCalibration(), EMCDistribution_PeakSample_Fast(), EMCDistribution_ShowShape(), EMCDistribution_SUM(), EMCDistribution_SUM_RawADC(), EMCDistributionVSBeam_SUM(), Ep_Checks(), EP_LL_Distribution(), EtaScan(), EventCheck(), example_save_canvas(), FEEDataSize(), FitVerticalScan(), ForwardCalorimeterRate(), FullCyl(), FullCylEIC(), FullCylRProj(), FullCylRProjPHENIXComparison(), FullCylZProj(), Get_Res_linear_Summmary(), Get_Res_linear_Summmary_Sim(), GetBeamMom(), getMeanRMS(), GetResolution(), han_BUP2020(), HitPositionCheck(), HodoscopeCheck(), KinematicsChecks(), LineShapeCompare(), LineShapeCompare_Electron(), LineShapeData(), LineShapeSim(), MakeChipMultiplicitySet(), makeLcD0_BUP2020(), makeLcD0_BUP2022(), MakeRadiusCut(), makeV1_BUP2020(), Occupancy(), PIDScan(), plot_sPHENIX_A_N_dp_BUP2020(), PositionDependenceData(), PositionDependenceSim(), RecoCheck(), RejectionCompare(), RejectionCurve(), RejectionCurve_AuAuSummary(), RejectionCurve_AuAuSummary_Compare(), RejectionCurve_AuAuSummary_Compare2(), RejectionCurve_AuAuSummaryPos(), RejectionCurve_PIDComparison(), RejectionCurve_PiProton(), RejectionCurve_PiProtonPos(), RejectionCurve_ppSummary(), RejectionCurve_ppSummaryPos(), RejectionCurve_RejMethodComparison(), RejectionCurve_RejMethodComparison_AntiProton(), RejectionCurvePos(), Resolution(), Sampling(), SectorDataSize(), ShowerShape_Checks(), SimPositionCheck(), Track3D(), TrackClusterEnergy(), TrackDistortion(), TrackerRate(), TrackProjection_Checks(), TrackProjection_Checks_Comparison(), TrackQA(), TriggerMultiplicity(), UpsilonPair_Checks(), VertexChecks(), VertexCyl(), and WaveletCheck().
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, and merge_hashes::p.
Referenced by SaveCanvas(), and SavePad().