ATLAS Offline Software
LWHist1D.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 LWHist1D //
9 // //
10 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
11 // Initial version: March 2009 //
12 // //
14 
15 #include "LWHists/LWHist1D.h"
16 #include "LWHistRootUtils.h"
17 #include "TH1.h"
18 
19 //____________________________________________________________________
20 bool LWHist1D::apply(TH1*h) const
21 {
22  if (!LWHist::apply(h))
23  return false;
24  double stats[4];
25  getSums(stats[0],stats[1],stats[2],stats[3]);
26  h->PutStats(stats);
27  return true;
28 }
LWHist1D.h
trigbs_dumpHLTContentInBS.stats
stats
Definition: trigbs_dumpHLTContentInBS.py:91
h
LWHist::apply
virtual bool apply(TH1 *) const
Definition: LWHist.cxx:256
TH1
Definition: rootspy.cxx:268
LWHist1D::getSums
virtual void getSums(double &sumW, double &sumW2, double &sumWX, double &sumWX2) const =0
LWHistRootUtils.h
LWHist1D::apply
virtual bool apply(TH1 *) const
Definition: LWHist1D.cxx:20