#pragma once //#include "TObject.h" //#include "TROOT.h" #include #include #include "TFile.h" #include "TTree.h" #include "TCanvas.h" //#include "TH1I.h" //#include "TGraphErrors.h" //#include "TArrayD.h" //#include "TF1.h" #include "./AculCalib.h" using std::cout; using std::endl; class AculCalibScint : public AculCalib { private: // //todo delete this strange double array somewhere TFile **fInFiles; TTree **fTrees; TFile *fCutFile; // TClonesArray cutsCol; // // TH1I *hfull[NOCALFILES][16]; // TH1I *hcut[NOCALFILES][16]; // // Double_t mean[NOCALFILES][16]; // Double_t meanRMS[NOCALFILES][16]; // // TGraphErrors *gCal[16]; // TFile *fGraphs; public: // AculCalibScint() : a(0), b(0), c(0), p(0){}; AculCalibScint(); AculCalibScint(const char* parfile); virtual ~AculCalibScint(); // Define the class for the cint dictionary ClassDef (AculCalibScint,1); virtual void Init(); // void SetParFile(const char* parfile); void PrintTrees(); // void PrintParameters(const char* option = ""); // void PrintPeakRanges(); void DrawVariable(const char* variable, Int_t tree, TCanvas *canvas, Int_t lowRange = 0, Int_t upRange = 4096); // void DrawBeam(TCanvas *canvas, Int_t files, const char* variable); // void DrawdEE(const char* variable, Int_t tree, TCanvas *canvas); // void DrawVariableCut(const char* variable, Int_t tree, TCanvas *canvas, const char* cut1, const char* cut2 = "", Int_t lowRange = 0); //private functions: // void LoadCuts(); private: void OpenFiles(); void LoadTrees(); // void SetPars(); };