AnalyzeData.h 1.4 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 70 71 72
/*
 * AnalyzeData.h
 *
 *  Created on: Dec 28, 2016
 *      Author: daria
 */

#ifndef DATACLASSES_ANALYZEDATA_H_
#define DATACLASSES_ANALYZEDATA_H_
#include <iostream>
#include <fstream>
#include <iomanip>
#include <sstream>
#include "TGraph.h"
#include <TObject.h>
#include <TFile.h>
#include <TTree.h>
#include <TH1I.h>
#include <TPolyMarker.h>
#include <TF1.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TCanvas.h>
#include <TMath.h>
#include <TGraph.h>
#include <TObjArray.h>
#include <THStack.h>
#include <TString.h>
#include <TSpectrum.h>
#define NCELLS 1024

using std::cout;
using std::endl;

class AnalyzeData {

private:

/*	Double_t Amp[NCELLS]; //array for raw amplitudes
	Double_t Time[NCELLS]; //array for raw times*/

public:
	AnalyzeData();
	virtual ~AnalyzeData();
	ClassDef(AnalyzeData,1);

	Bool_t SetRawDataFile(const char* inprawfile, const char* treename);
//	void Integral()
/*	void Reset();
	//Resets arrays to zeros

	const Double_t* GetAmp() const {
		return Amp;
	}

	const Double_t* GetTime() const {
		return Time;
	}

	void SetAmp(Double_t a, Int_t i);
	//Takes amplitude (raw data, voltage from binary file) 
	//and places it in the array Amp[NCELLS]

	void SetTime(Double_t t, Int_t i);
	//Takes time (raw data, times from binary file) 
	//and places it in the array Time[NCELLS]

	void PrintAmp(Int_t i);
	void PrintTime(Int_t i);*/
};

#endif /* DATACLASSES_ANALYZEDATA_H_ */