ATLAS Offline Software
TrigHisto1D.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGINDETEVENT_TRIGHISTO1D_H
6 #define TRIGINDETEVENT_TRIGHISTO1D_H
7 
9 
10 #include "TrigHisto.h"
11 
23 class TrigHisto1D: public TrigHisto {
24  public:
25 
27  TrigHisto1D(void);
28 
30  TrigHisto1D(unsigned int nbins_x, float min_x, float max_x);
31 
33  TrigHisto1D(unsigned int nbins_x, float min_x, float max_x,
34  const std::vector<float>& contents);
35 
37  virtual ~TrigHisto1D(void);
38 
40  TrigHisto1D(const TrigHisto1D& trigHisto);
41  TrigHisto1D(TrigHisto1D&& trigHisto);
42 
44  TrigHisto1D& operator=(const TrigHisto1D& trigHisto);
45  TrigHisto1D& operator=(TrigHisto1D&& trigHisto);
46 
48  void fill(float value_x, float weight);
49 
51  double sumEntries(float value_x, int cutType) const;
52 
53 };
54 
55 // obtained using clid -m "TrigHisto1D" etc
56 CLASS_DEF( TrigHisto1D , 11655925 , 1 )
57 
58 #endif
TrigHisto::min_x
float min_x(void) const
Return the minimum along the x-axis.
Definition: TrigHisto.h:47
TrigHisto
The base class for TrigHisto1D and TrigHisto2D. This class should never be stored or used directly.
Definition: TrigHisto.h:32
TrigHisto1D
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints ...
Definition: TrigHisto1D.h:23
TrigHisto::max_x
float max_x(void) const
Return the maximum along the x-axis.
Definition: TrigHisto.h:52
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
TrigHisto1D::operator=
TrigHisto1D & operator=(const TrigHisto1D &trigHisto)
Assignment operator.
Definition: TrigHisto1D.cxx:88
TrigHisto.h
TrigHisto::contents
const std::vector< float > & contents(void) const
Return the bin contents of the histogram, including the under and overflow bins.
Definition: TrigHisto.h:58
TrigHisto1D::fill
void fill(float value_x, float weight)
Fill a 1D histogram.
Definition: TrigHisto1D.cxx:118
TrigHisto1D::sumEntries
double sumEntries(float value_x, int cutType) const
Sum the number of entries within the cut range.
Definition: TrigHisto1D.cxx:126
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TrigHisto1D::~TrigHisto1D
virtual ~TrigHisto1D(void)
Destructor.
Definition: TrigHisto1D.cxx:59
CLASS_DEF.h
macros to associate a CLID to a type
TrigHisto1D::TrigHisto1D
TrigHisto1D(void)
Default constructor used by T/P converters.
Definition: TrigHisto1D.cxx:11
TrigHisto::nbins_x
unsigned int nbins_x(void) const
Return the number of bins along the y-axis, not including the under and overflow.
Definition: TrigHisto.h:42