#include <EdbCell2.h>
|
| void | AddBin (int jcell, int n) |
| |
| int | Bin (float x, float y) const |
| |
| int | Bin (int iv[2]) const |
| |
| int | Bin (int ix, int iy) const |
| |
| int | Bin (int j) const |
| |
| void | CleanCells () |
| |
| void | Copy (const EdbH2 &h) |
| |
| void | Delete () |
| |
| int | DiscardHighCells (int nmax) |
| |
| TH2F * | DrawH2 (const char *name="plot2d", const char *title="EdbH2plot2D") |
| |
| TH1I * | DrawSpectrum (const char *name="plot1d", const char *title="EdbH2 DrawSpectrum") |
| |
| | EdbH2 () |
| |
| | EdbH2 (const EdbH2 &h) |
| |
| | EdbH2 (int nx, float minx, float maxx, int ny, float miny, float maxy) |
| |
| int | Fill (float x, float y) |
| |
| int | Fill (float x, float y, int n) |
| |
| int | Fill (int j, int n=1) |
| |
| int | InitH2 (const EdbH2 &h) |
| |
| int | InitH2 (int n[2], float min[2], float max[2]) |
| |
| int | InitH2 (int nx, float minx, float maxx, int ny, float miny, float maxy) |
| |
| Long_t | Integral () |
| |
| Long_t | Integral (int iv[2], int ir[2]) |
| |
| int | IX (float x) const |
| |
| int | IX (int jcell) const |
| |
| int | IY (float y) const |
| |
| int | IY (int jcell) const |
| |
| int | Jcell (float v[2]) const |
| |
| int | Jcell (float x, float y) const |
| |
| int | Jcell (int ix, int iy) const |
| |
| int | MaxBin () |
| |
| Float_t | Mean () |
| |
| int | Ncell () const |
| |
| int | NX () const |
| |
| int | NY () const |
| |
| void | PrintStat () |
| |
| EdbH1 * | ProjectionX () |
| |
| EdbH1 * | ProjectionY () |
| |
| void | Set0 () |
| |
| void | SetBin (int ix, int iy, int n) |
| |
| void | SetBin (int j, int n) |
| |
| float | X (int ix) const |
| |
| float | Xbin () const |
| |
| float | Xj (int j) const |
| |
| float | Xmax () const |
| |
| float | XmaxA (float level=0) |
| |
| float | Xmin () const |
| |
| float | XminA (float level=0) |
| |
| float | Y (int iy) const |
| |
| float | Ybin () const |
| |
| float | Yj (int j) const |
| |
| float | Ymax () const |
| |
| float | YmaxA (float level=0) |
| |
| float | Ymin () const |
| |
| float | YminA (float level=0) |
| |
| | ~EdbH2 () |
| |
◆ EdbH2() [1/3]
void Set0()
Definition: EdbCell2.cpp:31
◆ EdbH2() [2/3]
| EdbH2::EdbH2 |
( |
int |
nx, |
|
|
float |
minx, |
|
|
float |
maxx, |
|
|
int |
ny, |
|
|
float |
miny, |
|
|
float |
maxy |
|
) |
| |
|
inline |
int InitH2(const EdbH2 &h)
Definition: EdbCell2.cpp:79
int nx
Definition: emthickness.cpp:60
int ny
Definition: emthickness.cpp:62
◆ EdbH2() [3/3]
| EdbH2::EdbH2 |
( |
const EdbH2 & |
h | ) |
|
void Copy(const EdbH2 &h)
Definition: EdbCell2.cpp:46
◆ ~EdbH2()
void Delete()
Definition: EdbCell2.cpp:69
◆ AddBin()
| void EdbH2::AddBin |
( |
int |
jcell, |
|
|
int |
n |
|
) |
| |
|
inline |
87 {
if(jcell>=0&&jcell<
eNcell)
eNC[jcell]+=n; }
Int_t * eNC
Definition: EdbCell2.h:29
Int_t eNcell
Definition: EdbCell2.h:28
◆ Bin() [1/4]
| int EdbH2::Bin |
( |
float |
x, |
|
|
float |
y |
|
) |
| const |
|
inline |
int Jcell(int ix, int iy) const
Definition: EdbCell2.h:57
◆ Bin() [2/4]
| int EdbH2::Bin |
( |
int |
iv[2] | ) |
const |
|
inline |
82 {
return Bin(iv[0],iv[1]);}
int Bin(float x, float y) const
Definition: EdbCell2.h:80
◆ Bin() [3/4]
| int EdbH2::Bin |
( |
int |
ix, |
|
|
int |
iy |
|
) |
| const |
|
inline |
◆ Bin() [4/4]
| int EdbH2::Bin |
( |
int |
j | ) |
const |
|
inline |
83 {
if(j>-1||j<
eNcell)
return eNC[j];
else return 0; }
◆ CleanCells()
| void EdbH2::CleanCells |
( |
| ) |
|
◆ Copy()
49 for(
int i=0; i<2; i++) {
Float_t eMin[2]
Definition: EdbCell2.h:24
Float_t eBin[2]
Definition: EdbCell2.h:26
Int_t eN[2]
Definition: EdbCell2.h:23
Float_t eMax[2]
Definition: EdbCell2.h:25
◆ Delete()
◆ DiscardHighCells()
| int EdbH2::DiscardHighCells |
( |
int |
nmax | ) |
|
145 for(
int i=0; i<
eNcell; i++)
146 if(
eNC[i]>nmax) {
eNC[i]=0; ic++; }
◆ DrawH2()
| TH2F * EdbH2::DrawH2 |
( |
const char * |
name = "plot2d", |
|
|
const char * |
title = "EdbH2plot2D" |
|
) |
| |
200 if((obj=gDirectory->FindObject(
name)))
delete obj;
202 for(
int i=0; i<
eN[0]; i++)
203 for(
int j=0; j<
eN[1]; j++)
204 h->Fill(
X(i),
Y(j),
Bin(i,j) );
float X(int ix) const
Definition: EdbCell2.h:60
float Y(int iy) const
Definition: EdbCell2.h:61
const char * name
Definition: merge_Energy_SytematicSources_Electron.C:24
◆ DrawSpectrum()
| TH1I * EdbH2::DrawSpectrum |
( |
const char * |
name = "plot1d", |
|
|
const char * |
title = "EdbH2 DrawSpectrum" |
|
) |
| |
191 TH1I *h =
new TH1I(
name, title, imax,0,imax);
192 for(
int i=0; i<
eNcell; i++) h->Fill(
eNC[i] );
int MaxBin()
Definition: EdbCell2.cpp:244
◆ Fill() [1/3]
| int EdbH2::Fill |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
88 {
return Fill(x,y,1); }
int Fill(float x, float y)
Definition: EdbCell2.h:88
◆ Fill() [2/3]
| int EdbH2::Fill |
( |
float |
x, |
|
|
float |
y, |
|
|
int |
n |
|
) |
| |
◆ Fill() [3/3]
| int EdbH2::Fill |
( |
int |
j, |
|
|
int |
n = 1 |
|
) |
| |
◆ InitH2() [1/3]
| int EdbH2::InitH2 |
( |
const EdbH2 & |
h | ) |
|
81 int n[2]={h.
NX(),h.
NY()};
float min(TClonesArray *t)
Definition: bitview.cxx:275
int max
Definition: check_shower.C:41
float Xmax() const
Definition: EdbCell2.h:65
int NX() const
Definition: EdbCell2.h:50
float Ymin() const
Definition: EdbCell2.h:66
int NY() const
Definition: EdbCell2.h:51
float Xmin() const
Definition: EdbCell2.h:64
float Ymax() const
Definition: EdbCell2.h:67
◆ InitH2() [2/3]
| int EdbH2::InitH2 |
( |
int |
n[2], |
|
|
float |
min[2], |
|
|
float |
max[2] |
|
) |
| |
100 for(
int i=0; i<2; i++) {
void CleanCells()
Definition: EdbCell2.cpp:115
◆ InitH2() [3/3]
| int EdbH2::InitH2 |
( |
int |
nx, |
|
|
float |
minx, |
|
|
float |
maxx, |
|
|
int |
ny, |
|
|
float |
miny, |
|
|
float |
maxy |
|
) |
| |
91 float min[2]={minx,miny};
92 float max[2]={maxx,maxy};
◆ Integral() [1/2]
| Long_t EdbH2::Integral |
( |
| ) |
|
229 for(
int i=0; i<
eNcell; i++) ntot+=
eNC[i];
◆ Integral() [2/2]
| Long_t EdbH2::Integral |
( |
int |
iv[2], |
|
|
int |
ir[2] |
|
) |
| |
236 Long_t ntot=0, nbin=0;
237 for(
int ix=iv[0]-ir[0]; ix<=iv[0]+ir[0]; ix++)
238 for(
int iy=iv[1]-ir[1]; iy<=iv[1]+ir[1]; iy++)
239 {ntot+=
Bin(ix,iy); nbin++;}
◆ IX() [1/2]
| int EdbH2::IX |
( |
float |
x | ) |
const |
|
inline |
52 {
return (
int)((x-
eMin[0])/
eBin[0]); }
◆ IX() [2/2]
| int EdbH2::IX |
( |
int |
jcell | ) |
const |
|
inline |
54 {
return jcell%
eN[0]; }
◆ IY() [1/2]
| int EdbH2::IY |
( |
float |
y | ) |
const |
|
inline |
53 {
return (
int)((y-
eMin[1])/
eBin[1]); }
◆ IY() [2/2]
| int EdbH2::IY |
( |
int |
jcell | ) |
const |
|
inline |
55 {
return jcell/
eN[0]; }
◆ Jcell() [1/3]
| int EdbH2::Jcell |
( |
float |
v[2] | ) |
const |
|
inline |
int IX(float x) const
Definition: EdbCell2.h:52
int IY(float y) const
Definition: EdbCell2.h:53
◆ Jcell() [2/3]
| int EdbH2::Jcell |
( |
float |
x, |
|
|
float |
y |
|
) |
| const |
|
inline |
◆ Jcell() [3/3]
| int EdbH2::Jcell |
( |
int |
ix, |
|
|
int |
iy |
|
) |
| const |
|
inline |
57 {
if(ix>=0&&ix<
eN[0]&&iy>=0&&iy<
eN[1])
return iy*
eN[0]+ix;
else return -1;}
◆ MaxBin()
247 for(
int i=0; i<
eNcell; i++)
if(
eNC[i]>peak) peak =
eNC[i];
◆ Mean()
Long_t Integral()
Definition: EdbCell2.cpp:226
◆ Ncell()
| int EdbH2::Ncell |
( |
| ) |
const |
|
inline |
◆ NX()
◆ NY()
◆ PrintStat()
| void EdbH2::PrintStat |
( |
| ) |
|
211 printf(
"X:%5d cells in range (%10.2f %10.2f) with bin %10.2f \n",
eN[0],
eMin[0],
eMax[0],
eBin[0]);
212 printf(
"Y:%5d cells in range (%10.2f %10.2f) with bin %10.2f \n",
eN[1],
eMin[1],
eMax[1],
eBin[1]);
216 for(
int i=0; i<
eNcell; i++) {
217 if(
eNC[i]>nmax ) nmax=
eNC[i];
218 if(
eNC[i]<nmin ) nmin=
eNC[i];
221 printf(
"%d objects in %d cells filled as: (%d:%d) with mean= %f\n",
◆ ProjectionX()
| EdbH1 * EdbH2::ProjectionX |
( |
| ) |
|
Definition: EdbCell1.h:17
int Fill(float x)
Definition: EdbCell1.h:63
◆ ProjectionY()
| EdbH1 * EdbH2::ProjectionY |
( |
| ) |
|
◆ Set0()
33 for(
int i=0; i<2; i++) {
eN[i]=0;
eMin[i]=0;
eMax[i]=0;
eBin[i]=0; }
◆ SetBin() [1/2]
| void EdbH2::SetBin |
( |
int |
ix, |
|
|
int |
iy, |
|
|
int |
n |
|
) |
| |
|
inline |
◆ SetBin() [2/2]
| void EdbH2::SetBin |
( |
int |
j, |
|
|
int |
n |
|
) |
| |
|
inline |
◆ X()
| float EdbH2::X |
( |
int |
ix | ) |
const |
|
inline |
◆ Xbin()
| float EdbH2::Xbin |
( |
| ) |
const |
|
inline |
◆ Xj()
| float EdbH2::Xj |
( |
int |
j | ) |
const |
|
inline |
◆ Xmax()
| float EdbH2::Xmax |
( |
| ) |
const |
|
inline |
◆ XmaxA()
| float EdbH2::XmaxA |
( |
float |
level = 0 | ) |
|
float XmaxA(float level=0)
Definition: EdbCell1.cpp:117
EdbH1 * ProjectionX()
Definition: EdbCell2.cpp:151
◆ Xmin()
| float EdbH2::Xmin |
( |
| ) |
const |
|
inline |
◆ XminA()
| float EdbH2::XminA |
( |
float |
level = 0 | ) |
|
float XminA(float level=0)
Definition: EdbCell1.cpp:108
◆ Y()
| float EdbH2::Y |
( |
int |
iy | ) |
const |
|
inline |
◆ Ybin()
| float EdbH2::Ybin |
( |
| ) |
const |
|
inline |
◆ Yj()
| float EdbH2::Yj |
( |
int |
j | ) |
const |
|
inline |
◆ Ymax()
| float EdbH2::Ymax |
( |
| ) |
const |
|
inline |
◆ YmaxA()
| float EdbH2::YmaxA |
( |
float |
level = 0 | ) |
|
EdbH1 * ProjectionY()
Definition: EdbCell2.cpp:159
◆ Ymin()
| float EdbH2::Ymin |
( |
| ) |
const |
|
inline |
◆ YminA()
| float EdbH2::YminA |
( |
float |
level = 0 | ) |
|
◆ eBin
◆ eMax
◆ eMin
◆ eN
◆ eNC
◆ eNcell
The documentation for this class was generated from the following files: