HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hmdcgarreader.h
Go to the documentation of this file.
1 #ifndef HMDCGARREADER_H
2 #define HMDCGARREADER_H
3 #include "TNamed.h"
4 #include "TObject.h"
5 #include "TH1.h"
6 #include "TH2.h"
7 #include "TGraph.h"
8 #include "TGraphErrors.h"
9 #include "TArray.h"
10 #include "TObjArray.h"
11 
12 class TFile;
13 class TDirectory;
14 class TH1D;
15 class TString;
16 
17 class HMdcGarReader : public TNamed {
18 protected:
19 
20  void initVariables ();
21 public:
22  HMdcGarReader(const Char_t* name="",const Char_t* title="");
23  ~HMdcGarReader ();
24 static TGraph* readXT(TString,Int_t);
25 static TGraph* readXTdiffusion(TString,Int_t);
26 //static void readE();
27 static TGraph* readMagboltzVdrift(TString,Int_t);
28 static TGraph* readMagboltzGasPrint(TString,TString,Int_t);
29 static TGraph* readMagboltzGasPrintVersion6(TString,TString,Int_t);
30 static TArrayD* readMatrix(TString,Int_t&,Int_t&);
31 static TH1F* readMatrix1DToHist(TString,Float_t,Float_t);
32 static TH2F* readMatrix2DToHist(TString,Float_t,Float_t,Float_t,Float_t);
33 static TH1F* readHist1D(TString,Float_t scale=1.,Float_t scalex=1.);
34 static TH1F* readHist1D(TString,TString,Float_t scale=1.,Float_t scalex=1.);
35 static TGraph* readHist1DToGraph(TString,Float_t scale=1.,Float_t scalex=1.);
36 static TGraphErrors* readHist1DToGraph(TString,TString,Float_t scale=1.,Float_t scalex=1.);
37 static TObjArray* readSignal(TString inputname,Int_t nbins=1000,Double_t xmin=0,Double_t xmax=1000,Int_t version=708);
38 static TGraph* readGraphE(TString inputName,TString dir = "x",Float_t min=-999999,Float_t max=-999999,Int_t color=2,Float_t scale = 10,Bool_t suppressZero=kTRUE);
39 
40 //static void readIsoChrones();
41 ClassDef(HMdcGarReader,1) // Class for reading several GARFIELD formats
42 };
43 #endif /*!HMDCGARREADER_H*/
static TGraph * readXT(TString, Int_t)
void initVariables()
static TH2F * readMatrix2DToHist(TString, Float_t, Float_t, Float_t, Float_t)
static TObjArray * readSignal(TString inputname, Int_t nbins=1000, Double_t xmin=0, Double_t xmax=1000, Int_t version=708)
static TGraph * readMagboltzGasPrint(TString, TString, Int_t)
static TGraph * readGraphE(TString inputName, TString dir="x", Float_t min=-999999, Float_t max=-999999, Int_t color=2, Float_t scale=10, Bool_t suppressZero=kTRUE)
HMdcGarReader(const Char_t *name="", const Char_t *title="")
static TGraph * readHist1DToGraph(TString, Float_t scale=1., Float_t scalex=1.)
static TH1F * readHist1D(TString, Float_t scale=1., Float_t scalex=1.)
static TGraph * readMagboltzVdrift(TString, Int_t)
static TH1F * readMatrix1DToHist(TString, Float_t, Float_t)
static TGraph * readMagboltzGasPrintVersion6(TString, TString, Int_t)
static TGraph * readXTdiffusion(TString, Int_t)
static TArrayD * readMatrix(TString, Int_t &, Int_t &)