Pluto
v6.3.0
Loading...
Searching...
No Matches
PAdaptiveMesh.h
Go to the documentation of this file.
1
// Author: I. Froehlich
2
// Written: 1.02.2003
3
// Revised:
4
5
#ifndef _PADAPTIVEMESH_H_
6
#define _PADAPTIVEMESH_H_
7
8
#define MAX_SUBMESH 20
9
10
#include "TObject.h"
11
#include "TF1.h"
12
#include "TLine.h"
13
14
class
PAdaptiveMesh
:
public
TObject {
15
16
private
:
17
18
Double_t y_max;
//upper boundary
19
Double_t area_size;
//area of the box(es)
20
Double_t x_max, x_min;
//bin width
21
Int_t sub_size, layer;
22
PAdaptiveMesh
*sub_tree[
MAX_SUBMESH
];
23
Double_t sub_area[
MAX_SUBMESH
];
24
TF1 *tf1;
25
TLine *line;
//upper line for the Draw() function
26
void
ReCalc(
void
);
27
PAdaptiveMesh
*GetRandomBin(Double_t f_random);
28
29
public
:
30
31
//constructor
32
PAdaptiveMesh
(Double_t my_x_max, Double_t my_x_min, Double_t my_y_max);
33
~PAdaptiveMesh
();
34
35
void
SetTF1
(TF1 * t) {tf1 = t;};
36
Double_t
GetRandom
();
37
Double_t
GetArea
() {
return
area_size;};
38
39
Double_t
GetXMax
() {
return
x_max;};
40
Double_t
GetXMin
() {
return
x_min;};
41
Double_t
GetYMax
() {
return
y_max;};
42
void
SetYMax
(Double_t
d
) {y_max=
d
;};
43
44
void
Divide
(Int_t num, Int_t my_layer);
45
46
void
Draw
(
const
Option_t *delme=NULL);
47
48
ClassDef(
PAdaptiveMesh
, 0)
//TF1 envelope with adaptable size of the bins
49
};
50
51
#endif
MAX_SUBMESH
#define MAX_SUBMESH
Definition
PAdaptiveMesh.h:8
d
PParticle * d
Definition
ana_eta_generator.C:20
PAdaptiveMesh::GetXMin
Double_t GetXMin()
Definition
PAdaptiveMesh.h:40
PAdaptiveMesh::GetXMax
Double_t GetXMax()
Definition
PAdaptiveMesh.h:39
PAdaptiveMesh::SetYMax
void SetYMax(Double_t d)
Definition
PAdaptiveMesh.h:42
PAdaptiveMesh::GetRandom
Double_t GetRandom()
PAdaptiveMesh::Divide
void Divide(Int_t num, Int_t my_layer)
PAdaptiveMesh::Draw
void Draw(const Option_t *delme=NULL)
PAdaptiveMesh::SetTF1
void SetTF1(TF1 *t)
Definition
PAdaptiveMesh.h:35
PAdaptiveMesh::PAdaptiveMesh
PAdaptiveMesh(Double_t my_x_max, Double_t my_x_min, Double_t my_y_max)
PAdaptiveMesh::GetArea
Double_t GetArea()
Definition
PAdaptiveMesh.h:37
PAdaptiveMesh::~PAdaptiveMesh
~PAdaptiveMesh()
PAdaptiveMesh::GetYMax
Double_t GetYMax()
Definition
PAdaptiveMesh.h:41
pluto6
include
PAdaptiveMesh.h
Generated by
1.14.0