AculCalibScint.h 1.53 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
#pragma once

//#include "TObject.h"
//#include "TROOT.h"
#include <iostream>
#include <fstream>

#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();
};