ATLAS Offline Software
Loading...
Searching...
No Matches
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
23class 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
56CLASS_DEF( TrigHisto1D , 11655925 , 1 )
57
58#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints ...
Definition TrigHisto1D.h:23
void fill(float value_x, float weight)
Fill a 1D histogram.
TrigHisto1D & operator=(const TrigHisto1D &trigHisto)
Assignment operator.
virtual ~TrigHisto1D(void)
Destructor.
double sumEntries(float value_x, int cutType) const
Sum the number of entries within the cut range.
TrigHisto1D(void)
Default constructor used by T/P converters.
TrigHisto(void)
Definition TrigHisto.cxx:9
float max_x(void) const
Return the maximum along the x-axis.
Definition TrigHisto.h:52
float min_x(void) const
Return the minimum along the x-axis.
Definition TrigHisto.h:47
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
const std::vector< float > & contents(void) const
Return the bin contents of the histogram, including the under and overflow bins.
Definition TrigHisto.h:58