ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
TH2D_LW Class Reference

#include <TH2D_LW.h>

Inheritance diagram for TH2D_LW:
Collaboration diagram for TH2D_LW:

Public Types

typedef double bin_type_t
 

Public Member Functions

virtual void Fill (const double &x, const double &y) override
 
virtual void Fill (const double &x, const double &y, const double &w) override
 
virtual unsigned GetNbinsX () const override
 
virtual unsigned GetNbinsY () const override
 
virtual double GetBinContent (unsigned binx, unsigned biny) const override
 
virtual double GetBinError (unsigned binx, unsigned biny) const override
 
virtual void SetBinContent (unsigned binx, unsigned biny, const double &) override
 
virtual void SetBinError (unsigned binx, unsigned biny, const double &) override
 
virtual unsigned GetEntries () const override
 
virtual void SetEntries (unsigned) override
 
virtual void SetBins (unsigned nbinsx, double xmin, double xmax, unsigned nbinsy, double ymin, double ymax) override
 
virtual void GetBinContentAndError (unsigned binx, unsigned biny, double &content, double &error) const override
 
virtual void SetBinContentAndError (unsigned binx, unsigned biny, const double &content, const double &error) override
 
virtual double getXMin () const override
 
virtual double getXMax () const override
 
virtual double getYMin () const override
 
virtual double getYMax () const override
 
virtual void Reset () override
 
virtual void getSums (double &sumW, double &sumW2, double &sumWX, double &sumWX2, double &sumWY, double &sumWY2, double &sumWXY) const override
 
virtual void setSums (const double &sumW, const double &sumW2, const double &sumWX, const double &sumWX2, const double &sumWY, const double &sumWY2, const double &sumWXY) override
 
TH2DgetROOTHist ()
 
virtual TH1getROOTHistBase () override
 
virtual double Integral () const override
 
virtual void resetActiveBinLoop () override
 
virtual bool getNextActiveBin (unsigned &binx, unsigned &biny, 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
 
LWHistAxisGetXaxis ()
 
LWHistAxisGetYaxis ()
 
LWHistAxisGetZaxis ()
 
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 Public Member Functions

static TH2D_LWcreate (const char *name, const char *title, unsigned nbinsx, const double &xmin, const double &xmax, unsigned nbinsy, const double &ymin, const double &ymax)
 
static TH2D_LWcreate (const char *name, const char *title, unsigned nbinsx, const double *xbins, unsigned nbinsy, const double &ymin, const double &ymax)
 
static TH2D_LWcreate (const char *name, const char *title, unsigned nbinsx, const double &xmin, const double &xmax, unsigned nbinsy, const double *ybins)
 
static TH2D_LWcreate (const char *name, const char *title, unsigned nbinsx, const double *xbins, unsigned nbinsy, const double *ybins)
 
static TH2D_LWcreate (const char *name, const char *title, unsigned nbinsx, const float *xbins, unsigned nbinsy, const float *ybins)
 
static void safeDelete (LWHist *)
 

Protected Member Functions

virtual unsigned actualGetNBinsX () const
 
virtual unsigned actualGetNBinsY () const
 
virtual bool apply (TH1 *) const
 

Protected Attributes

unsigned short m_nBytesFromPool
 

Private Member Functions

virtual void clear () override
 
double getBinCenterX (int bin) const
 
double getBinCenterY (int bin) const
 
virtual const TH1getROOTHistBaseNoAlloc () const override
 
virtual TH1getROOTHistBaseNoAlloc () override
 
virtual void clearKeptROOTHist () override
 
const float * getVarBinsX () const
 
const float * getVarBinsY () const
 
virtual double actualGetBinCenterX (int bin) const override
 
virtual double actualGetBinCenterY (int bin) const override
 
virtual unsigned actualFindBinX (const double &) const override
 
virtual unsigned actualFindBinY (const double &) const override
 
 TH2D_LW (const char *name, const char *title, unsigned nbinsx, const double &xmin, const double &xmax, unsigned nbinsy, const double &ymin, const double &ymax, bool rootbackend)
 
 TH2D_LW (const char *name, const char *title, unsigned nbinsx, const double *xbins, unsigned nbinsy, const double &ymin, const double &ymax, bool rootbackend)
 
 TH2D_LW (const char *name, const char *title, unsigned nbinsx, const double &xmin, const double &xmax, unsigned nbinsy, const double *ybins, bool rootbackend)
 
 TH2D_LW (const char *name, const char *title, unsigned nbinsx, const double *xbins, unsigned nbinsy, const double *ybins, bool rootbackend)
 
 TH2D_LW (const char *name, const char *title, unsigned nbinsx, const float *xbins, unsigned nbinsy, const float *ybins, bool rootbackend)
 
virtual ~TH2D_LW ()
 
 TH2D_LW (const TH2D_LW &)
 
TH2D_LWoperator= (const TH2D_LW &)
 
void ensureInitDecorations ()
 

Private Attributes

void * m_flexHisto
 
TH2Dm_rootHisto
 
unsigned m_rootbackend_fastloopbin
 
bool m_ownsRootSumw2
 
const bool m_usingROOTBackend
 
bool m_ownsRootHisto
 
char * m_name
 
char * m_title
 
LWHistDecorationsm_decorations
 
void * m_customData
 

Friends

class LWHistInt
 
class LWHistVal
 

Detailed Description

Definition at line 23 of file TH2D_LW.h.

Member Typedef Documentation

◆ bin_type_t

typedef double TH2D_LW::bin_type_t

Definition at line 25 of file TH2D_LW.h.

Constructor & Destructor Documentation

◆ TH2D_LW() [1/6]

TH2D_LW::TH2D_LW ( const char *  name,
const char *  title,
unsigned  nbinsx,
const double &  xmin,
const double &  xmax,
unsigned  nbinsy,
const double &  ymin,
const double &  ymax,
bool  rootbackend 
)
private

Definition at line 113 of file TH2D_LW.cxx.

116  : LWHist2D(name,title,rootbackend),
117  m_flexHisto(0),
118  m_rootHisto(0),
120  m_ownsRootSumw2(false)
121 {
122  if (rootbackend) {
123  m_rootHisto = new TH2D(name,title,nbinsx,xmin,xmax,nbinsy,ymin,ymax);
124  } else {
126  }
127 }

◆ TH2D_LW() [2/6]

TH2D_LW::TH2D_LW ( const char *  name,
const char *  title,
unsigned  nbinsx,
const double *  xbins,
unsigned  nbinsy,
const double &  ymin,
const double &  ymax,
bool  rootbackend 
)
private

Definition at line 130 of file TH2D_LW.cxx.

133  : LWHist2D(name,title,rootbackend),
134  m_flexHisto(0),
135  m_rootHisto(0),
137  m_ownsRootSumw2(false)
138 {
139  if (rootbackend) {
140  m_rootHisto = new TH2D(name,title,nbinsx,xbins,nbinsy,ymin,ymax);
141  } else {
143  }
144 }

◆ TH2D_LW() [3/6]

TH2D_LW::TH2D_LW ( const char *  name,
const char *  title,
unsigned  nbinsx,
const double &  xmin,
const double &  xmax,
unsigned  nbinsy,
const double *  ybins,
bool  rootbackend 
)
private

Definition at line 147 of file TH2D_LW.cxx.

150  : LWHist2D(name,title,rootbackend),
151  m_flexHisto(0),
152  m_rootHisto(0),
154  m_ownsRootSumw2(false)
155 {
156  if (rootbackend) {
157  m_rootHisto = new TH2D(name,title,nbinsx,xmin,xmax,nbinsy,ybins);
158  } else {
160  }
161 }

◆ TH2D_LW() [4/6]

TH2D_LW::TH2D_LW ( const char *  name,
const char *  title,
unsigned  nbinsx,
const double *  xbins,
unsigned  nbinsy,
const double *  ybins,
bool  rootbackend 
)
private

Definition at line 164 of file TH2D_LW.cxx.

167  : LWHist2D(name,title,rootbackend),
168  m_flexHisto(0),
169  m_rootHisto(0),
171  m_ownsRootSumw2(false)
172 {
173  if (rootbackend) {
174  m_rootHisto = new TH2D(name,title,nbinsx,xbins,nbinsy,ybins);
175  } else {
177  }
178 }

◆ TH2D_LW() [5/6]

TH2D_LW::TH2D_LW ( const char *  name,
const char *  title,
unsigned  nbinsx,
const float *  xbins,
unsigned  nbinsy,
const float *  ybins,
bool  rootbackend 
)
private

Definition at line 181 of file TH2D_LW.cxx.

184  : LWHist2D(name,title,rootbackend),
185  m_flexHisto(0),
186  m_rootHisto(0),
188  m_ownsRootSumw2(false)
189 {
190  if (rootbackend) {
191  m_rootHisto = new TH2D(name,title,nbinsx,xbins,nbinsy,ybins);
192  } else {
194  }
195 }

◆ ~TH2D_LW()

TH2D_LW::~TH2D_LW ( )
privatevirtual

Definition at line 198 of file TH2D_LW.cxx.

199 {
201  clear();
202  if (ownsROOTHisto())
203  delete m_rootHisto;//for root backend
204 }

◆ TH2D_LW() [6/6]

TH2D_LW::TH2D_LW ( const TH2D_LW )
private

Member Function Documentation

◆ actualFindBinX()

unsigned TH2D_LW::actualFindBinX ( const double &  x) const
overrideprivatevirtual

Implements LWHist.

Definition at line 357 of file TH2D_LW.cxx.

358 {
359  assert(!m_rootHisto);//Should have called the TAxis::FindBin() directly
360  return FLEXHIST()->valueToXBin(x);
361 }

◆ actualFindBinY()

unsigned TH2D_LW::actualFindBinY ( const double &  y) const
overrideprivatevirtual

Implements LWHist.

Definition at line 363 of file TH2D_LW.cxx.

364 {
365  assert(!m_rootHisto);//Should have called the TAxis::FindBin() directly
366  return FLEXHIST()->valueToYBin(y);
367 }

◆ actualGetBinCenterX()

double TH2D_LW::actualGetBinCenterX ( int  bin) const
overrideprivatevirtual

Implements LWHist.

Definition at line 435 of file TH2D_LW.cxx.

436 {
437  if (m_rootHisto) {
438  assert(false);
439  return 0;
440  }
441  return FLEXHIST()->getBinCenterX(bin);
442 }

◆ actualGetBinCenterY()

double TH2D_LW::actualGetBinCenterY ( int  bin) const
overrideprivatevirtual

Implements LWHist.

Definition at line 444 of file TH2D_LW.cxx.

445 {
446  if (m_rootHisto) {
447  assert(false);
448  return 0;
449  }
450  return FLEXHIST()->getBinCenterY(bin);
451 }

◆ actualGetNBinsX()

virtual unsigned LWHist2D::actualGetNBinsX ( ) const
inlineprotectedvirtualinherited

Implements LWHist.

Definition at line 72 of file LWHist2D.h.

72 { return GetNbinsX(); }

◆ actualGetNBinsY()

virtual unsigned LWHist2D::actualGetNBinsY ( ) const
inlineprotectedvirtualinherited

Implements LWHist.

Definition at line 73 of file LWHist2D.h.

73 { return GetNbinsY(); }

◆ apply()

bool LWHist2D::apply ( TH1 h) const
protectedvirtualinherited

Reimplemented from LWHist.

Definition at line 20 of file LWHist2D.cxx.

21 {
22  TH2 * h2 = dynamic_cast<TH2*>(h);
23  if (!h2||!LWHist::apply(h))
24  return false;
25 
26  double stats[7];
27  getSums(stats[0],stats[1],stats[2],stats[3],stats[4],stats[5],stats[6]);
28  h->PutStats(stats);
29  return true;
30 }

◆ clear()

void TH2D_LW::clear ( )
overrideprivatevirtual

Reimplemented from LWHist.

Definition at line 230 of file TH2D_LW.cxx.

231 {
232  LWREPORT
233  LWHist::clear();
235  m_flexHisto = 0;
236 }

◆ clearKeptROOTHist()

void TH2D_LW::clearKeptROOTHist ( )
overrideprivatevirtual

Implements LWHist.

Definition at line 239 of file TH2D_LW.cxx.

240 {
242  return;
243  if (m_rootHisto) {
245  m_rootHisto = 0;
246  }
247 }

◆ create() [1/5]

TH2D_LW * TH2D_LW::create ( const char *  name,
const char *  title,
unsigned  nbinsx,
const double &  xmin,
const double &  xmax,
unsigned  nbinsy,
const double &  ymin,
const double &  ymax 
)
static

Definition at line 33 of file TH2D_LW.cxx.

36 {
37  bool rootbackend(LWHistControls::hasROOTBackend());
38  TH2D_LW * h;
39  if (rootbackend) {
40  h = new TH2D_LW(name,title,nbinsx,xmin,xmax,nbinsy,ymin,ymax,rootbackend);
41  } else {
42  h = MP_NEW(TH2D_LW)(name,title,nbinsx,xmin,xmax,nbinsy,ymin,ymax,rootbackend);
43  h->m_nBytesFromPool = sizeof(TH2D_LW);
44  }
45  return h;
46 }

◆ create() [2/5]

TH2D_LW * TH2D_LW::create ( const char *  name,
const char *  title,
unsigned  nbinsx,
const double &  xmin,
const double &  xmax,
unsigned  nbinsy,
const double *  ybins 
)
static

Definition at line 65 of file TH2D_LW.cxx.

68 {
69  bool rootbackend(LWHistControls::hasROOTBackend());
70  TH2D_LW * h;
71  if (rootbackend) {
72  h = new TH2D_LW(name,title,nbinsx,xmin,xmax,nbinsy,ybins,rootbackend);
73  } else {
74  h = MP_NEW(TH2D_LW)(name,title,nbinsx,xmin,xmax,nbinsy,ybins,rootbackend);
75  h->m_nBytesFromPool = sizeof(TH2D_LW);
76  }
77  return h;
78 }

◆ create() [3/5]

TH2D_LW * TH2D_LW::create ( const char *  name,
const char *  title,
unsigned  nbinsx,
const double *  xbins,
unsigned  nbinsy,
const double &  ymin,
const double &  ymax 
)
static

Definition at line 49 of file TH2D_LW.cxx.

52 {
53  bool rootbackend(LWHistControls::hasROOTBackend());
54  TH2D_LW * h;
55  if (rootbackend) {
56  h = new TH2D_LW(name,title,nbinsx,xbins,nbinsy,ymin,ymax,rootbackend);
57  } else {
58  h = MP_NEW(TH2D_LW)(name,title,nbinsx,xbins,nbinsy,ymin,ymax,rootbackend);
59  h->m_nBytesFromPool = sizeof(TH2D_LW);
60  }
61  return h;
62 }

◆ create() [4/5]

TH2D_LW * TH2D_LW::create ( const char *  name,
const char *  title,
unsigned  nbinsx,
const double *  xbins,
unsigned  nbinsy,
const double *  ybins 
)
static

Definition at line 81 of file TH2D_LW.cxx.

84 {
85  bool rootbackend(LWHistControls::hasROOTBackend());
86  TH2D_LW * h;
87  if (rootbackend) {
88  h = new TH2D_LW(name,title,nbinsx,xbins,nbinsy,ybins,rootbackend);
89  } else {
90  h = MP_NEW(TH2D_LW)(name,title,nbinsx,xbins,nbinsy,ybins,rootbackend);
91  h->m_nBytesFromPool = sizeof(TH2D_LW);
92  }
93  return h;
94 }

◆ create() [5/5]

TH2D_LW * TH2D_LW::create ( const char *  name,
const char *  title,
unsigned  nbinsx,
const float *  xbins,
unsigned  nbinsy,
const float *  ybins 
)
static

Definition at line 97 of file TH2D_LW.cxx.

100 {
101  bool rootbackend(LWHistControls::hasROOTBackend());
102  TH2D_LW * h;
103  if (rootbackend) {
104  h = new TH2D_LW(name,title,nbinsx,xbins,nbinsy,ybins,rootbackend);
105  } else {
106  h = MP_NEW(TH2D_LW)(name,title,nbinsx,xbins,nbinsy,ybins,rootbackend);
107  h->m_nBytesFromPool = sizeof(TH2D_LW);
108  }
109  return h;
110 }

◆ ensureInitDecorations()

void LWHist::ensureInitDecorations ( )
privateinherited

Definition at line 90 of file LWHist.cxx.

91 {
92  if (!m_decorations)
93  m_decorations = usingROOTBackend() ? new LWHistDecorations : MP_NEW(LWHistDecorations);
94 }

◆ Fill() [1/2]

void TH2D_LW::Fill ( const double &  x,
const double &  y 
)
overridevirtual

Implements LWHist2D.

Definition at line 329 of file TH2D_LW.cxx.

330 {
332  if (m_rootHisto)
333  m_rootHisto->Fill(x,y);
334  else
335  FLEXHIST()->fill(x,y);
336 }

◆ Fill() [2/2]

void TH2D_LW::Fill ( const double &  x,
const double &  y,
const double &  w 
)
overridevirtual

Implements LWHist2D.

Definition at line 338 of file TH2D_LW.cxx.

339 {
341  if (m_rootHisto)
342  m_rootHisto->Fill(x,y,w);
343  else
344  FLEXHIST()->fill(x,y,w);
345 }

◆ getBinCenterX()

double TH2D_LW::getBinCenterX ( int  bin) const
private

◆ getBinCenterY()

double TH2D_LW::getBinCenterY ( int  bin) const
private

◆ GetBinContent()

double TH2D_LW::GetBinContent ( unsigned  binx,
unsigned  biny 
) const
overridevirtual

Implements LWHist2D.

Definition at line 369 of file TH2D_LW.cxx.

370 {
371  LWCOUNTCALL;return CALL(GetBinContent(binx,biny),getBinContent(binx,biny));
372 }

◆ GetBinContentAndError()

void TH2D_LW::GetBinContentAndError ( unsigned  binx,
unsigned  biny,
double &  content,
double &  error 
) const
overridevirtual

Implements LWHist2D.

Definition at line 490 of file TH2D_LW.cxx.

491 {
493  if (m_rootHisto) {
494  content = m_rootHisto->GetBinContent(binx,biny);
495  error = m_rootHisto->GetBinError(binx,biny);
496  } else {
497  FLEXHIST()->getBinContentAndError(binx,biny,content,error);
498  }
499 }

◆ GetBinError()

double TH2D_LW::GetBinError ( unsigned  binx,
unsigned  biny 
) const
overridevirtual

Implements LWHist2D.

Definition at line 374 of file TH2D_LW.cxx.

375 {
376  LWCOUNTCALL;return CALL(GetBinError(binx,biny),getBinError(binx,biny));
377 }

◆ getCustomData() [1/2]

void* LWHist::getCustomData ( )
inlineinherited

Definition at line 71 of file LWHist.h.

71 { return m_customData; }

◆ getCustomData() [2/2]

const void* LWHist::getCustomData ( ) const
inlineinherited

Definition at line 70 of file LWHist.h.

70 { return m_customData; }

◆ GetEntries()

unsigned TH2D_LW::GetEntries ( ) const
overridevirtual

Implements LWHist.

Definition at line 389 of file TH2D_LW.cxx.

390 {
391  if (m_rootHisto)
392  return static_cast<unsigned>(m_rootHisto->GetEntries());
393  else
394  return FLEXHIST()->getEntries();
395 }

◆ GetMarkerColor()

short LWHist::GetMarkerColor ( ) const
inherited

Definition at line 96 of file LWHist.cxx.

97 {
98  const TH1 * hroot= getROOTHistBaseNoAlloc();
99  if (hroot)
100  return hroot->GetMarkerColor();
101 
103 }

◆ GetMarkerSize()

float LWHist::GetMarkerSize ( ) const
inherited

Definition at line 113 of file LWHist.cxx.

114 {
115  const TH1 * hroot= getROOTHistBaseNoAlloc();
116  if (hroot)
117  return hroot->GetMarkerSize();
119 }

◆ GetMarkerStyle()

short LWHist::GetMarkerStyle ( ) const
inherited

Definition at line 105 of file LWHist.cxx.

106 {
107  const TH1 * hroot= getROOTHistBaseNoAlloc();
108  if (hroot)
109  return hroot->GetMarkerStyle();
111 }

◆ GetName()

const char * LWHist::GetName ( ) const
inherited

Definition at line 366 of file LWHist.cxx.

367 {
368  const TH1 * hroot = getROOTHistBaseNoAlloc();
369  return hroot ? hroot->GetName() : m_name;
370 }

◆ GetNbinsX()

unsigned TH2D_LW::GetNbinsX ( ) const
overridevirtual

Implements LWHist2D.

Definition at line 347 of file TH2D_LW.cxx.

348 {
349  return CALL(GetNbinsX(),getNBinsX());
350 }

◆ GetNbinsY()

unsigned TH2D_LW::GetNbinsY ( ) const
overridevirtual

Implements LWHist2D.

Definition at line 352 of file TH2D_LW.cxx.

353 {
354  return CALL(GetNbinsY(),getNBinsY());
355 }

◆ getNextActiveBin()

bool TH2D_LW::getNextActiveBin ( unsigned &  binx,
unsigned &  biny,
double &  content,
double &  error 
)
overridevirtual

Implements LWHist2D.

Definition at line 468 of file TH2D_LW.cxx.

469 {
470  if (m_rootHisto) {
471  unsigned nxp2(GetNbinsX()+2);
472  unsigned n(nxp2*(GetNbinsY()+2));
473  assert(m_rootbackend_fastloopbin<n+1);
478  if (content!=0.0||error!=0.0) {
479  binx = (m_rootbackend_fastloopbin-1) % nxp2;
480  biny = (m_rootbackend_fastloopbin-1-binx) / nxp2;
481  return true;
482  }
483  }
484  return false;
485  }
486  assert(m_rootbackend_fastloopbin==UINT_MAX);
487  return FLEXHIST()->getNextActiveBin(binx,biny,content,error);
488 }

◆ getROOTHist()

TH2D * TH2D_LW::getROOTHist ( )

Definition at line 216 of file TH2D_LW.cxx.

217 {
218  if (!m_rootHisto) {
219  TH2D * h = LWHistRootUtils::createRootHisto<double,TH2D_LW,TH2D,Flex2DHisto<double> >(this,FLEXHIST(),m_ownsRootSumw2);
220  if (!apply(h))
221  assert(false);
223  clear();
224  m_rootHisto = h;
225  }
226  return m_rootHisto;
227 }

◆ getROOTHistBase()

TH1 * TH2D_LW::getROOTHistBase ( )
overridevirtual

Implements LWHist.

Definition at line 215 of file TH2D_LW.cxx.

215 { return getROOTHist(); }

◆ getROOTHistBaseNoAlloc() [1/2]

const TH1 * TH2D_LW::getROOTHistBaseNoAlloc ( ) const
overrideprivatevirtual

Implements LWHist.

Definition at line 207 of file TH2D_LW.cxx.

208 {
209  return m_rootHisto;
210 }

◆ getROOTHistBaseNoAlloc() [2/2]

TH1 * TH2D_LW::getROOTHistBaseNoAlloc ( )
overrideprivatevirtual

Implements LWHist.

Definition at line 211 of file TH2D_LW.cxx.

212 {
213  return m_rootHisto;
214 }

◆ getSums()

void TH2D_LW::getSums ( double &  sumW,
double &  sumW2,
double &  sumWX,
double &  sumWX2,
double &  sumWY,
double &  sumWY2,
double &  sumWXY 
) const
overridevirtual

Implements LWHist2D.

Definition at line 399 of file TH2D_LW.cxx.

403 {
404  if (m_rootHisto) {
405  sumW = LWHistRootUtils::getSumW(m_rootHisto);
406  sumW2 = LWHistRootUtils::getSumW2(m_rootHisto);
407  sumWX = LWHistRootUtils::getSumWX(m_rootHisto);
408  sumWX2 = LWHistRootUtils::getSumWX2(m_rootHisto);
409  sumWY = LWHistRootUtils::getSumWY(m_rootHisto);
410  sumWY2 = LWHistRootUtils::getSumWY2(m_rootHisto);
411  sumWXY = LWHistRootUtils::getSumWXY(m_rootHisto);
412  } else {
413  sumW = FLEXHIST()->getSumW(); sumW2 = FLEXHIST()->getSumW2();
414  sumWX = FLEXHIST()->getSumWX(); sumWX2 = FLEXHIST()->getSumWX2();
415  sumWY = FLEXHIST()->getSumWY(); sumWY2 = FLEXHIST()->getSumWY2();
416  sumWXY = FLEXHIST()->getSumWXY();
417  }
418 }

◆ GetTitle()

const char * LWHist::GetTitle ( ) const
inherited

Definition at line 372 of file LWHist.cxx.

373 {
374  const TH1 * hroot = getROOTHistBaseNoAlloc();
375  return hroot ? hroot->GetTitle() : m_title;
376 }

◆ getVarBinsX()

const float * TH2D_LW::getVarBinsX ( ) const
private

Definition at line 288 of file TH2D_LW.cxx.

289 {
290  assert (!m_rootHisto);
291  return FLEXHIST()->getVarBinsX();
292 }

◆ getVarBinsY()

const float * TH2D_LW::getVarBinsY ( ) const
private

Definition at line 294 of file TH2D_LW.cxx.

295 {
296  assert (!m_rootHisto);
297  return FLEXHIST()->getVarBinsY();
298 }

◆ GetXaxis()

LWHist::LWHistAxis * LWHist::GetXaxis ( )
inherited

Definition at line 309 of file LWHist.cxx.

310 {
311  this->ensureInitDecorations();
312  if (!m_decorations->m_xAxis)
313  this->m_decorations->m_xAxis = usingROOTBackend() ? new LWHistAxis(this) : MP_NEW(LWHistAxis)(this);
314 
315  return m_decorations->m_xAxis;
316 }

◆ getXMax()

double TH2D_LW::getXMax ( ) const
overridevirtual

Implements LWHist2D.

Definition at line 307 of file TH2D_LW.cxx.

308 {
309  if (m_rootHisto)
310  return std::as_const(*m_rootHisto).GetXaxis()->GetXmax();
311  return FLEXHIST()->getXMax();
312 }

◆ getXMin()

double TH2D_LW::getXMin ( ) const
overridevirtual

Implements LWHist2D.

Definition at line 300 of file TH2D_LW.cxx.

301 {
302  if (m_rootHisto)
303  return std::as_const(*m_rootHisto).GetXaxis()->GetXmin();
304  return FLEXHIST()->getXMin();
305 }

◆ GetYaxis()

LWHist::LWHistAxis * LWHist::GetYaxis ( )
inherited

Definition at line 319 of file LWHist.cxx.

320 {
321  this->ensureInitDecorations();
322  if (!m_decorations->m_yAxis)
323  this->m_decorations->m_yAxis = usingROOTBackend() ? new LWHistAxis(this) : MP_NEW(LWHistAxis)(this);
324  return m_decorations->m_yAxis;
325 }

◆ getYMax()

double TH2D_LW::getYMax ( ) const
overridevirtual

Implements LWHist2D.

Definition at line 321 of file TH2D_LW.cxx.

322 {
323  if (m_rootHisto)
324  return std::as_const(*m_rootHisto).GetYaxis()->GetXmax();
325  return FLEXHIST()->getYMax();
326 }

◆ getYMin()

double TH2D_LW::getYMin ( ) const
overridevirtual

Implements LWHist2D.

Definition at line 314 of file TH2D_LW.cxx.

315 {
316  if (m_rootHisto)
317  return std::as_const(*m_rootHisto).GetYaxis()->GetXmin();
318  return FLEXHIST()->getYMin();
319 }

◆ GetZaxis()

LWHist::LWHistAxis * LWHist::GetZaxis ( )
inherited

Definition at line 328 of file LWHist.cxx.

329 {
330  this->ensureInitDecorations();
331  if (!m_decorations->m_zAxis)
332  this->m_decorations->m_zAxis = usingROOTBackend() ? new LWHistAxis(this) : MP_NEW(LWHistAxis)(this);
333  return m_decorations->m_zAxis;
334 }

◆ Integral()

double TH2D_LW::Integral ( ) const
overridevirtual

Implements LWHist.

Definition at line 453 of file TH2D_LW.cxx.

454 {
455  return CALL(Integral(),Integral());
456 }

◆ operator=()

TH2D_LW& TH2D_LW::operator= ( const TH2D_LW )
private

◆ ownsROOTHisto()

bool LWHist::ownsROOTHisto ( ) const
inlineinherited

Definition at line 74 of file LWHist.h.

74 { return m_ownsRootHisto; }

◆ Reset()

void TH2D_LW::Reset ( )
overridevirtual

Implements LWHist.

Definition at line 250 of file TH2D_LW.cxx.

251 {
252  if (m_rootHisto) {
253  m_rootHisto->Reset();
254  return;
255  }
256  if (m_flexHisto) {
257  LWREPORT
258  const float * xbins = FLEXHIST()->getVarBinsX();
259  const float * ybins = FLEXHIST()->getVarBinsY();
260  double xmin(FLEXHIST()->getXMin()),xmax(FLEXHIST()->getXMax());
261  double ymin(FLEXHIST()->getYMin()),ymax(FLEXHIST()->getYMax());
262  unsigned nbinsx(FLEXHIST()->getNBinsX()), nbinsy(FLEXHIST()->getNBinsY());
264  if (xbins)
266  : Flex2DHisto<double>::create(nbinsx,xbins,nbinsy,ymin,ymax);
267  else
269  : Flex2DHisto<double>::create(nbinsx,xmin,xmax,nbinsy,ymin,ymax);
270  }
271 }

◆ resetActiveBinLoop()

void TH2D_LW::resetActiveBinLoop ( )
overridevirtual

Implements LWHist2D.

Definition at line 458 of file TH2D_LW.cxx.

459 {
460  if (m_rootHisto) {
462  return;
463  }
464  m_rootbackend_fastloopbin=UINT_MAX;
465  FLEXHIST()->resetActiveBinLoop();
466 }

◆ safeDelete()

void LWHist::safeDelete ( LWHist h)
staticinherited

Definition at line 30 of file LWHist.cxx.

31 {
32  if (!h) {
33  //std::cout<<"LWHist::safeDelete ERROR: Called with null pointer!"<<std::endl;
34  return;
35  }
36  if (h->m_nBytesFromPool) {
37  h->~LWHist();
38  LWPools::release(reinterpret_cast<char*>(h),h->m_nBytesFromPool);
40  std::cout<<"LWHists INFO: Last active histogram deleted. Triggering complete pool cleanup."<<std::endl;
42  }
43  } else {
44  delete h;
45  }
46 }

◆ scaleContentsAndErrors()

void TH2D_LW::scaleContentsAndErrors ( const double &  fact)
overridevirtual

Implements LWHist2D.

Definition at line 512 of file TH2D_LW.cxx.

513 {
514  //Treated like changing unit on the weights.
515  if (m_rootHisto) {
517  double sumW, sumW2, sumWX,sumWX2,sumWY, sumWY2,sumWXY;
518  getSums(sumW, sumW2, sumWX,sumWX2,sumWY, sumWY2,sumWXY);
519  setSums(sumW*fact, sumW2*fact*fact, sumWX*fact,sumWX2*fact,
520  sumWY*fact, sumWY2*fact,sumWXY*fact);
521  return;
522  }
523  FLEXHIST()->scaleContentsAndErrors(fact);
524 }

◆ SetBinContent()

void TH2D_LW::SetBinContent ( unsigned  binx,
unsigned  biny,
const double &  c 
)
overridevirtual

Implements LWHist2D.

Definition at line 379 of file TH2D_LW.cxx.

380 {
381  LWCOUNTCALL;return CALL(SetBinContent(binx,biny,c),setBinContent(binx,biny,c));
382 }

◆ SetBinContentAndError()

void TH2D_LW::SetBinContentAndError ( unsigned  binx,
unsigned  biny,
const double &  content,
const double &  error 
)
overridevirtual

Implements LWHist2D.

Definition at line 501 of file TH2D_LW.cxx.

502 {
504  if (m_rootHisto) {
505  m_rootHisto->SetBinContent(binx,biny,content);
506  m_rootHisto->SetBinError(binx,biny,error);
507  } else {
508  FLEXHIST()->setBinContentAndError(binx,biny,content,error);
509  }
510 }

◆ SetBinError()

void TH2D_LW::SetBinError ( unsigned  binx,
unsigned  biny,
const double &  e 
)
overridevirtual

Implements LWHist2D.

Definition at line 384 of file TH2D_LW.cxx.

385 {
386  LWCOUNTCALL;return CALL(SetBinError(binx,biny,e),setBinError(binx,biny,e));
387 }

◆ SetBins()

void TH2D_LW::SetBins ( unsigned  nbinsx,
double  xmin,
double  xmax,
unsigned  nbinsy,
double  ymin,
double  ymax 
)
overridevirtual

Implements LWHist2D.

Definition at line 274 of file TH2D_LW.cxx.

276 {
277  if (GetEntries())
278  std::cout<<"TH2D_LW Warning: SetBins(..) called on non-empty histogram."
279  <<" Bin contents lost/reshuffled! (histogram name: \""<<GetName()<<"\")"<<std::endl;
280  if (m_rootHisto) {
281  m_rootHisto->SetBins(nbinsx,xmin,xmax,nbinsy,ymin,ymax);
282  } else {
285  }
286 }

◆ setCustomData()

void LWHist::setCustomData ( void *  data)
inlineinherited

Definition at line 69 of file LWHist.h.

69 { m_customData = data; }

◆ SetEntries()

void TH2D_LW::SetEntries ( unsigned  n)
overridevirtual

Implements LWHist.

Definition at line 397 of file TH2D_LW.cxx.

397 { CALL(SetEntries(n),setEntries(n)); }

◆ SetMarkerColor()

void LWHist::SetMarkerColor ( short  c = 1)
inherited

Definition at line 121 of file LWHist.cxx.

122 {
123  TH1 * hroot= getROOTHistBaseNoAlloc();
124  if (hroot) {
125  hroot->SetMarkerColor(c);
126  return;
127  }
129  return;
132 }

◆ SetMarkerSize()

void LWHist::SetMarkerSize ( float  sz = 1)
inherited

Definition at line 150 of file LWHist.cxx.

150  {
151  TH1 * hroot= getROOTHistBaseNoAlloc();
152  if (hroot) {
153  hroot->SetMarkerSize(sz);
154  return;
155  }
157  return;
160 }

◆ SetMarkerStyle()

void LWHist::SetMarkerStyle ( short  s = 1)
inherited

Definition at line 133 of file LWHist.cxx.

134 {
135  TH1 * hroot= getROOTHistBaseNoAlloc();
136  if (hroot) {
137  hroot->SetMarkerStyle(s);
138  assert(GetMarkerStyle()==s);
139  return;
140  }
142  assert(GetMarkerStyle()==s);
143  return;
144  }
147  assert(GetMarkerStyle()==s);
148 }

◆ SetMaximum()

void LWHist::SetMaximum ( const double &  maximum = -1111)
inherited

Definition at line 175 of file LWHist.cxx.

176 {
177  TH1 * hroot= getROOTHistBaseNoAlloc();
178  if (hroot) {
179  hroot->SetMaximum(m);
180  return;
181  }
182  if (!m_decorations&&fabs(m-DEFAULT_MAXIMUM)<1.0e-5)
183  return;
186 }

◆ SetMinimum()

void LWHist::SetMinimum ( const double &  minimum = -1111)
inherited

Definition at line 162 of file LWHist.cxx.

163 {
164  TH1 * hroot= getROOTHistBaseNoAlloc();
165  if (hroot) {
166  hroot->SetMinimum(m);
167  return;
168  }
169  if (!m_decorations&&fabs(m-DEFAULT_MINIMUM)<1.0e-5)
170  return;
173 }

◆ SetName()

void LWHist::SetName ( const char *  n)
inherited

Definition at line 222 of file LWHist.cxx.

223 {
224  TH1 * hroot= getROOTHistBaseNoAlloc();
225  if (hroot) {
226  hroot->SetName(n);
227  return;
228  }
230 }

◆ SetNameTitle()

void LWHist::SetNameTitle ( const char *  name,
const char *  title 
)
inherited

Definition at line 244 of file LWHist.cxx.

245 {
246  TH1 * hroot= getROOTHistBaseNoAlloc();
247  if (hroot) {
248  hroot->SetNameTitle(n,t);
249  return;
250  }
253 }

◆ SetOption()

void LWHist::SetOption ( const char *  option = " ")
inherited

Definition at line 460 of file LWHist.cxx.

461 {
462  TH1 * hroot= getROOTHistBaseNoAlloc();
463  if (hroot) {
464  hroot->SetOption(option);
465  return;
466  }
469 }

◆ setOwnsROOTHisto()

void LWHist::setOwnsROOTHisto ( bool  b)
inlineinherited

Definition at line 75 of file LWHist.h.

75 { m_ownsRootHisto = b; }

◆ setSums()

void TH2D_LW::setSums ( const double &  sumW,
const double &  sumW2,
const double &  sumWX,
const double &  sumWX2,
const double &  sumWY,
const double &  sumWY2,
const double &  sumWXY 
)
overridevirtual

Implements LWHist2D.

Definition at line 419 of file TH2D_LW.cxx.

421 {
422  if (m_rootHisto) {
423  LWHistRootUtils::setSumW(m_rootHisto,sumW);
424  LWHistRootUtils::setSumW2(m_rootHisto,sumW2);
425  LWHistRootUtils::setSumWX(m_rootHisto,sumWX);
426  LWHistRootUtils::setSumWX2(m_rootHisto,sumWX2);
427  LWHistRootUtils::setSumWY(m_rootHisto,sumWY);
428  LWHistRootUtils::setSumWY2(m_rootHisto,sumWY2);
429  LWHistRootUtils::setSumWXY(m_rootHisto,sumWXY);
430  } else {
431  FLEXHIST()->setSums(sumW,sumW2,sumWX,sumWX2,sumWY,sumWY2,sumWXY);
432  }
433 }

◆ SetTitle()

void LWHist::SetTitle ( const char *  t)
inherited

Definition at line 233 of file LWHist.cxx.

234 {
235  TH1 * hroot= getROOTHistBaseNoAlloc();
236  if (hroot) {
237  hroot->SetTitle(t);
238  return;
239  }
241 }

◆ SetXTitle()

void LWHist::SetXTitle ( const char *  t)
inherited

Definition at line 431 of file LWHist.cxx.

432 {
433  TH1 * hroot= getROOTHistBaseNoAlloc();
434  if (hroot) {
435  hroot->SetXTitle(t);
436  return;
437  }
438  GetXaxis()->SetTitle(t);
439 }

◆ SetYTitle()

void LWHist::SetYTitle ( const char *  t)
inherited

Definition at line 440 of file LWHist.cxx.

441 {
442  TH1 * hroot= getROOTHistBaseNoAlloc();
443  if (hroot) {
444  hroot->SetYTitle(t);
445  return;
446  }
447  GetYaxis()->SetTitle(t);
448 }

◆ SetZTitle()

void LWHist::SetZTitle ( const char *  t)
inherited

Definition at line 449 of file LWHist.cxx.

450 {
451  TH1 * hroot= getROOTHistBaseNoAlloc();
452  if (hroot) {
453  hroot->SetZTitle(t);
454  return;
455  }
456  GetZaxis()->SetTitle(t);
457 }

◆ usingROOTBackend()

bool LWHist::usingROOTBackend ( ) const
inlineinherited

Definition at line 73 of file LWHist.h.

73 { return m_usingROOTBackend; }

Friends And Related Function Documentation

◆ LWHistInt

friend class LWHistInt
friend

Definition at line 87 of file TH2D_LW.h.

◆ LWHistVal

friend class LWHistVal
friend

Definition at line 88 of file TH2D_LW.h.

Member Data Documentation

◆ m_customData

void* LWHist::m_customData
privateinherited

Definition at line 103 of file LWHist.h.

◆ m_decorations

LWHistDecorations* LWHist::m_decorations
privateinherited

Definition at line 102 of file LWHist.h.

◆ m_flexHisto

void* TH2D_LW::m_flexHisto
private

Definition at line 121 of file TH2D_LW.h.

◆ m_name

char* LWHist::m_name
privateinherited

Definition at line 99 of file LWHist.h.

◆ m_nBytesFromPool

unsigned short LWHist::m_nBytesFromPool
protectedinherited

Definition at line 91 of file LWHist.h.

◆ m_ownsRootHisto

bool LWHist::m_ownsRootHisto
privateinherited

Definition at line 95 of file LWHist.h.

◆ m_ownsRootSumw2

bool TH2D_LW::m_ownsRootSumw2
private

Definition at line 124 of file TH2D_LW.h.

◆ m_rootbackend_fastloopbin

unsigned TH2D_LW::m_rootbackend_fastloopbin
private

Definition at line 123 of file TH2D_LW.h.

◆ m_rootHisto

TH2D* TH2D_LW::m_rootHisto
private

Definition at line 122 of file TH2D_LW.h.

◆ m_title

char* LWHist::m_title
privateinherited

Definition at line 100 of file LWHist.h.

◆ m_usingROOTBackend

const bool LWHist::m_usingROOTBackend
privateinherited

Definition at line 94 of file LWHist.h.


The documentation for this class was generated from the following files:
LWHistRootUtils::scaleContentsAndErrors
void scaleContentsAndErrors(THX *, const double &fact)
TH2D::GetBinContent
double GetBinContent(int) const
Definition: rootspy.cxx:435
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
LWHist::GetZaxis
LWHistAxis * GetZaxis()
Definition: LWHist.cxx:328
TH2D_LW::clearKeptROOTHist
virtual void clearKeptROOTHist() override
Definition: TH2D_LW.cxx:239
TH2D_LW::getYMin
virtual double getYMin() const override
Definition: TH2D_LW.cxx:314
ymin
double ymin
Definition: listroot.cxx:63
FLEXHIST
#define FLEXHIST()
Definition: TH2D_LW.cxx:22
TH2D_LW::GetEntries
virtual unsigned GetEntries() const override
Definition: TH2D_LW.cxx:389
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TH2D_LW::SetBinError
virtual void SetBinError(unsigned binx, unsigned biny, const double &) override
Definition: TH2D_LW.cxx:384
fitman.sz
sz
Definition: fitman.py:527
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
LWHist::m_ownsRootHisto
bool m_ownsRootHisto
Definition: LWHist.h:95
TH2D_LW::m_rootbackend_fastloopbin
unsigned m_rootbackend_fastloopbin
Definition: TH2D_LW.h:123
LWHist::ensureInitDecorations
void ensureInitDecorations()
Definition: LWHist.cxx:90
DEFAULT_MAXIMUM
#define DEFAULT_MAXIMUM
Definition: LWHist.cxx:52
Flex2DHisto
Definition: Flex2DHisto.h:34
TH2D_LW::getROOTHist
TH2D * getROOTHist()
Definition: TH2D_LW.cxx:216
TH2D::SetBinContent
void SetBinContent(int, double)
Definition: rootspy.cxx:436
TH2D_LW::getXMax
virtual double getXMax() const override
Definition: TH2D_LW.cxx:307
LWREPORT
#define LWREPORT
Definition: TH2D_LW.cxx:29
PixelAthClusterMonAlgCfg.ybins
ybins
Definition: PixelAthClusterMonAlgCfg.py:163
bin
Definition: BinsDiffFromStripMedian.h:43
TH2D_LW::clear
virtual void clear() override
Definition: TH2D_LW.cxx:230
TH2D_LW::GetNbinsX
virtual unsigned GetNbinsX() const override
Definition: TH2D_LW.cxx:347
LWHist2D::GetNbinsX
virtual unsigned GetNbinsX() const =0
LWPools::release
static void release(char *, unsigned length)
LWHist::ownsROOTHisto
bool ownsROOTHisto() const
Definition: LWHist.h:74
DEFAULT_MINIMUM
#define DEFAULT_MINIMUM
Definition: LWHist.cxx:51
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DEFAULT_MARKERSIZE
#define DEFAULT_MARKERSIZE
Definition: LWHist.cxx:48
LWHist::LWHistDecorations::m_markerStyle
short m_markerStyle
Definition: LWHist.cxx:81
TH2D_LW::m_rootHisto
TH2D * m_rootHisto
Definition: TH2D_LW.h:122
LWHist2D::GetNbinsY
virtual unsigned GetNbinsY() const =0
trigbs_dumpHLTContentInBS.stats
stats
Definition: trigbs_dumpHLTContentInBS.py:91
LWHist::LWHistDecorations::m_xAxis
LWHist::LWHistAxis * m_xAxis
Definition: LWHist.cxx:74
x
#define x
LWHist::LWHistDecorations::m_yAxis
LWHist::LWHistAxis * m_yAxis
Definition: LWHist.cxx:75
TH2D_LW::SetBinContent
virtual void SetBinContent(unsigned binx, unsigned biny, const double &) override
Definition: TH2D_LW.cxx:379
CALL
#define CALL(x, y)
Definition: TH2D_LW.cxx:23
LWHist::GetXaxis
LWHistAxis * GetXaxis()
Definition: LWHist.cxx:309
grepfile.content
string content
Definition: grepfile.py:56
LWHist::usingROOTBackend
bool usingROOTBackend() const
Definition: LWHist.h:73
TH2D_LW::SetEntries
virtual void SetEntries(unsigned) override
Definition: TH2D_LW.cxx:397
LWHist::LWHistDecorations::m_markerColor
short m_markerColor
Definition: LWHist.cxx:80
LWHist::m_customData
void * m_customData
Definition: LWHist.h:103
MP_NEW
#define MP_NEW(Class)
Definition: LWPools.h:26
Flex2DHisto::create
static Flex2DHisto * create(unsigned nbinsx, const double &xmin, const double &xmax, unsigned nbinsy, const double &ymin, const double &ymax)
LWHist::LWHistAxis::SetTitle
void SetTitle(const char *)
Definition: LWHist.cxx:359
xmin
double xmin
Definition: listroot.cxx:60
TH2D_LW::setSums
virtual void setSums(const double &sumW, const double &sumW2, const double &sumWX, const double &sumWX2, const double &sumWY, const double &sumWY2, const double &sumWXY) override
Definition: TH2D_LW.cxx:419
beamspotman.n
n
Definition: beamspotman.py:731
TH2D_LW::getSums
virtual void getSums(double &sumW, double &sumW2, double &sumWX, double &sumWX2, double &sumWY, double &sumWY2, double &sumWXY) const override
Definition: TH2D_LW.cxx:399
extractSporadic.h
list h
Definition: extractSporadic.py:97
TH2D_LW::GetBinError
virtual double GetBinError(unsigned binx, unsigned biny) const override
Definition: TH2D_LW.cxx:374
covarianceTool.title
title
Definition: covarianceTool.py:542
Flex2DHisto::destroy
static void destroy(Flex2DHisto *)
TH2D_LW::GetBinContent
virtual double GetBinContent(unsigned binx, unsigned biny) const override
Definition: TH2D_LW.cxx:369
LWHist::GetName
const char * GetName() const
Definition: LWHist.cxx:366
LWHistControls::hasROOTBackend
static bool hasROOTBackend()
Definition: LWHistControls.cxx:47
LWHist::m_name
char * m_name
Definition: LWHist.h:99
TH2D
Definition: rootspy.cxx:430
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
LWHist::LWHistDecorations::m_minimum
float m_minimum
Definition: LWHist.cxx:77
TH2
Definition: rootspy.cxx:373
DEFAULT_MARKERSTYLE
#define DEFAULT_MARKERSTYLE
Definition: LWHist.cxx:50
LWHist2D::LWHist2D
LWHist2D(const char *n, const char *t, bool rb)
Definition: LWHist2D.h:69
LWStrUtils::setStringFromInput
static void setStringFromInput(const char *input, char *&target)
Definition: LWStrUtils.h:58
LWHist::m_usingROOTBackend
const bool m_usingROOTBackend
Definition: LWHist.h:94
LWHistControls::cleanupOnGetROOT
static bool cleanupOnGetROOT()
Definition: LWHistControls.cxx:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LWHistControls::releaseAllHeldMemory
static void releaseAllHeldMemory()
Definition: LWHistControls.cxx:41
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
LWHist::clear
virtual void clear()
Definition: LWHist.cxx:474
TH2D_LW
Definition: TH2D_LW.h:23
TH2D_LW::GetNbinsY
virtual unsigned GetNbinsY() const override
Definition: TH2D_LW.cxx:352
LWHistRootUtils::deleteRootHisto
void deleteRootHisto(THX *rootHist, bool &sumW2IsFromPools)
LWHist::m_title
char * m_title
Definition: LWHist.h:100
LArCellBinning.xbins
int xbins
Definition: LArCellBinning.py:163
LWCOUNTCALL
#define LWCOUNTCALL
Definition: TH2D_LW.cxx:28
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
y
#define y
h
DEFAULT_MARKERCOLOR
#define DEFAULT_MARKERCOLOR
Definition: LWHist.cxx:49
TH2D_LW::TH2D_LW
TH2D_LW(const char *name, const char *title, unsigned nbinsx, const double &xmin, const double &xmax, unsigned nbinsy, const double &ymin, const double &ymax, bool rootbackend)
Definition: TH2D_LW.cxx:113
LWHist::LWHistDecorations::m_markerSize
float m_markerSize
Definition: LWHist.cxx:79
LWHist::apply
virtual bool apply(TH1 *) const
Definition: LWHist.cxx:256
TH1
Definition: rootspy.cxx:268
LWHist::getROOTHistBaseNoAlloc
virtual const TH1 * getROOTHistBaseNoAlloc() const =0
LWHist::LWHistDecorations::m_zAxis
LWHist::LWHistAxis * m_zAxis
Definition: LWHist.cxx:76
LWHist::LWHistDecorations::m_maximum
float m_maximum
Definition: LWHist.cxx:78
TH2D_LW::getXMin
virtual double getXMin() const override
Definition: TH2D_LW.cxx:300
LWHist2D::getSums
virtual void getSums(double &sumW, double &sumW2, double &sumWX, double &sumWX2, double &sumWY, double &sumWY2, double &sumWXY) const =0
LWHist::m_decorations
LWHistDecorations * m_decorations
Definition: LWHist.h:101
xmax
double xmax
Definition: listroot.cxx:61
TH2D_LW::Integral
virtual double Integral() const override
Definition: TH2D_LW.cxx:453
TH2D_LW::m_flexHisto
void * m_flexHisto
Definition: TH2D_LW.h:121
TH2D_LW::getYMax
virtual double getYMax() const override
Definition: TH2D_LW.cxx:321
LWHist::GetMarkerStyle
short GetMarkerStyle() const
Definition: LWHist.cxx:105
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
TH2D_LW::m_ownsRootSumw2
bool m_ownsRootSumw2
Definition: TH2D_LW.h:124
error
Definition: IImpactPoint3dEstimator.h:70
TH2D_LW::create
static TH2D_LW * create(const char *name, const char *title, unsigned nbinsx, const double &xmin, const double &xmax, unsigned nbinsy, const double &ymin, const double &ymax)
Definition: TH2D_LW.cxx:33
python.compressB64.c
def c
Definition: compressB64.py:93
LWHist::GetYaxis
LWHistAxis * GetYaxis()
Definition: LWHist.cxx:319
LWHist2D::apply
virtual bool apply(TH1 *) const
Definition: LWHist2D.cxx:20
ymax
double ymax
Definition: listroot.cxx:64
LWHistStats::s_nActiveHists
static std::atomic< long > s_nActiveHists
Definition: LWHistStats.h:36
LWHist::LWHistDecorations::m_option
char * m_option
Definition: LWHist.cxx:73