![]() |
ATLAS Offline Software
|
#include <Resplot.h>
Classes | |
| class | ResException |
Public Member Functions | |
| Resplot () | |
| Resplot (const std::string &name, int n1, double a1, double b1, int n2, double a2, double b2, const std::string &xaxis="") | |
| Resplot (const std::string &name, int n1, const double *a1, int n2, double a2, double b2, const std::string &xaxis="") | |
| Resplot (const std::string &name, const std::vector< double > &a, int n2, double a2, double b2, const std::string &xaxis="") | |
| Resplot (const std::string &name, const std::vector< double > &a, const std::vector< double > &b, const std::string &xaxis="") | |
| Resplot & | operator= (const Resplot &)=delete |
| Resplot (const Resplot &r, const std::string &tag="") | |
| Resplot (const std::string &name, TH2 *hin, const bool flip=false) | |
| Resplot (const std::string &name) | |
| virtual | ~Resplot () |
| void | Initialise (const std::string &name, int n1, double a1, double b1, int n2, double a2, double b2) |
| void | Initialise (const std::string &name, int n1, const double *a1, int n2, double a2, double b2) |
| void | Initialise (const std::string &name, int n1, const double *a1, int n2, const double *a2) |
| void | Initialise (const std::string &name, const std::vector< double > &a, int n2, double a2, double b2) |
| void | Initialise (const std::string &name, const std::vector< double > &a, const std::vector< double > &b) |
| int | Fill (double x, double y, double w=1) |
| StatVal | GetEfficiency (TH1D *h, double lower, double upper) |
| StatVal | GetGlobalEfficiency (double lower, double upper) |
| TH1D * | GetEfficiencies (const std::string &hname, double lower, double upper) |
| TH1D * | GetEfficiencies (const std::string &hname, double Nsigma) |
| void | SetXAxis (const std::string &xaxis) |
| void | SetYAxis (const std::string &yaxis) |
| std::vector< double > | GetPrimaryLimits () const |
| std::vector< double > | GetPrimaryCentres () const |
| const std::string & | Name (const std::string &s) |
| const std::string & | Name () const |
| const std::string & | name () const |
| TH1D * | Mean () |
| const TH1D * | Mean () const |
| TH1D * | Sigma () |
| TH1D * | Chi2 () |
| const TH1D * | Chi2 () const |
| TH1D * | H1D () |
| const TH1D * | H1D () const |
| TH2D * | H2D () |
| const TH2D * | H2D () const |
| TH1D * | Uncertainty () |
| const TH1D * | Uncertainty () const |
| bool | finalised () const |
| const std::vector< TH1D * > & | Slices () const |
| const std::string & | FitName () const |
| int | Finalise (double a=-999, double b=-999, TF1 *(*func)(TH1D *s, double a, double b)=FitGaussian) |
| int | Finalise (TF1 *(*func)(TH1D *s, double a, double b), double a=-999, double b=-999) |
| int | Fit (TF1 *(*func)(TH1D *s, double a, double b)) |
| int | Refit (TF1 *(*func)(TH1D *s, double a, double b)) |
| TDirectory * | Dir () |
| Int_t | Write (const char *=0, Int_t=0, Int_t=0) const |
| Hooray, this stupidity is to overwride both the const and non-const TObject Write methods Fixme: should probably remove all of these so root can write out using the dictionary but I could never get that to work. | |
| Int_t | Write (const char *=0, Int_t=0, Int_t=0) |
| Int_t | DWrite (TDirectory *g=0) const |
| boooo, need to use the stupid Int_t class because I foolishly gave this function the same name as TObject::Write | |
| void | SetDirectory (TDirectory *=0) |
| Resplot & | operator+= (const Resplot &r) |
| operators | |
| Resplot & | operator*= (double d) |
| Resplot | operator* (double d) const |
| Resplot | operator+ (const Resplot &r) const |
| void | Integrate () |
| void | setUniform (bool t=false) |
Static Public Member Functions | |
| static std::vector< double > | getLimits (const TAxis *axis) |
| projection utilities ... NB: In athena, for some reason the destuctors for histograms created using TH2D::ProjectX/Y take ~ 13 ms to be deleted, around 300 times slower than a normal TH1 delete, so we implement our own projectionX/Y | |
| static std::vector< double > | getxLimits (TH2 *h) |
| static std::vector< double > | getyLimits (TH2 *h) |
| static TH1D * | projectionY (TH2 *h2d, int col, const std::vector< double > &ylimits, const std::string &tagname) |
| actual local projections ... | |
| static TH1D * | projectionY (TH2 *h2d, int col0, int col1, const std::vector< double > &ylimits, const std::string &tagname) |
| static TH1D * | projectionX (TH2 *h2d, int row, const std::vector< double > &xlimits, const std::string &tagname) |
| static TH1D * | projectionX (TH2 *h2d, int row0, int row1, const std::vector< double > &xlimits, const std::string &tagname) |
| static double | sum (TH1 *h) |
| static bool | AddDirectoryStatus () |
| static void | AddDirectory (bool t=false) |
| static const std::string & | version () |
| static TH2D * | rotate (const TH2 *h, const std::string &s="") |
| flip the x and y axes | |
| static TH2D * | copy (const TH2 *h, const std::string &s="") |
| copy a TH2 | |
| static std::vector< double > | findbins (const TH1 *h, double epsilon) |
| static TH1D * | rebin (const TH1 *h, const std::vector< double > &bins) |
| static std::vector< double > | getbins (const TH1 *h) |
Private Types | |
| enum | ERROR { OK , HISTOWIDTH , BINWIDTH , EMPTY } |
Private Member Functions | |
| void | MakeSlices () |
| void | skip (TH1D *t) |
| void | delskip (TH1D *t) |
| void | deletehist (TH1D *t) |
| void | skip (TH2D *t) |
| void | delskip (TH2D *t) |
| void | deletehist (TH2D *t) |
| void | SetPrimary (int n, const double *) |
| void | SetPrimary (int n, double, double) |
| void | SetSecondary (int n, double a, double b) |
| StatVal | get_mean () |
| StatVal | get_sigma () |
| void | AddEfficiency (TH1D *h, int i, double lower, double upper) |
| void | AddResolution (TH1D *h, int i) |
| void | AddMean (TH1D *h, int i) |
| void | clear () |
Private Attributes | |
| bool | m_Set |
| std::string | m_name |
| TH1D * | m_Nentries = 0 |
| TH1D * | m_mean = 0 |
| TH1D * | m_sigma = 0 |
| TH1D * | m_chi2 = 0 |
| TH2D * | m_h2d = 0 |
| TH1D * | m_h1d = 0 |
| StatVal | m_g_mean |
| StatVal | m_g_sigma |
| TDirectory * | m_dir = 0 |
| int | m_n_primary |
| int | m_n_secondary |
| double | m_a_secondary |
| double | m_b_secondary |
| std::string | m_xaxis |
| std::string | m_yaxis |
| std::vector< TH1D * > | m_slices |
| std::string | m_fitname |
| bool | m_finalised |
| bool | m_uniform |
Static Private Attributes | |
| static const std::string | s_rversion = "resplot-v29" |
|
private |
|
inline |
Definition at line 70 of file Resplot.h.
|
inline |
Definition at line 84 of file Resplot.h.
|
inline |
|
inline |
|
inline |
Definition at line 168 of file Resplot.h.
|
inline |
Definition at line 210 of file Resplot.h.
|
virtual |
Definition at line 208 of file Resplot.cxx.
|
inlinestatic |
|
inlinestatic |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inlineprivate |
copy a TH2
Definition at line 633 of file Resplot.cxx.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
| Int_t Resplot::Resplot::DWrite | ( | TDirectory * | g = 0 | ) | const |
boooo, need to use the stupid Int_t class because I foolishly gave this function the same name as TObject::Write
Definition at line 376 of file Resplot.cxx.
|
inline |
| int Resplot::Resplot::Finalise | ( | double | a = -999, |
| double | b = -999, | ||
| TF1 *(* | func )(TH1D *s, double a, double b) = FitGaussian ) |
Definition at line 425 of file Resplot.cxx.
|
inline |
Definition at line 473 of file Resplot.h.
|
static |
Definition at line 662 of file Resplot.cxx.
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
static |
| TH1D * Resplot::Resplot::GetEfficiencies | ( | const std::string & | hname, |
| double | lower, | ||
| double | upper ) |
Definition at line 781 of file Resplot.cxx.
| TH1D * Resplot::Resplot::GetEfficiencies | ( | const std::string & | hname, |
| double | Nsigma ) |
Definition at line 814 of file Resplot.cxx.
| StatVal Resplot::Resplot::GetEfficiency | ( | TH1D * | h, |
| double | lower, | ||
| double | upper ) |
Definition at line 755 of file Resplot.cxx.
|
inline |
|
inlinestatic |
projection utilities ... NB: In athena, for some reason the destuctors for histograms created using TH2D::ProjectX/Y take ~ 13 ms to be deleted, around 300 times slower than a normal TH1 delete, so we implement our own projectionX/Y
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
| void Resplot::Resplot::Initialise | ( | const std::string & | name, |
| const std::vector< double > & | a, | ||
| const std::vector< double > & | b ) |
Definition at line 275 of file Resplot.cxx.
| void Resplot::Resplot::Initialise | ( | const std::string & | name, |
| const std::vector< double > & | a, | ||
| int | n2, | ||
| double | a2, | ||
| double | b2 ) |
Definition at line 268 of file Resplot.cxx.
| void Resplot::Resplot::Initialise | ( | const std::string & | name, |
| int | n1, | ||
| const double * | a1, | ||
| int | n2, | ||
| const double * | a2 ) |
Definition at line 328 of file Resplot.cxx.
| void Resplot::Resplot::Initialise | ( | const std::string & | name, |
| int | n1, | ||
| const double * | a1, | ||
| int | n2, | ||
| double | a2, | ||
| double | b2 ) |
Definition at line 283 of file Resplot.cxx.
| void Resplot::Resplot::Initialise | ( | const std::string & | name, |
| int | n1, | ||
| double | a1, | ||
| double | b1, | ||
| int | n2, | ||
| double | a2, | ||
| double | b2 ) |
Definition at line 226 of file Resplot.cxx.
|
inline |
integrate all the slices and refit the mean etc. not yet ...
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 542 of file Resplot.h.
operators
Definition at line 511 of file Resplot.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 447 of file Resplot.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 714 of file Resplot.cxx.
|
inline |
flip the x and y axes
rotate a TH2
Definition at line 604 of file Resplot.cxx.
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inline |
Definition at line 497 of file Resplot.h.
|
inline |
|
staticprivate |