00001
00002
00004 #ifndef __InjRec__
00005 #define __InjRec__
00006
00007 #include "Segments.h"
00008 #include "TimeDelay.h"
00009 #include "ReadTriggers.h"
00010 #include "InjRea.h"
00011
00012 using namespace std;
00013
00014 class InjRec : public ReadTriggers, public InjRea{
00015
00016 public:
00017
00018 InjRec(const string aTriggerFilePattern, const string aInjFilePattern, Network *aNet, const int aVerbose=0);
00019 virtual ~InjRec(void);
00020
00021
00022 bool Recover(void);
00023 inline void SetTimeWindow(const double aTimeWindow){ TimeWindow=fabs(aTimeWindow); };
00024 inline void SetFrequencyRatioMax(const double aFrequencyRatioMax){ FrequencyRatioMax=fabs(aFrequencyRatioMax); };
00025
00026
00027 bool SetAmplitudeRange(const double aMin, const double aMax);
00028 bool SetSigmaRange(const double aMin, const double aMax);
00029 bool SetFrequencyRange(const double aMin, const double aMax);
00030 bool SetEccentricityRange(const double aMin, const double aMax);
00031 bool SetPolarizationRange(const double aMin, const double aMax);
00032
00033 bool Reset(void);
00034
00035 protected:
00036
00037 bool status;
00038
00039
00040 vector<int> sel_inj;
00041 vector<int> rec_inj;
00042 vector<int> rec_cl;
00043 double TimeWindow;
00044 double FrequencyRatioMax;
00045
00046
00047 double ampMin, ampMax;
00048 double sigmaMin, sigmaMax;
00049 double f0Min, f0Max;
00050 double eccMin, eccMax;
00051 double psiMin, psiMax;
00052
00053
00054 ClassDef(InjRec,0)
00055 };
00056
00057 #endif
00058
00059