ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigInDetEvent
TrigInDetEvent
TrigHisto.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGINDETEVENT_TRIGHISTO_H
6
#define TRIGINDETEVENT_TRIGHISTO_H
7
8
#include <vector>
9
10
//---------------------------------------------------------------
11
12
namespace
TrigHistoCutType
{
13
enum
CutTypeEnum
{
14
BELOW_X
,
15
ABOVE_X
,
16
BELOW_X_BELOW_Y
,
17
ABOVE_X_BELOW_Y
,
18
BELOW_X_ABOVE_Y
,
19
ABOVE_X_ABOVE_Y
};
20
}
21
22
//---------------------------------------------------------------
23
32
class
TrigHisto
{
33
public
:
34
TrigHisto
() =
default
;
36
TrigHisto
(
TrigHisto
&&) =
default
;
37
TrigHisto
&
operator=
(
TrigHisto
&&) =
default
;
38
39
virtual
~TrigHisto
() =
default
;
41
void
clear
(
void
);
42
45
unsigned
int
nbins_x
(
void
)
const
{
46
return
m_nbins_x
;
47
}
48
50
float
min_x
()
const
{
51
return
m_min_x
;
52
}
53
55
float
max_x
()
const
{
56
return
m_max_x
;
57
}
58
61
const
std::vector<float>&
contents
()
const
{
62
return
m_contents
;
63
}
64
65
protected
:
70
unsigned
int
findBin
(
unsigned
int
nbins,
71
float
h_min,
float
h_max,
float
binSize,
72
float
value)
const
;
73
74
std::vector<float>
m_contents
;
//<! A vector to contain the contents of the histogram.
75
76
// Histogram limits
77
unsigned
int
m_nbins_x
{};
78
unsigned
int
m_underflowBin_x
{};
79
unsigned
int
m_overflowBin_x
{};
80
float
m_min_x
{};
81
float
m_max_x
{};
82
float
m_binSize_x
{};
83
};
84
85
#endif
TrigHisto::max_x
float max_x() const
Return the maximum along the x-axis.
Definition
TrigHisto.h:55
TrigHisto::m_nbins_x
unsigned int m_nbins_x
Definition
TrigHisto.h:77
TrigHisto::m_underflowBin_x
unsigned int m_underflowBin_x
Definition
TrigHisto.h:78
TrigHisto::m_overflowBin_x
unsigned int m_overflowBin_x
Definition
TrigHisto.h:79
TrigHisto::m_binSize_x
float m_binSize_x
Definition
TrigHisto.h:82
TrigHisto::findBin
unsigned int findBin(unsigned int nbins, float h_min, float h_max, float binSize, float value) const
Definition
TrigHisto.cxx:21
TrigHisto::min_x
float min_x() const
Return the minimum along the x-axis.
Definition
TrigHisto.h:50
TrigHisto::m_min_x
float m_min_x
Definition
TrigHisto.h:80
TrigHisto::operator=
TrigHisto & operator=(TrigHisto &&)=default
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::TrigHisto
TrigHisto(TrigHisto &&)=default
User declared d'tor means we have to explicitly enable move operations.
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::clear
void clear(void)
Zero all histogram bins.
Definition
TrigHisto.cxx:12
TrigHisto::TrigHisto
TrigHisto()=default
TrigHisto::~TrigHisto
virtual ~TrigHisto()=default
TrigHisto::m_max_x
float m_max_x
Definition
TrigHisto.h:81
TrigHisto::m_contents
std::vector< float > m_contents
Definition
TrigHisto.h:74
TrigHistoCutType
Definition
TrigHisto.h:12
TrigHistoCutType::CutTypeEnum
CutTypeEnum
Definition
TrigHisto.h:13
TrigHistoCutType::ABOVE_X_BELOW_Y
@ ABOVE_X_BELOW_Y
Definition
TrigHisto.h:17
TrigHistoCutType::BELOW_X_BELOW_Y
@ BELOW_X_BELOW_Y
Definition
TrigHisto.h:16
TrigHistoCutType::BELOW_X
@ BELOW_X
Definition
TrigHisto.h:14
TrigHistoCutType::BELOW_X_ABOVE_Y
@ BELOW_X_ABOVE_Y
Definition
TrigHisto.h:18
TrigHistoCutType::ABOVE_X_ABOVE_Y
@ ABOVE_X_ABOVE_Y
Definition
TrigHisto.h:19
TrigHistoCutType::ABOVE_X
@ ABOVE_X
Definition
TrigHisto.h:15
Generated on
for ATLAS Offline Software by
1.17.0