ATLAS Offline Software
Tools
LWHists
src
LWHist2D.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
7
// //
8
// Implementation of class LWHist2D //
9
// //
10
// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
11
// Initial version: March 2009 //
12
// //
14
15
#include "
LWHists/LWHist2D.h
"
16
#include "TH1.h"
17
#include "
LWHistRootUtils.h
"
18
19
//____________________________________________________________________
20
bool
LWHist2D::apply
(
TH1
*
h
)
const
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
}
trigbs_dumpHLTContentInBS.stats
stats
Definition:
trigbs_dumpHLTContentInBS.py:91
extractSporadic.h
list h
Definition:
extractSporadic.py:97
TH2
Definition:
rootspy.cxx:373
h
LWHist::apply
virtual bool apply(TH1 *) const
Definition:
LWHist.cxx:256
TH1
Definition:
rootspy.cxx:268
LWHist2D::getSums
virtual void getSums(double &sumW, double &sumW2, double &sumWX, double &sumWX2, double &sumWY, double &sumWY2, double &sumWXY) const =0
LWHistRootUtils.h
LWHist2D::apply
virtual bool apply(TH1 *) const
Definition:
LWHist2D.cxx:20
LWHist2D.h
Generated on Tue Jul 2 2024 21:20:58 for ATLAS Offline Software by
1.8.18