/* * AEvent.h * * Created on: Dec 28, 2016 * Author: daria */ #ifndef DATACLASSES_AEVENT_H_ #define DATACLASSES_AEVENT_H_ #include #include #include #include #include "TError.h" #include "TString.h" #include "TTree.h" #include "TFile.h" //#include "TMath.h" #include "RawEvent.h" //#define NCELLS 1024 using std::cout; using std::endl; class AEvent { private: const Int_t fNPoints; //! TArrayD fAmpPos; //array for raw amplitudes TArrayD fTime; //array for raw times Double_t fAmpMax; Double_t fTimeAmpMax; TArrayD fAmpCFD; //array for CFD amplitudes (attenuated, inversed and delayed) Double_t fCFD; //zero-crossing time TGraph *fGraphSignal; TGraph *fGraphCFD; RawEvent *fInputEvent; //! Double_t fCFratio; //! Double_t fCFtimeDelay; //! public: AEvent(); AEvent(const Int_t npoints); virtual ~AEvent(); ClassDef(AEvent,1); void SetRawDataFile(const char* inprawfile, const char* treename); void ProcessEvent(); // void Integral() void SetInputEvent(RawEvent** event); void SetCFratio(Double_t ratio) { fCFratio = ratio; }; void SetCFtimeDelay(Double_t timeDelay) { fCFtimeDelay = timeDelay; }; void Reset(); //Resets arrays to zeros TGraph* GetGraph() { //todo return fGraphCFD; // return gSignal; } private: void Init(); void SetGraphs(); void SetCFD(); }; #endif /* DATACLASSES_AEVENT_H_ */