Main Page
Namespaces
Classes
Package Documentation
Utilities
BinningTools
interface
ClusterizingHistogram.h
Go to the documentation of this file.
1
#ifndef _CLUSTERIZINGHISTOGRAM_TT_H_
2
#define _CLUSTERIZINGHISTOGRAM_TT_H_
3
4
#include <vector>
5
#include <cmath>
6
13
class
ClusterizingHistogram
{
14
public
:
15
ClusterizingHistogram
(
int
nb,
float
xmi,
float
xma);
16
~ClusterizingHistogram
();
17
18
void
fill
(
float
x
);
19
int
nbins
()
const
{
return
my_nbins
;}
20
float
min_x
()
const
{
return
xmin
;}
21
float
max_x
()
const
{
return
xmax
;}
22
int
entries
()
const
{
return
my_entries
;}
23
int
underflows
()
const
{
return
my_underflows
;}
24
int
overflows
()
const
{
return
my_overflows
;}
25
float
bin_pos
(
int
i
)
const
{
26
return
(
bin_entries
[i]!=0) ?
bin_means
[
i
]/
bin_entries
[
i
] : 0;}
27
void
dump
()
const
;
28
void
dump
(
int
i1,
int
i2)
const
;
29
void
dump
(
float
x1
,
float
x2
)
const
;
30
void
dump
(
double
x1,
double
x2)
const
;
31
void
dump
(
float
x1,
double
x2)
const
;
32
void
dump
(
double
x1,
float
x2)
const
;
33
void
reset
();
34
int
bin
(
float
x)
const
;
35
int
bin
(
double
x)
const
;
36
37
std::vector<float>
clusterize
(
float
resolution
);
38
39
private
:
40
ClusterizingHistogram
(){}
// Prohibit
41
int
my_nbins
;
42
float
xmin
;
43
float
xmax
;
44
int
my_entries
;
45
int
my_underflows
;
46
int
my_overflows
;
47
int
*
bin_entries
;
48
float
*
bin_means
;
49
float
binsiz
;
50
};
51
52
#endif
ClusterizingHistogram::my_nbins
int my_nbins
Definition:
ClusterizingHistogram.h:41
mps_fire.i
i
Definition:
mps_fire.py:269
ClusterizingHistogram::dump
void dump() const
Definition:
ClusterizingHistogram.cc:71
ClusterizingHistogram::~ClusterizingHistogram
~ClusterizingHistogram()
Definition:
ClusterizingHistogram.cc:16
ClusterizingHistogram
Definition:
ClusterizingHistogram.h:13
ClusterizingHistogram::overflows
int overflows() const
Definition:
ClusterizingHistogram.h:24
ClusterizingHistogram::bin_entries
int * bin_entries
Definition:
ClusterizingHistogram.h:47
ClusterizingHistogram::underflows
int underflows() const
Definition:
ClusterizingHistogram.h:23
ClusterizingHistogram::my_overflows
int my_overflows
Definition:
ClusterizingHistogram.h:46
ClusterizingHistogram::clusterize
std::vector< float > clusterize(float resolution)
Definition:
ClusterizingHistogram.cc:42
ClusterizingHistogram::bin
int bin(float x) const
Definition:
ClusterizingHistogram.cc:18
globals_cff.x1
x1
Definition:
globals_cff.py:28
ClusterizingHistogram::fill
void fill(float x)
Definition:
ClusterizingHistogram.cc:29
ClusterizingHistogram::nbins
int nbins() const
Definition:
ClusterizingHistogram.h:19
globals_cff.x2
x2
Definition:
globals_cff.py:29
ClusterizingHistogram::bin_pos
float bin_pos(int i) const
Definition:
ClusterizingHistogram.h:25
ClusterizingHistogram::my_entries
int my_entries
Definition:
ClusterizingHistogram.h:44
ClusterizingHistogram::xmax
float xmax
Definition:
ClusterizingHistogram.h:43
fftjetproducer_cfi.resolution
resolution
Definition:
fftjetproducer_cfi.py:145
ClusterizingHistogram::max_x
float max_x() const
Definition:
ClusterizingHistogram.h:21
ClusterizingHistogram::my_underflows
int my_underflows
Definition:
ClusterizingHistogram.h:45
ClusterizingHistogram::ClusterizingHistogram
ClusterizingHistogram()
Definition:
ClusterizingHistogram.h:40
ClusterizingHistogram::xmin
float xmin
Definition:
ClusterizingHistogram.h:42
ClusterizingHistogram::binsiz
float binsiz
Definition:
ClusterizingHistogram.h:49
ClusterizingHistogram::min_x
float min_x() const
Definition:
ClusterizingHistogram.h:20
DDAxes::x
ClusterizingHistogram::bin_means
float * bin_means
Definition:
ClusterizingHistogram.h:48
ClusterizingHistogram::entries
int entries() const
Definition:
ClusterizingHistogram.h:22
ClusterizingHistogram::reset
void reset()
Definition:
ClusterizingHistogram.cc:88
Generated for CMSSW Reference Manual by
1.8.11