|
ATLAS Offline Software
|
#include <TH1I_LW.h>
|
virtual void | Fill (const double &x) override |
|
virtual void | Fill (const double &x, const double &w) override |
|
virtual unsigned | GetNbinsX () const override |
|
virtual double | GetBinContent (unsigned bin) const override |
|
virtual double | GetBinError (unsigned bin) const override |
|
virtual void | SetBinContent (unsigned bin, const double &) override |
|
virtual void | SetBinError (unsigned bin, const double &) override |
|
virtual unsigned | GetEntries () const override |
|
virtual void | SetEntries (unsigned) override |
|
virtual void | SetBins (unsigned nbins, double xmin, double xmax) override |
|
virtual void | Reset () override |
|
virtual double | getXMin () const override |
|
virtual double | getXMax () const override |
|
virtual void | GetBinContentAndError (unsigned bin, double &content, double &error) const override |
|
virtual void | SetBinContentAndError (unsigned bin, const double &content, const double &error) override |
|
virtual void | getSums (double &sumW, double &sumW2, double &sumWX, double &sumWX2) const override |
|
virtual void | setSums (const double &sumW, const double &sumW2, const double &sumWX, const double &sumWX2) override |
|
TH1I * | getROOTHist () |
|
virtual TH1 * | getROOTHistBase () override |
|
virtual double | Integral () const override |
|
virtual void | resetActiveBinLoop () override |
|
virtual bool | getNextActiveBin (unsigned &bin, double &content, double &error) override |
|
virtual void | scaleContentsAndErrors (const double &fact) 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 TH1I_LW * | create (const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup) |
|
static TH1I_LW * | create (const char *name, const char *title, unsigned nbinsx, const double *xbins) |
|
static TH1I_LW * | create (const char *name, const char *title, unsigned nbinsx, const float *xbins) |
|
static void | safeDelete (LWHist *) |
|
|
virtual void | clear () override |
|
virtual unsigned | actualFindBinX (const double &) const override |
|
virtual double | actualGetBinCenterX (int bin) const override |
|
virtual const TH1 * | getROOTHistBaseNoAlloc () const override |
|
virtual TH1 * | getROOTHistBaseNoAlloc () override |
|
virtual void | clearKeptROOTHist () override |
|
const float * | getVarBins () const |
|
float * | getVarBins () |
|
| TH1I_LW (const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup, bool rootbackend) |
|
| TH1I_LW (const char *name, const char *title, unsigned nbinsx, const double *xbins, bool rootbackend) |
|
| TH1I_LW (const char *name, const char *title, unsigned nbinsx, const float *xbins, bool rootbackend) |
|
virtual | ~TH1I_LW () |
|
| TH1I_LW (const TH1I_LW &) |
|
TH1I_LW & | operator= (const TH1I_LW &) |
|
void | ensureInitDecorations () |
|
Definition at line 23 of file TH1I_LW.h.
◆ bin_type_t
◆ TH1I_LW() [1/4]
TH1I_LW::TH1I_LW |
( |
const char * |
name, |
|
|
const char * |
title, |
|
|
unsigned |
nbinsx, |
|
|
const double & |
xlow, |
|
|
const double & |
xup, |
|
|
bool |
rootbackend |
|
) |
| |
|
private |
◆ TH1I_LW() [2/4]
TH1I_LW::TH1I_LW |
( |
const char * |
name, |
|
|
const char * |
title, |
|
|
unsigned |
nbinsx, |
|
|
const double * |
xbins, |
|
|
bool |
rootbackend |
|
) |
| |
|
private |
◆ TH1I_LW() [3/4]
TH1I_LW::TH1I_LW |
( |
const char * |
name, |
|
|
const char * |
title, |
|
|
unsigned |
nbinsx, |
|
|
const float * |
xbins, |
|
|
bool |
rootbackend |
|
) |
| |
|
private |
◆ ~TH1I_LW()
◆ TH1I_LW() [4/4]
◆ actualFindBinX()
unsigned TH1I_LW::actualFindBinX |
( |
const double & |
x | ) |
const |
|
overrideprivatevirtual |
◆ actualFindBinY()
virtual unsigned LWHist1D::actualFindBinY |
( |
const double & |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ actualGetBinCenterX()
double TH1I_LW::actualGetBinCenterX |
( |
int |
bin | ) |
const |
|
overrideprivatevirtual |
◆ actualGetBinCenterY()
virtual double LWHist1D::actualGetBinCenterY |
( |
int |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ actualGetNBinsX()
virtual unsigned LWHist1D::actualGetNBinsX |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ actualGetNBinsY()
virtual unsigned LWHist1D::actualGetNBinsY |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ apply()
bool LWHist1D::apply |
( |
TH1 * |
h | ) |
const |
|
protectedvirtualinherited |
◆ clear()
◆ clearKeptROOTHist()
void TH1I_LW::clearKeptROOTHist |
( |
| ) |
|
|
overrideprivatevirtual |
◆ create() [1/3]
◆ create() [2/3]
◆ create() [3/3]
◆ ensureInitDecorations()
void LWHist::ensureInitDecorations |
( |
| ) |
|
|
privateinherited |
◆ Fill() [1/2]
void TH1I_LW::Fill |
( |
const double & |
x | ) |
|
|
overridevirtual |
◆ Fill() [2/2]
void TH1I_LW::Fill |
( |
const double & |
x, |
|
|
const double & |
w |
|
) |
| |
|
overridevirtual |
◆ GetBinContent()
double TH1I_LW::GetBinContent |
( |
unsigned |
bin | ) |
const |
|
overridevirtual |
◆ GetBinContentAndError()
void TH1I_LW::GetBinContentAndError |
( |
unsigned |
bin, |
|
|
double & |
content, |
|
|
double & |
error |
|
) |
| const |
|
overridevirtual |
◆ GetBinError()
double TH1I_LW::GetBinError |
( |
unsigned |
bin | ) |
const |
|
overridevirtual |
◆ getCustomData() [1/2]
void* LWHist::getCustomData |
( |
| ) |
|
|
inlineinherited |
◆ getCustomData() [2/2]
const void* LWHist::getCustomData |
( |
| ) |
const |
|
inlineinherited |
◆ GetEntries()
unsigned TH1I_LW::GetEntries |
( |
| ) |
const |
|
overridevirtual |
◆ 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 TH1I_LW::GetNbinsX |
( |
| ) |
const |
|
overridevirtual |
◆ getNextActiveBin()
bool TH1I_LW::getNextActiveBin |
( |
unsigned & |
bin, |
|
|
double & |
content, |
|
|
double & |
error |
|
) |
| |
|
overridevirtual |
◆ getROOTHist()
TH1I * TH1I_LW::getROOTHist |
( |
| ) |
|
◆ getROOTHistBase()
TH1 * TH1I_LW::getROOTHistBase |
( |
| ) |
|
|
overridevirtual |
◆ getROOTHistBaseNoAlloc() [1/2]
const TH1 * TH1I_LW::getROOTHistBaseNoAlloc |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ getROOTHistBaseNoAlloc() [2/2]
TH1 * TH1I_LW::getROOTHistBaseNoAlloc |
( |
| ) |
|
|
overrideprivatevirtual |
◆ getSums()
void TH1I_LW::getSums |
( |
double & |
sumW, |
|
|
double & |
sumW2, |
|
|
double & |
sumWX, |
|
|
double & |
sumWX2 |
|
) |
| const |
|
overridevirtual |
◆ GetTitle()
const char * LWHist::GetTitle |
( |
| ) |
const |
|
inherited |
◆ getVarBins() [1/2]
float * TH1I_LW::getVarBins |
( |
| ) |
|
|
private |
◆ getVarBins() [2/2]
const float * TH1I_LW::getVarBins |
( |
| ) |
const |
|
private |
◆ GetXaxis()
◆ getXMax()
double TH1I_LW::getXMax |
( |
| ) |
const |
|
overridevirtual |
Implements LWHist1D.
Definition at line 239 of file TH1I_LW.cxx.
242 return std::as_const(*m_rootHisto).GetXaxis()->GetXmax();
◆ getXMin()
double TH1I_LW::getXMin |
( |
| ) |
const |
|
overridevirtual |
Implements LWHist1D.
Definition at line 232 of file TH1I_LW.cxx.
235 return std::as_const(*m_rootHisto).GetXaxis()->GetXmin();
◆ GetYaxis()
◆ GetZaxis()
◆ Integral()
double TH1I_LW::Integral |
( |
| ) |
const |
|
overridevirtual |
◆ operator=()
◆ ownsROOTHisto()
bool LWHist::ownsROOTHisto |
( |
| ) |
const |
|
inlineinherited |
◆ Reset()
◆ resetActiveBinLoop()
void TH1I_LW::resetActiveBinLoop |
( |
| ) |
|
|
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;
◆ scaleContentsAndErrors()
void TH1I_LW::scaleContentsAndErrors |
( |
const double & |
fact | ) |
|
|
overridevirtual |
Implements LWHist1D.
Definition at line 370 of file TH1I_LW.cxx.
375 double sumW, sumW2, sumWX, sumWX2;
376 getSums(sumW, sumW2, sumWX, sumWX2);
377 setSums(fact*sumW, sumW2*fact*fact, sumWX*fact, sumWX2*fact);
380 FLEXHIST()->scaleContentsAndErrors(fact);
◆ SetBinContent()
void TH1I_LW::SetBinContent |
( |
unsigned |
bin, |
|
|
const double & |
c |
|
) |
| |
|
overridevirtual |
◆ SetBinContentAndError()
void TH1I_LW::SetBinContentAndError |
( |
unsigned |
bin, |
|
|
const double & |
content, |
|
|
const double & |
error |
|
) |
| |
|
overridevirtual |
◆ SetBinError()
void TH1I_LW::SetBinError |
( |
unsigned |
bin, |
|
|
const double & |
e |
|
) |
| |
|
overridevirtual |
◆ SetBins()
void TH1I_LW::SetBins |
( |
unsigned |
nbins, |
|
|
double |
xmin, |
|
|
double |
xmax |
|
) |
| |
|
overridevirtual |
Implements LWHist1D.
Definition at line 201 of file TH1I_LW.cxx.
204 std::cout<<
"TH1I_LW Warning: SetBins(..) called on non-empty histogram."
205 <<
" Bin contents lost/reshuffled! (histogram name: \""<<
GetName()<<
"\")"<<std::endl;
◆ setCustomData()
void LWHist::setCustomData |
( |
void * |
data | ) |
|
|
inlineinherited |
◆ SetEntries()
void TH1I_LW::SetEntries |
( |
unsigned |
n | ) |
|
|
overridevirtual |
◆ 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 TH1I_LW::setSums |
( |
const double & |
sumW, |
|
|
const double & |
sumW2, |
|
|
const double & |
sumWX, |
|
|
const double & |
sumWX2 |
|
) |
| |
|
overridevirtual |
◆ 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
void* TH1I_LW::m_flexHisto |
|
private |
◆ m_name
◆ m_nBytesFromPool
unsigned short LWHist::m_nBytesFromPool |
|
protectedinherited |
◆ m_ownsRootHisto
bool LWHist::m_ownsRootHisto |
|
privateinherited |
◆ m_ownsRootSumw2
bool TH1I_LW::m_ownsRootSumw2 |
|
private |
◆ m_rootbackend_fastloopbin
unsigned TH1I_LW::m_rootbackend_fastloopbin |
|
private |
◆ m_rootHisto
TH1I* TH1I_LW::m_rootHisto |
|
private |
◆ m_title
◆ m_usingROOTBackend
const bool LWHist::m_usingROOTBackend |
|
privateinherited |
The documentation for this class was generated from the following files:
void scaleContentsAndErrors(THX *, const double &fact)
char data[hepevt_bytes_allocation_ATLAS]
virtual double GetBinError(unsigned bin) const override
void ensureInitDecorations()
static TH1I_LW * create(const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup)
virtual double GetBinContent(unsigned bin) const override
static void release(char *, unsigned length)
bool ownsROOTHisto() const
#define DEFAULT_MARKERSIZE
virtual unsigned GetEntries() const override
LWHist::LWHistAxis * m_xAxis
LWHist::LWHistAxis * m_yAxis
bool usingROOTBackend() const
void SetTitle(const char *)
TH1I_LW(const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup, bool rootbackend)
virtual void clear() override
virtual void clearKeptROOTHist() override
unsigned m_rootbackend_fastloopbin
const char * GetName() const
virtual void setSums(const double &sumW, const double &sumW2, const double &sumWX, const double &sumWX2) override
static bool hasROOTBackend()
static void destroy(Flex1DHisto *)
#define DEFAULT_MARKERSTYLE
static void setStringFromInput(const char *input, char *&target)
const bool m_usingROOTBackend
virtual double getXMax() const override
static bool cleanupOnGetROOT()
static void releaseAllHeldMemory()
virtual double getXMin() const override
virtual unsigned GetNbinsX() const =0
void deleteRootHisto(THX *rootHist, bool &sumW2IsFromPools)
virtual unsigned GetNbinsX() const override
#define DEFAULT_MARKERCOLOR
void SetBinContent(int, double)
virtual void getSums(double &sumW, double &sumW2, double &sumWX, double &sumWX2) const override
virtual bool apply(TH1 *) const
static Flex1DHisto * create(unsigned nbins, const double &xmin, const double &xmax)
virtual const TH1 * getROOTHistBaseNoAlloc() const =0
LWHist::LWHistAxis * m_zAxis
LWHistDecorations * m_decorations
virtual void getSums(double &sumW, double &sumW2, double &sumWX, double &sumWX2) const =0
double GetBinContent(int) const
virtual double Integral() const override
LWHist1D(const char *n, const char *t, bool rb)
virtual void SetEntries(unsigned) override
virtual void SetBinContent(unsigned bin, const double &) override
short GetMarkerStyle() const
virtual void SetBinError(unsigned bin, const double &) override
virtual bool apply(TH1 *) const
static std::atomic< long > s_nActiveHists