/* * RawData.h * * Created on: Dec 27, 2016 * Author: vratik */ #ifndef DATACLASSES_RAWDATA_H_ #define DATACLASSES_RAWDATA_H_ #include #include "TGraph.h" #define NCELLS 1024 using std::cout; using std::endl; class RawData { private: Double_t Amp[NCELLS]; //array for raw amplitudes Double_t Time[NCELLS]; //array for raw times // Double_t Amplitude[NCELLS]; //array for inverted amplitudes public: RawData(); virtual ~RawData(); ClassDef(RawData,1); 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); //Prints i amplitudes (to make sense i shold be NCELLS) void PrintTime(Int_t i); // void InvertAmp(Double_t a, Int_t i); //Inverts the amplitudes i.e. makes from negative singals //posititve signals and vise versa. }; #endif /* DATACLASSES_RAWDATA_H_ */