AnalyzeData.h 1.25 KB
Newer Older
1 2 3 4 5 6 7 8 9
/*
 * AnalyzeData.h
 *
 *  Created on: Dec 28, 2016
 *      Author: daria
 */

#ifndef DATACLASSES_ANALYZEDATA_H_
#define DATACLASSES_ANALYZEDATA_H_
10

11 12 13 14
#include <iostream>
#include <fstream>
#include <iomanip>
#include <sstream>
15 16 17 18 19 20 21 22

#include "TString.h"
#include "TTree.h"
#include "TFile.h"
#include "TMath.h"

#include "RawData.h"

23 24 25 26 27 28 29 30 31
#define NCELLS 1024

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

class AnalyzeData {

private:

32 33 34 35
	Double_t fAmpPos[NCELLS]; //array for raw amplitudes
	Double_t fTime[NCELLS]; //array for raw times*/
	Double_t fAmpMax;
	Double_t fTimeAmpMax;
36 37 38 39 40 41

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

42 43
	void SetRawDataFile(const char* inprawfile, const char* treename);
	void ProcessEvent(RawData* event);
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
//	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_ */