CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
DrawPlot Class Reference

#include <DrawPlot.h>

Classes

struct  LegendEntries
 

Public Member Functions

void drawEventPlot (const TString &, const TString &, const bool=true, const bool=true)
 
 DrawPlot (const unsigned int=0, const bool=true)
 
void drawPlot (const TString &, const TString &, bool=true, bool=true)
 
void drawTrackPlot (const TString &, const TString &, const bool=true, const bool=true)
 
void setLegendCoordinate (const double, const double, const double, const double)
 
void setLegendEntry (const TString &, const TString &, const TString &)
 
void thesisMode ()
 
 ~DrawPlot ()
 

Private Member Functions

void adjustLegend (TLegend *&) const
 
LegendEntries adjustLegendEntry (const TString &, TH1 *&, TH1 *&, TH1 *&)
 
void cleanup (std::vector< TH1 *> &) const
 
void draw (std::vector< TH1 *> &) const
 
double maximumY (std::vector< TH1 *> &) const
 
double minimumY (std::vector< TH1 *> &) const
 
void printHist (const TString &, const TString &, const bool, const bool)
 
void scale (std::vector< TH1 *> &, const double=1.) const
 
void setLineWidth (std::vector< TH1 *> &, const unsigned int) const
 
void setRangeUser (std::vector< TH1 *> &, const double, const double) const
 

Private Attributes

TTree * baselineTreeX_
 
TTree * baselineTreeY_
 
double * delta0_
 
TFile * designFile_
 
TString designLegendEntry_
 
TFile * file_
 
TFile * fileZeroApe_
 
TString legendEntry_
 
TString legendEntryZeroApe_
 
double legendXmax_
 
double legendXmin_
 
double legendYmax_
 
double legendYmin_
 
const TString * outpath_
 
bool thesisMode_
 

Detailed Description

Definition at line 16 of file DrawPlot.h.

Constructor & Destructor Documentation

◆ DrawPlot()

DrawPlot::DrawPlot ( const unsigned  int = 0,
const bool  = true 
)

◆ ~DrawPlot()

DrawPlot::~DrawPlot ( )

Member Function Documentation

◆ adjustLegend()

void DrawPlot::adjustLegend ( TLegend *&  ) const
private

◆ adjustLegendEntry()

LegendEntries DrawPlot::adjustLegendEntry ( const TString &  ,
TH1 *&  ,
TH1 *&  ,
TH1 *&   
)
private

◆ cleanup()

void DrawPlot::cleanup ( std::vector< TH1 *> &  ) const
private

◆ draw()

void DrawPlot::draw ( std::vector< TH1 *> &  ) const
private

◆ drawEventPlot()

void DrawPlot::drawEventPlot ( const TString &  ,
const TString &  ,
const bool  = true,
const bool  = true 
)

◆ drawPlot()

void DrawPlot::drawPlot ( const TString &  ,
const TString &  ,
bool  = true,
bool  = true 
)

◆ drawTrackPlot()

void DrawPlot::drawTrackPlot ( const TString &  ,
const TString &  ,
const bool  = true,
const bool  = true 
)

◆ maximumY()

double DrawPlot::maximumY ( std::vector< TH1 *> &  ) const
private

◆ minimumY()

double DrawPlot::minimumY ( std::vector< TH1 *> &  ) const
private

◆ printHist()

void DrawPlot::printHist ( const TString &  ,
const TString &  ,
const bool  ,
const bool   
)
private

◆ scale()

void DrawPlot::scale ( std::vector< TH1 *> &  ,
const double  = 1. 
) const
private

◆ setLegendCoordinate()

void DrawPlot::setLegendCoordinate ( const double  ,
const double  ,
const double  ,
const double   
)

◆ setLegendEntry()

void DrawPlot::setLegendEntry ( const TString &  ,
const TString &  ,
const TString &   
)

◆ setLineWidth()

void DrawPlot::setLineWidth ( std::vector< TH1 *> &  ,
const unsigned  int 
) const
private

◆ setRangeUser()

void DrawPlot::setRangeUser ( std::vector< TH1 *> &  ,
const double  ,
const double   
) const
private

◆ thesisMode()

void DrawPlot::thesisMode ( )
inline

Definition at line 27 of file DrawPlot.h.

References thesisMode_.

27 {thesisMode_ = true;}
bool thesisMode_
Definition: DrawPlot.h:71

Member Data Documentation

◆ baselineTreeX_

TTree* DrawPlot::baselineTreeX_
private

Definition at line 58 of file DrawPlot.h.

◆ baselineTreeY_

TTree* DrawPlot::baselineTreeY_
private

Definition at line 59 of file DrawPlot.h.

◆ delta0_

double* DrawPlot::delta0_
private

Definition at line 60 of file DrawPlot.h.

◆ designFile_

TFile* DrawPlot::designFile_
private

Definition at line 56 of file DrawPlot.h.

◆ designLegendEntry_

TString DrawPlot::designLegendEntry_
private

Definition at line 65 of file DrawPlot.h.

◆ file_

TFile* DrawPlot::file_
private

Definition at line 52 of file DrawPlot.h.

◆ fileZeroApe_

TFile* DrawPlot::fileZeroApe_
private

Definition at line 54 of file DrawPlot.h.

◆ legendEntry_

TString DrawPlot::legendEntry_
private

Definition at line 63 of file DrawPlot.h.

◆ legendEntryZeroApe_

TString DrawPlot::legendEntryZeroApe_
private

Definition at line 64 of file DrawPlot.h.

◆ legendXmax_

double DrawPlot::legendXmax_
private

Definition at line 68 of file DrawPlot.h.

◆ legendXmin_

double DrawPlot::legendXmin_
private

Definition at line 66 of file DrawPlot.h.

◆ legendYmax_

double DrawPlot::legendYmax_
private

Definition at line 69 of file DrawPlot.h.

◆ legendYmin_

double DrawPlot::legendYmin_
private

Definition at line 67 of file DrawPlot.h.

◆ outpath_

const TString* DrawPlot::outpath_
private

Definition at line 50 of file DrawPlot.h.

◆ thesisMode_

bool DrawPlot::thesisMode_
private

Definition at line 71 of file DrawPlot.h.

Referenced by thesisMode().