Plot::Range Class Reference

#include <Plot.h>

List of all members.

Public Member Functions

 Range (double factor=1.05, double min=1.0, double max=-1.0)
virtual ~Range ()
void Add (TH1 *h)
void Set (double factor=1.05, double min=1.0, double max=-1.0)
void Resize (std::string option, double min=1.0, double max=-1.0)
const std::pair< double, double > GetMinMax (TH1 *h, const std::string &option="y") const

Private Types

typedef std::vector< TH1 * > HistVec

Private Attributes

HistVec fHist
double fFactor
double fMin
double fMax
std::string fOption

Detailed Description

Definition at line 164 of file Plot.h.


Member Typedef Documentation

typedef std::vector<TH1 *> Plot::Range::HistVec [private]

Definition at line 181 of file Plot.h.


Constructor & Destructor Documentation

Range< TYPE >::Range ( double  factor = 1.05,
double  min = 1.0,
double  max = -1.0 
)

Definition at line 1341 of file Plot.cxx.

References fFactor.

01342    :fFactor(factor),
01343     fMin(min),
01344     fMax(max)
01345 {
01346    if(!(fFactor > 1.0))
01347    {
01348       fFactor = 1.0;
01349    }
01350 }

Range< TYPE >::~Range (  )  [virtual]

Definition at line 1353 of file Plot.cxx.

01354 {
01355 }


Member Function Documentation

void Range< TYPE >::Add ( TH1 *  h  ) 

Definition at line 1369 of file Plot.cxx.

01370 {
01371    if(h)
01372    {
01373       fHist.push_back(h);
01374    }
01375 }

const std::pair<double, double> Plot::Range::GetMinMax ( TH1 *  h,
const std::string &  option = "y" 
) const
void Plot::Range::Resize ( std::string  option,
double  min = 1.0,
double  max = -1.0 
)
void Range< TYPE >::Set ( double  factor = 1.05,
double  min = 1.0,
double  max = -1.0 
)

Definition at line 1358 of file Plot.cxx.

References fFactor, fMax, and fMin.

01359 {
01360    fFactor = factor;
01361    if(min < max)
01362    {
01363       fMin = min;
01364       fMax = max;
01365    }
01366 }


Member Data Documentation

double Plot::Range::fFactor [private]

Definition at line 187 of file Plot.h.

Referenced by Range(), and Set().

Definition at line 185 of file Plot.h.

double Plot::Range::fMax [private]

Definition at line 190 of file Plot.h.

Referenced by Set().

double Plot::Range::fMin [private]

Definition at line 189 of file Plot.h.

Referenced by Set().

std::string Plot::Range::fOption [private]

Definition at line 192 of file Plot.h.


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

Generated on 24 Jul 2018 for loon by  doxygen 1.6.1