RawData.h 680 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * RawData.h
 *
 *  Created on: Dec 27, 2016
 *      Author: vratik
 */

#ifndef DATACLASSES_RAWDATA_H_
#define DATACLASSES_RAWDATA_H_

#include <iostream>

#include "TGraph.h"

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

18 19
#define NCELLS 1024

20 21 22
class RawData {

private:
23 24
	Double_t Amp[NCELLS];
	Double_t Time[NCELLS];
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

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

	void Reset();

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

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

41 42 43 44 45 46 47 48 49
	void SetAmp(Double_t a, Int_t i) {
		if (i >=NCELLS) {
			cout << "chren'" << endl;
			return;
		}
		Amp[i] = a;
		return;
	}

50 51 52 53
	void Print();
};

#endif /* DATACLASSES_RAWDATA_H_ */