ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigInDetEvent
TrigInDetEvent
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.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_TRIGHISTO2D_H
6
#define TRIGINDETEVENT_TRIGHISTO2D_H
7
8
#include "
AthenaKernel/CLASS_DEF.h
"
9
10
#include "
TrigHisto.h
"
11
#include "
TrigHisto1D.h
"
12
24
class
TrigHisto2D
:
public
TrigHisto
{
25
public
:
26
28
TrigHisto2D
(
void
);
29
31
TrigHisto2D
(
unsigned
int
nbins_x
,
float
min_x
,
float
max_x
,
32
unsigned
int
nbins_y
,
float
min_y
,
float
max_y
);
33
34
TrigHisto2D
(
unsigned
int
nbins_x
,
float
min_x
,
float
max_x
,
35
unsigned
int
nbins_y
,
float
min_y
,
float
max_y
,
36
const
std::vector<float>&
contents
);
37
39
virtual
~TrigHisto2D
(
void
);
40
42
TrigHisto2D
(
const
TrigHisto2D
& trigHisto);
43
TrigHisto2D
(
TrigHisto2D
&& trigHisto);
44
46
TrigHisto2D
&
operator=
(
const
TrigHisto2D
& trigHisto);
47
TrigHisto2D
&
operator=
(
TrigHisto2D
&& trigHisto);
48
50
void
fill
(
float
value_x,
float
value_y,
float
weight);
51
53
double
sumEntries
(
float
value_x,
float
value_y,
int
cutType)
const
;
54
56
TrigHisto1D
profileX
(
void
)
const
;
57
59
TrigHisto1D
profileY
(
void
)
const
;
60
63
unsigned
int
nbins_y
(
void
)
const
{
64
return
m_nbins_y
;
65
}
66
68
float
min_y
(
void
)
const
{
69
return
m_min_y
;
70
}
71
73
float
max_y
(
void
)
const
{
74
return
m_max_y
;
75
}
76
77
78
protected
:
79
// The other dimension of histogram limits
80
unsigned
int
m_nbins_y
;
81
unsigned
int
m_underflowBin_y
;
82
unsigned
int
m_overflowBin_y
;
83
float
m_min_y
;
84
float
m_max_y
;
85
float
m_binSize_y
;
86
};
87
88
89
// obtained using clid -m "TrigHisto2D"
90
CLASS_DEF
(
TrigHisto2D
, 10655800 , 1 )
91
92
93
#endif
CLASS_DEF.h
macros to associate a CLID to a type
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:67
TrigHisto1D.h
TrigHisto.h
TrigHisto1D
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints ...
Definition
TrigHisto1D.h:23
TrigHisto2D
A very basic two dimensional histogram to provide storage of HLT distributions, allowing constraints ...
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:24
TrigHisto2D::m_min_y
float m_min_y
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:83
TrigHisto2D::m_underflowBin_y
unsigned int m_underflowBin_y
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:81
TrigHisto2D::TrigHisto2D
TrigHisto2D(void)
Default constructor used by T/P converters.
Definition
TrigHisto2D.cxx:11
TrigHisto2D::min_y
float min_y(void) const
Return the minimum along the y-axis.
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:68
TrigHisto2D::nbins_y
unsigned int nbins_y(void) const
Return the number of bins along the y-axis, not including the under and overflow.
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:63
TrigHisto2D::profileY
TrigHisto1D profileY(void) const
Collapse the x-axis and return a profile from the y-axis.
Definition
TrigHisto2D.cxx:258
TrigHisto2D::sumEntries
double sumEntries(float value_x, float value_y, int cutType) const
Sum the number of entries within the cut range.
Definition
TrigHisto2D.cxx:181
TrigHisto2D::m_overflowBin_y
unsigned int m_overflowBin_y
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:82
TrigHisto2D::profileX
TrigHisto1D profileX(void) const
Collapse the y-axis and return a profile from the x-axis.
Definition
TrigHisto2D.cxx:238
TrigHisto2D::m_binSize_y
float m_binSize_y
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:85
TrigHisto2D::fill
void fill(float value_x, float value_y, float weight)
Fill a 2D histogram.
Definition
TrigHisto2D.cxx:170
TrigHisto2D::operator=
TrigHisto2D & operator=(const TrigHisto2D &trigHisto)
Assignment operator.
Definition
TrigHisto2D.cxx:120
TrigHisto2D::max_y
float max_y(void) const
Return the maximum along the y-axis.
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:73
TrigHisto2D::m_nbins_y
unsigned int m_nbins_y
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:80
TrigHisto2D::~TrigHisto2D
virtual ~TrigHisto2D(void)
Destructor.
Definition
TrigHisto2D.cxx:71
TrigHisto2D::m_max_y
float m_max_y
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:84
TrigHisto::max_x
float max_x() const
Return the maximum along the x-axis.
Definition
TrigHisto.h:55
TrigHisto::min_x
float min_x() const
Return the minimum along the x-axis.
Definition
TrigHisto.h:50
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:45
TrigHisto::contents
const std::vector< float > & contents() const
Return the bin contents of the histogram, including the under and overflow bins.
Definition
TrigHisto.h:61
TrigHisto::TrigHisto
TrigHisto()=default
Generated on
for ATLAS Offline Software by
1.17.0