ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigInDetEvent
TrigInDetEvent
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
8
#include "
AthenaKernel/CLASS_DEF.h
"
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
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
TrigHisto.h
TrigHisto1D
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints ...
Definition
TrigHisto1D.h:23
TrigHisto1D::fill
void fill(float value_x, float weight)
Fill a 1D histogram.
Definition
TrigHisto1D.cxx:118
TrigHisto1D::operator=
TrigHisto1D & operator=(const TrigHisto1D &trigHisto)
Assignment operator.
Definition
TrigHisto1D.cxx:88
TrigHisto1D::~TrigHisto1D
virtual ~TrigHisto1D(void)
Destructor.
Definition
TrigHisto1D.cxx:59
TrigHisto1D::sumEntries
double sumEntries(float value_x, int cutType) const
Sum the number of entries within the cut range.
Definition
TrigHisto1D.cxx:126
TrigHisto1D::TrigHisto1D
TrigHisto1D(void)
Default constructor used by T/P converters.
Definition
TrigHisto1D.cxx:11
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