/* * RawData.h * * Created on: Dec 27, 2016 * Author: vratik */ #ifndef DATACLASSES_RAWDATA_H_ #define DATACLASSES_RAWDATA_H_ #include #include "TGraph.h" using std::cout; using std::endl; #define NCELLS 1024 class RawData { private: Double_t Amp[NCELLS]; Double_t Time[NCELLS]; public: RawData(); virtual ~RawData(); ClassDef(RawData,1); void Reset(); const Double_t* GetAmp() const { return Amp; } const Double_t* GetTime() const { return Time; } void SetAmp(Double_t a, Int_t i) { if (i >=NCELLS) { cout << "chren'" << endl; return; } Amp[i] = a; return; } void Print(); }; #endif /* DATACLASSES_RAWDATA_H_ */