Pluto v6.3.0
Loading...
Searching...
No Matches
PArray.h
Go to the documentation of this file.
1// Author: I. Froehlich
2// Written: 1.08.2009
3// Revised:
4// PArray
5// 1 or 2dim array from file(s)
6
7#ifndef _PARRAY_H_
8#define _PARRAY_H_
9
10#include "TObject.h"
11#include "TGraph.h"
12#include "TGraph2D.h"
13#include "TArrayD.h"
14
15
16#define PARRAY_GRANULARITY 10
17#define PARRAY_MAX_COLUMNS 10
18
19class PArray : public TObject {
20
21 private:
22
23 Int_t dim;
24 FILE *fp;
25
26 TArrayD *vals_1d[PARRAY_MAX_COLUMNS];
27 TArrayD *vals_2d;
28 Int_t real_size_1d;
29 Double_t scaling;
30
31
32 public:
33
34 //constructor
35 PArray(Int_t dimension);
37
38 void Scaling(Double_t sc) {
39 scaling=sc;
40 };
41 Bool_t OpenFile(const char *filename, Int_t syntax, Int_t num_columns, Double_t y=0);
42 TGraph *GetTGraph(Int_t xcol, Int_t ycol);
43 TGraph2D *GetTGraph2D(Int_t xcol, Int_t ycol);
44
45
46 ClassDef(PArray, 0) //Tool class to convert txt-files to TGraph(s)
47};
48
49#endif
#define PARRAY_MAX_COLUMNS
Definition PArray.h:17
TGraph * GetTGraph(Int_t xcol, Int_t ycol)
TGraph2D * GetTGraph2D(Int_t xcol, Int_t ycol)
PArray(Int_t dimension)
void Scaling(Double_t sc)
Definition PArray.h:38
Bool_t OpenFile(const char *filename, Int_t syntax, Int_t num_columns, Double_t y=0)
TString filename("eta_dalitz_a")