From d57585048efb0f62e8930411efdf5a268a5cac93 Mon Sep 17 00:00:00 2001 From: "Muzalevsky I.A" Date: Wed, 11 Jan 2017 10:43:00 +0300 Subject: [PATCH] functions GetTime and GetAmp in class RawEvent added --- dataClasses/RawEvent.cpp | 7 +++++++ dataClasses/RawEvent.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/dataClasses/RawEvent.cpp b/dataClasses/RawEvent.cpp index 7a77ba8..695bbbc 100644 --- a/dataClasses/RawEvent.cpp +++ b/dataClasses/RawEvent.cpp @@ -65,6 +65,13 @@ void RawEvent::SetTime(Double_t t, Int_t i) { return; } +double RawEvent::GetTime(Int_t i) { + return fTime[i]; +} + +double RawEvent::GetAmp(Int_t i) { + return fAmp[i]; +} //void RawEvent::SetGraphs() { // // gAmp->Set(fNPoints); diff --git a/dataClasses/RawEvent.h b/dataClasses/RawEvent.h index 7c29a06..b1a9367 100644 --- a/dataClasses/RawEvent.h +++ b/dataClasses/RawEvent.h @@ -62,6 +62,10 @@ public: void PrintTime(Int_t i); + double GetTime(Int_t i); + + double GetAmp(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. -- 2.18.1