#ifndef HMDCGARREADER_H
#define HMDCGARREADER_H
#include "TNamed.h"
#include "TObject.h"
#include "TH1.h"
#include "TH2.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TArray.h"
#include "TObjArray.h"
class TFile;
class TDirectory;
class TH1D;
class TString;
class HMdcGarReader : public TNamed {
protected:
void initVariables ();
public:
HMdcGarReader(const Char_t* name="",const Char_t* title="");
~HMdcGarReader ();
static TGraph* readXT(TString,Int_t);
static TGraph* readXTdiffusion(TString,Int_t);
static TGraph* readMagboltzVdrift(TString,Int_t);
static TGraph* readMagboltzGasPrint(TString,TString,Int_t);
static TGraph* readMagboltzGasPrintVersion6(TString,TString,Int_t);
static TArrayD* readMatrix(TString,Int_t&,Int_t&);
static TH1F* readMatrix1DToHist(TString,Float_t,Float_t);
static TH2F* readMatrix2DToHist(TString,Float_t,Float_t,Float_t,Float_t);
static TH1F* readHist1D(TString,Float_t scale=1.,Float_t scalex=1.);
static TH1F* readHist1D(TString,TString,Float_t scale=1.,Float_t scalex=1.);
static TGraph* readHist1DToGraph(TString,Float_t scale=1.,Float_t scalex=1.);
static TGraphErrors* readHist1DToGraph(TString,TString,Float_t scale=1.,Float_t scalex=1.);
static TObjArray* readSignal(TString inputname,Int_t nbins=1000,Double_t xmin=0,Double_t xmax=1000,Int_t version=708);
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);
ClassDef(HMdcGarReader,1)
};
#endif /*!HMDCGARREADER_H*/