REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Data Structures | Public Member Functions | Private Member Functions | Private Attributes
TRestAnalysisPlot Class Reference

Detailed Description

Definition at line 45 of file TRestAnalysisPlot.h.

Inheritance diagram for TRestAnalysisPlot:
TRestMetadata

Data Structures

struct  HistoInfoSet
 
struct  PanelInfo
 
struct  PlotInfoSet
 

Public Member Functions

void AddFile (const TString &fileName)
 
 ClassDefOverride (TRestAnalysisPlot, 4)
 
TVector2 GetCanvasDivisions () const
 
TVector2 GetCanvasSize () const
 
Int_t GetPlotIndex (const TString &plotName)
 
void Initialize () override
 Making default settings. More...
 
void PlotCombinedCanvas ()
 
void PrintMetadata () override
 Implemented it in the derived metadata class to print out specific metadata information. More...
 
void SaveCanvasToPDF (const TString &fileName)
 
void SaveHistoToPDF (const TString &fileName, Int_t nPlot=0, Int_t nHisto=0)
 
void SavePlotToPDF (const TString &fileName, Int_t n=0)
 
void SetFile (const TString &fileName)
 
void SetOutputPlotsFilename (const TString &name)
 
void SetTreeEntryRange (Long64_t NEntries=TTree::kMaxEntries, Long64_t FirstEntry=0)
 
 TRestAnalysisPlot (const char *configFilename, const char *name="")
 

Private Member Functions

void AddFileFromEnv ()
 
void AddFileFromExternalRun ()
 
Int_t GetColorIDFromString (const std::string &in)
 
Int_t GetFillStyleIDFromString (const std::string &in)
 
Int_t GetLineStyleIDFromString (const std::string &in)
 
TRestRunGetRunInfo (const TString &fileName)
 
TRestAnalysisTreeGetTree (const TString &fileName)
 
void InitFromConfigFile () override
 To make settings from rml file. This method must be implemented in the derived class. More...
 
bool IsDynamicRange (const TString &rangeString)
 
HistoInfoSet SetupHistogramFromConfigFile (TiXmlElement *ele, PlotInfoSet info)
 

Private Attributes

TVector2 fCanvasDivisionMargins
 
TVector2 fCanvasDivisions
 
TString fCanvasSave
 
TVector2 fCanvasSize
 
TCanvas * fCombinedCanvas
 TRestRun to handle input file. More...
 
Long64_t fDrawFirstEntry
 
Long64_t fDrawNEntries
 Output canvas. More...
 
Int_t fLabelFont
 
Double_t fLabelOffsetX = 1.1
 
Double_t fLabelOffsetY = 1.3
 
Double_t fLabelScaleX = 1.2
 
Double_t fLabelScaleY = 1.3
 
Double_t fLegendX1 = 0.7
 
Double_t fLegendX2 = 0.88
 
Double_t fLegendY1 = 0.75
 
Double_t fLegendY2 = 0.88
 
Int_t fNFiles
 
Int_t fPaletteStyle
 
std::vector< PanelInfofPanels
 
std::vector< std::string > fPlotNamesCheck
 
std::vector< PlotInfoSetfPlots
 
TRestRunfRun
 
std::vector< TString > fRunInputFileName
 TRestRun to handle output file. More...
 
Double_t fTicksScaleX = 1.5
 
Double_t fTicksScaleY = 1.5
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ TRestAnalysisPlot() [1/2]

TRestAnalysisPlot::TRestAnalysisPlot ( )

Definition at line 27 of file TRestAnalysisPlot.cxx.

◆ TRestAnalysisPlot() [2/2]

TRestAnalysisPlot::TRestAnalysisPlot ( const char *  configFilename,
const char *  name = "" 
)

Definition at line 29 of file TRestAnalysisPlot.cxx.

◆ ~TRestAnalysisPlot()

TRestAnalysisPlot::~TRestAnalysisPlot ( )
virtual

Definition at line 47 of file TRestAnalysisPlot.cxx.

Member Function Documentation

◆ AddFile()

void TRestAnalysisPlot::AddFile ( const TString &  fileName)

Definition at line 493 of file TRestAnalysisPlot.cxx.

◆ AddFileFromEnv()

void TRestAnalysisPlot::AddFileFromEnv ( )
private

Definition at line 518 of file TRestAnalysisPlot.cxx.

◆ AddFileFromExternalRun()

void TRestAnalysisPlot::AddFileFromExternalRun ( )
private

Definition at line 507 of file TRestAnalysisPlot.cxx.

◆ GetCanvasDivisions()

TVector2 TRestAnalysisPlot::GetCanvasDivisions ( ) const
inline

Definition at line 183 of file TRestAnalysisPlot.h.

◆ GetCanvasSize()

TVector2 TRestAnalysisPlot::GetCanvasSize ( ) const
inline

Definition at line 182 of file TRestAnalysisPlot.h.

◆ GetColorIDFromString()

Int_t TRestAnalysisPlot::GetColorIDFromString ( const std::string &  in)
private

Definition at line 576 of file TRestAnalysisPlot.cxx.

◆ GetFillStyleIDFromString()

Int_t TRestAnalysisPlot::GetFillStyleIDFromString ( const std::string &  in)
private

Definition at line 587 of file TRestAnalysisPlot.cxx.

◆ GetLineStyleIDFromString()

Int_t TRestAnalysisPlot::GetLineStyleIDFromString ( const std::string &  in)
private

Definition at line 598 of file TRestAnalysisPlot.cxx.

◆ GetPlotIndex()

Int_t TRestAnalysisPlot::GetPlotIndex ( const TString &  plotName)

Definition at line 530 of file TRestAnalysisPlot.cxx.

◆ GetRunInfo()

TRestRun * TRestAnalysisPlot::GetRunInfo ( const TString &  fileName)
private

Definition at line 556 of file TRestAnalysisPlot.cxx.

◆ GetTree()

TRestAnalysisTree * TRestAnalysisPlot::GetTree ( const TString &  fileName)
private

Definition at line 538 of file TRestAnalysisPlot.cxx.

◆ InitFromConfigFile()

void TRestAnalysisPlot::InitFromConfigFile ( )
overrideprivatevirtual

To make settings from rml file. This method must be implemented in the derived class.

Reimplemented from TRestMetadata.

Definition at line 49 of file TRestAnalysisPlot.cxx.

◆ Initialize()

void TRestAnalysisPlot::Initialize ( )
overridevirtual

Making default settings.

Reimplemented from TRestMetadata.

Definition at line 36 of file TRestAnalysisPlot.cxx.

◆ IsDynamicRange()

bool TRestAnalysisPlot::IsDynamicRange ( const TString &  rangeString)
private

Definition at line 572 of file TRestAnalysisPlot.cxx.

◆ PlotCombinedCanvas()

void TRestAnalysisPlot::PlotCombinedCanvas ( )

Definition at line 609 of file TRestAnalysisPlot.cxx.

◆ PrintMetadata()

void TRestAnalysisPlot::PrintMetadata ( )
inlineoverridevirtual

Implemented it in the derived metadata class to print out specific metadata information.

Prints metadata content on screen. Usually overloaded by the derived metadata class.

Reimplemented from TRestMetadata.

Definition at line 170 of file TRestAnalysisPlot.h.

◆ SaveCanvasToPDF()

void TRestAnalysisPlot::SaveCanvasToPDF ( const TString &  fileName)

Definition at line 951 of file TRestAnalysisPlot.cxx.

◆ SaveHistoToPDF()

void TRestAnalysisPlot::SaveHistoToPDF ( const TString &  fileName,
Int_t  nPlot = 0,
Int_t  nHisto = 0 
)

Definition at line 978 of file TRestAnalysisPlot.cxx.

◆ SavePlotToPDF()

void TRestAnalysisPlot::SavePlotToPDF ( const TString &  fileName,
Int_t  n = 0 
)

Definition at line 953 of file TRestAnalysisPlot.cxx.

◆ SetFile()

void TRestAnalysisPlot::SetFile ( const TString &  fileName)

Definition at line 500 of file TRestAnalysisPlot.cxx.

◆ SetOutputPlotsFilename()

void TRestAnalysisPlot::SetOutputPlotsFilename ( const TString &  name)
inline

Definition at line 179 of file TRestAnalysisPlot.h.

◆ SetTreeEntryRange()

void TRestAnalysisPlot::SetTreeEntryRange ( Long64_t  NEntries = TTree::kMaxEntries,
Long64_t  FirstEntry = 0 
)
inline

Definition at line 185 of file TRestAnalysisPlot.h.

◆ SetupHistogramFromConfigFile()

TRestAnalysisPlot::HistoInfoSet TRestAnalysisPlot::SetupHistogramFromConfigFile ( TiXmlElement *  ele,
PlotInfoSet  info 
)
private

Definition at line 330 of file TRestAnalysisPlot.cxx.

Field Documentation

◆ fCanvasDivisionMargins

TVector2 TRestAnalysisPlot::fCanvasDivisionMargins
private

Definition at line 127 of file TRestAnalysisPlot.h.

◆ fCanvasDivisions

TVector2 TRestAnalysisPlot::fCanvasDivisions
private

Definition at line 126 of file TRestAnalysisPlot.h.

◆ fCanvasSave

TString TRestAnalysisPlot::fCanvasSave
private

Definition at line 128 of file TRestAnalysisPlot.h.

◆ fCanvasSize

TVector2 TRestAnalysisPlot::fCanvasSize
private

Definition at line 125 of file TRestAnalysisPlot.h.

◆ fCombinedCanvas

TCanvas* TRestAnalysisPlot::fCombinedCanvas
private

TRestRun to handle input file.

Definition at line 152 of file TRestAnalysisPlot.h.

◆ fDrawFirstEntry

Long64_t TRestAnalysisPlot::fDrawFirstEntry
private

Definition at line 154 of file TRestAnalysisPlot.h.

◆ fDrawNEntries

Long64_t TRestAnalysisPlot::fDrawNEntries
private

Output canvas.

Definition at line 153 of file TRestAnalysisPlot.h.

◆ fLabelFont

Int_t TRestAnalysisPlot::fLabelFont
private

Definition at line 131 of file TRestAnalysisPlot.h.

◆ fLabelOffsetX

Double_t TRestAnalysisPlot::fLabelOffsetX = 1.1
private

Definition at line 132 of file TRestAnalysisPlot.h.

◆ fLabelOffsetY

Double_t TRestAnalysisPlot::fLabelOffsetY = 1.3
private

Definition at line 133 of file TRestAnalysisPlot.h.

◆ fLabelScaleX

Double_t TRestAnalysisPlot::fLabelScaleX = 1.2
private

Definition at line 134 of file TRestAnalysisPlot.h.

◆ fLabelScaleY

Double_t TRestAnalysisPlot::fLabelScaleY = 1.3
private

Definition at line 135 of file TRestAnalysisPlot.h.

◆ fLegendX1

Double_t TRestAnalysisPlot::fLegendX1 = 0.7
private

Definition at line 139 of file TRestAnalysisPlot.h.

◆ fLegendX2

Double_t TRestAnalysisPlot::fLegendX2 = 0.88
private

Definition at line 141 of file TRestAnalysisPlot.h.

◆ fLegendY1

Double_t TRestAnalysisPlot::fLegendY1 = 0.75
private

Definition at line 140 of file TRestAnalysisPlot.h.

◆ fLegendY2

Double_t TRestAnalysisPlot::fLegendY2 = 0.88
private

Definition at line 142 of file TRestAnalysisPlot.h.

◆ fNFiles

Int_t TRestAnalysisPlot::fNFiles
private

Definition at line 123 of file TRestAnalysisPlot.h.

◆ fPaletteStyle

Int_t TRestAnalysisPlot::fPaletteStyle
private

Definition at line 129 of file TRestAnalysisPlot.h.

◆ fPanels

std::vector<PanelInfo> TRestAnalysisPlot::fPanels
private

Definition at line 146 of file TRestAnalysisPlot.h.

◆ fPlotNamesCheck

std::vector<std::string> TRestAnalysisPlot::fPlotNamesCheck
private

Definition at line 148 of file TRestAnalysisPlot.h.

◆ fPlots

std::vector<PlotInfoSet> TRestAnalysisPlot::fPlots
private

Definition at line 145 of file TRestAnalysisPlot.h.

◆ fRun

TRestRun* TRestAnalysisPlot::fRun
private

Definition at line 150 of file TRestAnalysisPlot.h.

◆ fRunInputFileName

std::vector<TString> TRestAnalysisPlot::fRunInputFileName
private

TRestRun to handle output file.

Definition at line 151 of file TRestAnalysisPlot.h.

◆ fTicksScaleX

Double_t TRestAnalysisPlot::fTicksScaleX = 1.5
private

Definition at line 136 of file TRestAnalysisPlot.h.

◆ fTicksScaleY

Double_t TRestAnalysisPlot::fTicksScaleY = 1.5
private

Definition at line 137 of file TRestAnalysisPlot.h.


The documentation for this class was generated from the following files: