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
14class 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);
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
#define MAX_SUBMESH
PParticle * d
Double_t GetXMin()
Double_t GetXMax()
void SetYMax(Double_t d)
Double_t GetRandom()
void Divide(Int_t num, Int_t my_layer)
void Draw(const Option_t *delme=NULL)
void SetTF1(TF1 *t)
PAdaptiveMesh(Double_t my_x_max, Double_t my_x_min, Double_t my_y_max)
Double_t GetArea()
Double_t GetYMax()