#ifndef fQEventManager_h_seen #define fQEventManager_h_seen #ifndef NOSKLIBRARIES #include "SKTVarConsts.h" #endif class fQEventManager { private: int fQuiet; int fNPMT;// # of PMTs int nEvt; bool flgData; double PMTGainCorr; double WAttenLCorr; #ifndef NOSKLIBRARIES SKTVarConsts *SKConsts_tvar; #endif fQEventManager(); static fQEventManager* staticthis; void GetAllHits(); public: static fQEventManager* Get(){ if (!staticthis) { staticthis = new fQEventManager(); } return staticthis; } ~fQEventManager(); static constexpr double qThresh=0.3; int flgHist; static char ofname[1024]; int* PMT_iHit; double* PMT_q; double* PMT_t; int PMTall_nhit; int* PMTall_icab; double* PMTall_q; double* PMTall_t; double MinMax_PMTall_t[2]; int n_Gate; double t_Gate[100][2]; bool IsItRealData() {return flgData;} double GetGainFact() {return PMTGainCorr;} double GetAttenLFact() {return WAttenLCorr;} void LoadEvent(); int SetGate(float t_Start, float t_End, bool flgShiftGate, bool flgMaskDeadTimePMT=false); }; #endif