#include <EdbCell1.h>
◆ EdbH1() [1/3]
[eNcell] number of objects/cell
void Set0()
Definition: EdbCell1.cpp:27
◆ EdbH1() [2/3]
| EdbH1::EdbH1 |
( |
int |
n, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
|
inline |
float min(TClonesArray *t)
Definition: bitview.cxx:275
int max
Definition: check_shower.C:41
int InitH1(const EdbH1 &h)
Definition: EdbCell1.h:38
◆ EdbH1() [3/3]
| EdbH1::EdbH1 |
( |
const EdbH1 & |
h | ) |
|
Int_t * eNC
Definition: EdbCell1.h:27
void Copy(const EdbH1 &h)
Definition: EdbCell1.cpp:42
◆ ~EdbH1()
void Delete()
Definition: EdbCell1.cpp:63
◆ AddBin()
| void EdbH1::AddBin |
( |
int |
jcell, |
|
|
int |
n |
|
) |
| |
|
inline |
62 {
if(jcell>=0&&jcell<
eNcell)
eNC[jcell]+=n; }
Int_t eNcell
Definition: EdbCell1.h:26
◆ Bin()
| int EdbH1::Bin |
( |
int |
ix | ) |
const |
|
inline |
int Jcell(int ix) const
Definition: EdbCell1.h:51
◆ CleanCells()
| void EdbH1::CleanCells |
( |
| ) |
|
◆ Copy()
Float_t eBin
Definition: EdbCell1.h:24
Float_t eMax
Definition: EdbCell1.h:23
Float_t eMin
Definition: EdbCell1.h:22
Int_t eN
Definition: EdbCell1.h:21
◆ Delete()
◆ DiscardHighCells()
| int EdbH1::DiscardHighCells |
( |
int |
nmax | ) |
|
102 for(
int i=0; i<
eNcell; i++)
103 if(
eNC[i]>nmax) {
eNC[i]=0; ic++; }
◆ DrawH1()
| TH1F * EdbH1::DrawH1 |
( |
const char * |
name = "EdbH1plot", |
|
|
const char * |
title = "EdbH1plot1D" |
|
) |
| |
138 if((obj=gDirectory->FindObject(
name)))
delete obj;
140 for(
int i=0; i<
eN; i++) h->Fill(
X(i),
eNC[
Jcell(i)] );
float X(int i) const
Definition: EdbCell1.h:53
const char * name
Definition: merge_Energy_SytematicSources_Electron.C:24
◆ DrawSpectrum()
| TH1I * EdbH1::DrawSpectrum |
( |
const char * |
name = "EdbH1spectrun" | ) |
|
129 TH1I *h =
new TH1I(
name,
"EdbH1 spectrum plot", imax,0,imax);
130 for(
int i=0; i<
eNcell; i++) h->Fill(
eNC[i] );
int MaxBin()
Definition: EdbCell1.cpp:186
◆ Fill() [1/2]
| int EdbH1::Fill |
( |
float |
x | ) |
|
|
inline |
int Fill(float x)
Definition: EdbCell1.h:63
◆ Fill() [2/2]
| int EdbH1::Fill |
( |
float |
x, |
|
|
int |
n |
|
) |
| |
◆ InitH1() [1/2]
| int EdbH1::InitH1 |
( |
const EdbH1 & |
h | ) |
|
|
inline |
int N() const
Definition: EdbCell1.h:48
float Xmax() const
Definition: EdbCell1.h:55
float Xmin() const
Definition: EdbCell1.h:54
◆ InitH1() [2/2]
| int EdbH1::InitH1 |
( |
int |
n, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
void CleanCells()
Definition: EdbCell1.cpp:84
◆ Integral() [1/2]
| Long_t EdbH1::Integral |
( |
| ) |
|
172 for(
int i=0; i<
eNcell; i++) ntot+=
eNC[i];
◆ Integral() [2/2]
| Long_t EdbH1::Integral |
( |
int |
iv, |
|
|
int |
ir |
|
) |
| |
179 Long_t ntot=0, nbin=0;
180 for(
int ix=iv-ir; ix<=iv+ir; ix++)
181 {ntot+=
Bin(ix); nbin++;}
int Bin(int ix) const
Definition: EdbCell1.h:57
◆ IX()
| int EdbH1::IX |
( |
float |
x | ) |
const |
|
inline |
◆ Jcell() [1/2]
| int EdbH1::Jcell |
( |
float |
x | ) |
const |
|
inline |
int IX(float x) const
Definition: EdbCell1.h:50
◆ Jcell() [2/2]
| int EdbH1::Jcell |
( |
int |
ix | ) |
const |
|
inline |
51 {
if(ix>=0&&ix<
eN)
return ix;
else return -1;}
◆ MaxBin()
189 for(
int i=0; i<
eNcell; i++)
if(
eNC[i]>peak) peak =
eNC[i];
◆ Mean()
Long_t Integral()
Definition: EdbCell1.cpp:169
◆ N()
◆ Ncell()
| int EdbH1::Ncell |
( |
| ) |
const |
|
inline |
◆ Print()
163 for(
int i=0; i<
N(); i++)
164 printf(
"%d (%f) = %d\n", i,
X(i),
Bin(i) );
void PrintStat()
Definition: EdbCell1.cpp:145
◆ PrintStat()
| void EdbH1::PrintStat |
( |
| ) |
|
147 printf(
"X:%5d cells in range (%10.2f %10.2f) with bin %10.2f \n",
eN,
eMin,
eMax,
eBin);
151 for(
int i=0; i<
eNcell; i++) {
152 if(
eNC[i]>nmax ) nmax=
eNC[i];
153 if(
eNC[i]<nmin ) nmin=
eNC[i];
156 printf(
"%d entries in %d bins in the range: (%d:%d) with mean occupancy= %f\n",
◆ Set0()
◆ SetBin()
| void EdbH1::SetBin |
( |
int |
ix, |
|
|
int |
n |
|
) |
| |
|
inline |
◆ X()
| float EdbH1::X |
( |
int |
i | ) |
const |
|
inline |
◆ Xbin()
| float EdbH1::Xbin |
( |
| ) |
const |
|
inline |
◆ Xmax()
| float EdbH1::Xmax |
( |
| ) |
const |
|
inline |
◆ XmaxA()
| float EdbH1::XmaxA |
( |
float |
level = 0 | ) |
|
120 float thres =
MaxBin()*level;
121 for(
int i=
eNcell-1; i>=0; i--)
if(
eNC[i] >= thres )
return X(i);
◆ Xmin()
| float EdbH1::Xmin |
( |
| ) |
const |
|
inline |
◆ XminA()
| float EdbH1::XminA |
( |
float |
level = 0 | ) |
|
111 float thres =
MaxBin()*level;
112 for(
int i=0; i<
eNcell; i++)
if(
eNC[i] >= thres )
return X(i);
◆ eBin
◆ eMax
◆ eMin
◆ eN
◆ eNC
◆ eNcell
The documentation for this class was generated from the following files: