/* * AnalyzeData.h * * Created on: Dec 28, 2016 * Author: daria */ #ifndef DATACLASSES_ANALYZEDATA_H_ #define DATACLASSES_ANALYZEDATA_H_ #include #include #include #include #include "TString.h" #include "TTree.h" #include "TFile.h" #include "TMath.h" #include "RawData.h" #define NCELLS 1024 using std::cout; using std::endl; class AnalyzeData { private: Double_t fAmpPos[NCELLS]; //array for raw amplitudes Double_t fTime[NCELLS]; //array for raw times*/ Double_t fAmpMax; Double_t fTimeAmpMax; public: AnalyzeData(); virtual ~AnalyzeData(); ClassDef(AnalyzeData,1); void SetRawDataFile(const char* inprawfile, const char* treename); void ProcessEvent(RawData* event); // void Integral() /* 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); void PrintTime(Int_t i);*/ }; #endif /* DATACLASSES_ANALYZEDATA_H_ */