|
ATLAS Offline Software
|
#include <TProfile_LW.h>
|
void | Fill (const double &x, const double &y) |
|
void | Fill (const double &x, const double &y, const double &w) |
|
unsigned | GetNbinsX () const |
|
double | GetBinEntries (unsigned bin) const |
|
double | GetBinContent (unsigned bin) const |
|
double | GetBinError (unsigned bin) const |
|
void | SetBinEntries (unsigned bin, const double &) |
|
void | SetBinContent (unsigned bin, const double &) |
|
void | SetBinError (unsigned bin, const double &) |
|
virtual unsigned | GetEntries () const override |
|
virtual void | SetEntries (unsigned) override |
|
virtual void | Reset () override |
|
double | getXMin () const |
|
double | getXMax () const |
|
void | GetBinInfo (unsigned bin, double &entries, double &content, double &error) const |
|
void | SetBinInfo (unsigned bin, const double &entries, const double &content, const double &error) |
|
void | SetErrorOption (const char *option) |
|
const char * | GetErrorOption () const |
|
void | getSums (double &sumW, double &sumW2, double &sumWX, double &sumWX2, double &sumWY, double &sumWY2) const |
|
void | setSums (const double &sumW, const double &sumW2, const double &sumWX, const double &sumWX2, const double &sumWY, const double &sumWY2) |
|
TProfile * | getROOTHist () |
|
virtual TH1 * | getROOTHistBase () override |
|
virtual double | Integral () const override |
|
void | SetName (const char *) |
|
void | SetTitle (const char *) |
|
void | SetNameTitle (const char *name, const char *title) |
|
const char * | GetName () const |
|
const char * | GetTitle () const |
|
LWHistAxis * | GetXaxis () |
|
LWHistAxis * | GetYaxis () |
|
LWHistAxis * | GetZaxis () |
|
short | GetMarkerColor () const |
|
short | GetMarkerStyle () const |
|
float | GetMarkerSize () const |
|
void | SetMarkerColor (short c=1) |
|
void | SetMarkerStyle (short s=1) |
|
void | SetMarkerSize (float sz=1) |
|
void | SetXTitle (const char *) |
|
void | SetYTitle (const char *) |
|
void | SetZTitle (const char *) |
|
void | SetMinimum (const double &minimum=-1111) |
|
void | SetMaximum (const double &maximum=-1111) |
|
void | SetOption (const char *option=" ") |
|
void | setCustomData (void *data) |
|
const void * | getCustomData () const |
|
void * | getCustomData () |
|
bool | usingROOTBackend () const |
|
bool | ownsROOTHisto () const |
|
void | setOwnsROOTHisto (bool b) |
|
|
static TProfile_LW * | create (const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup, const char *option=" ") |
|
static TProfile_LW * | create (const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup, const double &ylow, const double &yup, const char *option=" ") |
|
static TProfile_LW * | create (const char *name, const char *title, unsigned nbinsx, const float *xbins, const char *option=" ") |
|
static TProfile_LW * | create (const char *name, const char *title, unsigned nbinsx, const double *xbins, const char *option=" ") |
|
static TProfile_LW * | create (const char *name, const char *title, unsigned nbinsx, const double *xbins, const double &ylow, const double &yup, const char *option=" ") |
|
static void | safeDelete (LWHist *) |
|
|
virtual void | clear () override |
|
virtual const TH1 * | getROOTHistBaseNoAlloc () const override |
|
virtual TH1 * | getROOTHistBaseNoAlloc () override |
|
virtual void | clearKeptROOTHist () override |
|
const float * | getVarBins () const |
|
float * | getVarBins () |
|
| TProfile_LW (const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup, const double &ylow, const double &yup, const float *xbins_flt, const double *xbins_dbl, const char *option, bool rootbackend) |
|
virtual | ~TProfile_LW () |
|
| TProfile_LW (const TProfile_LW &) |
|
TProfile_LW & | operator= (const TProfile_LW &) |
|
virtual double | actualGetBinCenterX (int bin) const override |
|
virtual double | actualGetBinCenterY (int) const override |
|
virtual unsigned | actualFindBinX (const double &) const override |
|
virtual unsigned | actualFindBinY (const double &) const override |
|
virtual unsigned | actualGetNBinsX () const override |
|
virtual unsigned | actualGetNBinsY () const override |
|
void | ensureInitDecorations () |
|
Definition at line 24 of file TProfile_LW.h.
◆ TProfile_LW() [1/2]
TProfile_LW::TProfile_LW |
( |
const char * |
name, |
|
|
const char * |
title, |
|
|
unsigned |
nbinsx, |
|
|
const double & |
xlow, |
|
|
const double & |
xup, |
|
|
const double & |
ylow, |
|
|
const double & |
yup, |
|
|
const float * |
xbins_flt, |
|
|
const double * |
xbins_dbl, |
|
|
const char * |
option, |
|
|
bool |
rootbackend |
|
) |
| |
|
private |
Definition at line 84 of file TProfile_LW.cxx.
96 assert(!(xbins_flt&&xbins_dbl));
97 assert(!xbins_flt||(xbins_flt[0]==xlow&&xbins_flt[nbinsx]==xup));
98 assert(!xbins_dbl||(xbins_dbl[0]==xlow&&xbins_dbl[nbinsx]==xup));
99 assert(!xbins_flt||(ylow==0.0&&yup==0.0));
◆ ~TProfile_LW()
TProfile_LW::~TProfile_LW |
( |
| ) |
|
|
privatevirtual |
◆ TProfile_LW() [2/2]
◆ actualcreate()
Definition at line 67 of file TProfile_LW.cxx.
75 h =
new TProfile_LW(
name,
title,nbinsx,xlow,xup,ylow,yup,xbins_flt,xbins_dbl,option,rootbackend);
77 h =
MP_NEW(
TProfile_LW)(
name,
title,nbinsx,xlow,xup,ylow,yup,xbins_flt,xbins_dbl,option,rootbackend);
◆ actualFindBinX()
unsigned TProfile_LW::actualFindBinX |
( |
const double & |
x | ) |
const |
|
overrideprivatevirtual |
◆ actualFindBinY()
virtual unsigned TProfile_LW::actualFindBinY |
( |
const double & |
| ) |
const |
|
inlineoverrideprivatevirtual |
◆ actualGetBinCenterX()
double TProfile_LW::actualGetBinCenterX |
( |
int |
bin | ) |
const |
|
overrideprivatevirtual |
◆ actualGetBinCenterY()
virtual double TProfile_LW::actualGetBinCenterY |
( |
int |
| ) |
const |
|
inlineoverrideprivatevirtual |
◆ actualGetNBinsX()
virtual unsigned TProfile_LW::actualGetNBinsX |
( |
| ) |
const |
|
inlineoverrideprivatevirtual |
◆ actualGetNBinsY()
virtual unsigned TProfile_LW::actualGetNBinsY |
( |
| ) |
const |
|
inlineoverrideprivatevirtual |
◆ apply()
bool LWHist::apply |
( |
TH1 * |
h | ) |
const |
|
protectedvirtualinherited |
Reimplemented in LWHist2D, and LWHist1D.
Definition at line 256 of file LWHist.cxx.
266 TAxis *
a =
h->GetXaxis();
276 TAxis *
a =
h->GetYaxis();
286 TAxis *
a =
h->GetZaxis();
◆ clear()
void TProfile_LW::clear |
( |
| ) |
|
|
overrideprivatevirtual |
◆ clearKeptROOTHist()
void TProfile_LW::clearKeptROOTHist |
( |
| ) |
|
|
overrideprivatevirtual |
◆ create() [1/5]
◆ create() [2/5]
◆ create() [3/5]
◆ create() [4/5]
◆ create() [5/5]
◆ ensureInitDecorations()
void LWHist::ensureInitDecorations |
( |
| ) |
|
|
privateinherited |
◆ Fill() [1/2]
void TProfile_LW::Fill |
( |
const double & |
x, |
|
|
const double & |
y |
|
) |
| |
◆ Fill() [2/2]
void TProfile_LW::Fill |
( |
const double & |
x, |
|
|
const double & |
y, |
|
|
const double & |
w |
|
) |
| |
◆ GetBinContent()
double TProfile_LW::GetBinContent |
( |
unsigned |
bin | ) |
const |
◆ GetBinEntries()
double TProfile_LW::GetBinEntries |
( |
unsigned |
bin | ) |
const |
◆ GetBinError()
double TProfile_LW::GetBinError |
( |
unsigned |
bin | ) |
const |
◆ GetBinInfo()
void TProfile_LW::GetBinInfo |
( |
unsigned |
bin, |
|
|
double & |
entries, |
|
|
double & |
content, |
|
|
double & |
error |
|
) |
| const |
◆ getCustomData() [1/2]
void* LWHist::getCustomData |
( |
| ) |
|
|
inlineinherited |
◆ getCustomData() [2/2]
const void* LWHist::getCustomData |
( |
| ) |
const |
|
inlineinherited |
◆ GetEntries()
unsigned TProfile_LW::GetEntries |
( |
| ) |
const |
|
overridevirtual |
◆ GetErrorOption()
const char * TProfile_LW::GetErrorOption |
( |
| ) |
const |
◆ GetMarkerColor()
short LWHist::GetMarkerColor |
( |
| ) |
const |
|
inherited |
Definition at line 96 of file LWHist.cxx.
100 return hroot->GetMarkerColor();
◆ GetMarkerSize()
float LWHist::GetMarkerSize |
( |
| ) |
const |
|
inherited |
Definition at line 113 of file LWHist.cxx.
117 return hroot->GetMarkerSize();
◆ GetMarkerStyle()
short LWHist::GetMarkerStyle |
( |
| ) |
const |
|
inherited |
Definition at line 105 of file LWHist.cxx.
109 return hroot->GetMarkerStyle();
◆ GetName()
const char * LWHist::GetName |
( |
| ) |
const |
|
inherited |
◆ GetNbinsX()
unsigned TProfile_LW::GetNbinsX |
( |
| ) |
const |
◆ getROOTHist()
◆ getROOTHistBase()
TH1 * TProfile_LW::getROOTHistBase |
( |
| ) |
|
|
overridevirtual |
◆ getROOTHistBaseNoAlloc() [1/2]
const TH1 * TProfile_LW::getROOTHistBaseNoAlloc |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ getROOTHistBaseNoAlloc() [2/2]
TH1 * TProfile_LW::getROOTHistBaseNoAlloc |
( |
| ) |
|
|
overrideprivatevirtual |
◆ getSums()
void TProfile_LW::getSums |
( |
double & |
sumW, |
|
|
double & |
sumW2, |
|
|
double & |
sumWX, |
|
|
double & |
sumWX2, |
|
|
double & |
sumWY, |
|
|
double & |
sumWY2 |
|
) |
| const |
◆ GetTitle()
const char * LWHist::GetTitle |
( |
| ) |
const |
|
inherited |
◆ getVarBins() [1/2]
float * TProfile_LW::getVarBins |
( |
| ) |
|
|
private |
◆ getVarBins() [2/2]
const float * TProfile_LW::getVarBins |
( |
| ) |
const |
|
private |
◆ GetXaxis()
◆ getXMax()
double TProfile_LW::getXMax |
( |
| ) |
const |
Definition at line 216 of file TProfile_LW.cxx.
219 return std::as_const(*m_rootHisto).GetXaxis()->GetXmax();
◆ getXMin()
double TProfile_LW::getXMin |
( |
| ) |
const |
Definition at line 209 of file TProfile_LW.cxx.
212 return std::as_const(*m_rootHisto).GetXaxis()->GetXmin();
◆ GetYaxis()
◆ GetZaxis()
◆ Integral()
double TProfile_LW::Integral |
( |
| ) |
const |
|
overridevirtual |
◆ operator=()
◆ ownsROOTHisto()
bool LWHist::ownsROOTHisto |
( |
| ) |
const |
|
inlineinherited |
◆ Reset()
void TProfile_LW::Reset |
( |
| ) |
|
|
overridevirtual |
◆ safeDelete()
void LWHist::safeDelete |
( |
LWHist * |
h | ) |
|
|
staticinherited |
Definition at line 30 of file LWHist.cxx.
36 if (
h->m_nBytesFromPool) {
40 std::cout<<
"LWHists INFO: Last active histogram deleted. Triggering complete pool cleanup."<<std::endl;
◆ SetBinContent()
void TProfile_LW::SetBinContent |
( |
unsigned |
bin, |
|
|
const double & |
c |
|
) |
| |
◆ SetBinEntries()
void TProfile_LW::SetBinEntries |
( |
unsigned |
bin, |
|
|
const double & |
c |
|
) |
| |
◆ SetBinError()
void TProfile_LW::SetBinError |
( |
unsigned |
bin, |
|
|
const double & |
e |
|
) |
| |
◆ SetBinInfo()
void TProfile_LW::SetBinInfo |
( |
unsigned |
bin, |
|
|
const double & |
entries, |
|
|
const double & |
content, |
|
|
const double & |
error |
|
) |
| |
◆ setCustomData()
void LWHist::setCustomData |
( |
void * |
data | ) |
|
|
inlineinherited |
◆ SetEntries()
void TProfile_LW::SetEntries |
( |
unsigned |
n | ) |
|
|
overridevirtual |
◆ SetErrorOption()
void TProfile_LW::SetErrorOption |
( |
const char * |
option | ) |
|
◆ SetMarkerColor()
void LWHist::SetMarkerColor |
( |
short |
c = 1 | ) |
|
|
inherited |
Definition at line 121 of file LWHist.cxx.
125 hroot->SetMarkerColor(
c);
◆ SetMarkerSize()
void LWHist::SetMarkerSize |
( |
float |
sz = 1 | ) |
|
|
inherited |
◆ SetMarkerStyle()
void LWHist::SetMarkerStyle |
( |
short |
s = 1 | ) |
|
|
inherited |
Definition at line 133 of file LWHist.cxx.
137 hroot->SetMarkerStyle(
s);
◆ SetMaximum()
void LWHist::SetMaximum |
( |
const double & |
maximum = -1111 | ) |
|
|
inherited |
◆ SetMinimum()
void LWHist::SetMinimum |
( |
const double & |
minimum = -1111 | ) |
|
|
inherited |
◆ SetName()
void LWHist::SetName |
( |
const char * |
n | ) |
|
|
inherited |
◆ SetNameTitle()
void LWHist::SetNameTitle |
( |
const char * |
name, |
|
|
const char * |
title |
|
) |
| |
|
inherited |
◆ SetOption()
void LWHist::SetOption |
( |
const char * |
option = " " | ) |
|
|
inherited |
Definition at line 460 of file LWHist.cxx.
464 hroot->SetOption(option);
◆ setOwnsROOTHisto()
void LWHist::setOwnsROOTHisto |
( |
bool |
b | ) |
|
|
inlineinherited |
◆ setSums()
void TProfile_LW::setSums |
( |
const double & |
sumW, |
|
|
const double & |
sumW2, |
|
|
const double & |
sumWX, |
|
|
const double & |
sumWX2, |
|
|
const double & |
sumWY, |
|
|
const double & |
sumWY2 |
|
) |
| |
◆ SetTitle()
void LWHist::SetTitle |
( |
const char * |
t | ) |
|
|
inherited |
◆ SetXTitle()
void LWHist::SetXTitle |
( |
const char * |
t | ) |
|
|
inherited |
◆ SetYTitle()
void LWHist::SetYTitle |
( |
const char * |
t | ) |
|
|
inherited |
◆ SetZTitle()
void LWHist::SetZTitle |
( |
const char * |
t | ) |
|
|
inherited |
◆ usingROOTBackend()
bool LWHist::usingROOTBackend |
( |
| ) |
const |
|
inlineinherited |
◆ LWHistInt
◆ LWHistVal
◆ m_customData
void* LWHist::m_customData |
|
privateinherited |
◆ m_decorations
◆ m_flexHisto
◆ m_name
◆ m_nBytesFromPool
unsigned short LWHist::m_nBytesFromPool |
|
protectedinherited |
◆ m_ownsRootHisto
bool LWHist::m_ownsRootHisto |
|
privateinherited |
◆ m_rootHisto
◆ m_title
◆ m_usingROOTBackend
const bool LWHist::m_usingROOTBackend |
|
privateinherited |
The documentation for this class was generated from the following files:
char data[hepevt_bytes_allocation_ATLAS]
double getSumWProfPar2() const
double GetBinContent(unsigned bin) const
static TProfile_LW * actualcreate(const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup, const double &ylow, const double &yup, const float *xbins_flt, const double *xbins_dbl, const char *option)
virtual void clearKeptROOTHist() override
void ensureInitDecorations()
unsigned valueToBin(const double &x) const
unsigned GetNbinsX() const
double GetBinError(unsigned bin) const
void SetBinContent(unsigned bin, const double &)
static Flex1DProfileHisto * create(unsigned nbins, const double &xmin, const double &xmax, const double &profparmin, const double &profparmax)
float GetMarkerSize() const
static bool stringsEqual(const char *c1, const char *c2)
static void release(char *, unsigned length)
bool ownsROOTHisto() const
#define DEFAULT_MARKERSIZE
void SetBinEntries(unsigned bin, const double &)
virtual void SetEntries(unsigned) override
LWHist::LWHistAxis * m_xAxis
TProfile * createRootProfileHisto(TProfile_LW *lwhist, Flex1DProfileHisto *flexHist)
LWHist::LWHistAxis * m_yAxis
short GetMarkerColor() const
void getSums(double &sumW, double &sumW2, double &sumWX, double &sumWX2, double &sumWY, double &sumWY2) const
bool usingROOTBackend() const
const char * GetTitle() const
void fill(const double &x, const double &profiledpar)
void SetTitle(const char *)
const char * GetErrorOption() const
void SetBinError(unsigned bin, const double &)
def TProfile(*args, **kwargs)
void setSums(const double &sumW, const double &sumW2, const double &sumWX, const double &sumWX2, const double &sumWProfPar, const double &sumWProfPar2)
LWHist(const char *name, const char *title, bool rootbackend)
static bool hasROOTBackend()
const float * getVarBins() const
#define DEFAULT_MARKERSTYLE
static void setStringFromInput(const char *input, char *&target)
const bool m_usingROOTBackend
double getBinCenter(int bin) const
static bool cleanupOnGetROOT()
static void releaseAllHeldMemory()
static void destroy(Flex1DProfileHisto *)
void setErrorOptionFromString(const char *option)
unsigned getEntries() const
double getSumWProfPar() const
void SetErrorOption(const char *option)
double GetBinEntries(unsigned bin) const
#define DEFAULT_MARKERCOLOR
virtual bool apply(TH1 *) const
virtual const TH1 * getROOTHistBaseNoAlloc() const =0
LWHist::LWHistAxis * m_zAxis
void getBinInfo(unsigned bin, double &entries, double &content, double &error) const
LWHistDecorations * m_decorations
void setBinInfo(unsigned bin, const double &entries, const double &content, const double &error)
TProfile_LW(const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup, const double &ylow, const double &yup, const float *xbins_flt, const double *xbins_dbl, const char *option, bool rootbackend)
Flex1DProfileHisto * m_flexHisto
LWBinLabels * m_binLabels
virtual void clear() override
short GetMarkerStyle() const
void deleteProfileHisto(TProfileX *rootHist)
void apply(TAxis *) const
static std::atomic< long > s_nActiveHists
double GetBinContent(int) const
virtual double Integral() const override