/* * RawData.cpp * * Created on: Dec 27, 2016 * Author: vratik */ #include "RawData.h" RawData::RawData() { // TODO Auto-generated constructor stub TGraph gr; } RawData::~RawData() { // TODO Auto-generated destructor stub } void RawData::Reset() { for (Int_t i = 0; i < NCELLS; i++) { Amp[i] = 0; Time[i] = 0; } } void RawData::PrintTime(Int_t i) { cout << Time[i] << endl; } void RawData::PrintAmp(Int_t i) { cout << Amp[i] << endl; } void RawData::SetAmp(Double_t a, Int_t i) { if (i >=NCELLS) { cout << "Error: array with raw amplitudes is overloaded!" << endl; return; } Amp[i] = a; return; } void RawData::SetTime(Double_t t, Int_t i) { if (i >=NCELLS) { cout << "Error: array with raw times is overloaded!" << endl; return; } Time[i] = t; return; }