Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _OCS_OPT_DATA_WRITER_HH_
00015 #define _OCS_OPT_DATA_WRITER_HH_
00016
00017 #include "ocsOptSignal.hh"
00018 #include "ocsOptSpectrumAnalyzer.hh"
00019 #include "PulseEvolutionAnalyzer.hh"
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 class OptDataWriter
00034 {
00035
00036
00037
00038 public:
00039
00040 OptDataWriter(string InFileName,string InDir2,
00041 string Job2, OptSignal * Signal2);
00042
00043 void WriteInitialData(void);
00044 void WriteWithinMap(int expt_num, int map_number, double PropagatedLength);
00045 void WriteEndMap(int expt_num, int map_number, double PropagatedLength);
00046 void WriteEndTransmission(int expt_num, int map_number,
00047 double PropagatedLength);
00048 void TurnOffWriteFlags(int expt_num);
00049
00050 int GetWritePulseWidthInFiberFlag() {return WritePulseWidthInFiberFlag;};
00051 int GetOutputStepSizesFlag() {return OutputStepSizesFlag;};
00052
00053 bool GetComputeMeanZerosStdDevOnes() {return ComputeMeanZerosStdDevOnes;};
00054 int GetComputeEnergyInBitSlot() {return ComputeEnergyInBitSlot;};
00055
00056
00057
00058
00059 PulseEvolutionAnalyzer * PEA;
00060
00061
00062
00063 private:
00064
00065 OptSignal * Signal;
00066 string Job;
00067
00068 OptSpectrumAnalyzer * PowerMeter;
00069
00070
00071 bool WriteComplexFieldsFlag;
00072 bool WritePowerChannelFlag;
00073 int ChannelArrayIndexForPower;
00074 bool WritePowerFlag;
00075
00076 bool WriteDistanceTimePowerFlag;
00077 bool WriteDistanceTimePowerWithinMapFlag;
00078 bool WriteDistanceTimePowerPhaseFlag;
00079 bool WriteDistanceTimePowerPhaseWithinMapFlag;
00080
00081 bool WritePowerMapFlag;
00082 bool WriteAccDispFlag;
00083
00084 bool WritePulseWidthFlag;
00085 bool WriteAverageChirpFlag;
00086
00087 bool WriteLocalFreqFlag;
00088
00089 bool WriteInitialOptDataFlag;
00090 bool WriteFinalOptDataFlag;
00091
00092
00093 int NumSlicesZ;
00094 int TimeIndexIncrement;
00095
00096 bool OmitDCFlag;
00097
00098 bool ComputeTimeFreqShifts;
00099 bool ComputeTimingJitter;
00100 bool ComputeMeanZerosStdDevOnes;
00101 int ComputeEnergyInBitSlot;
00102
00103 int OutputStepSizesFlag;
00104 int WritePulseWidthInFiberFlag;
00105
00106 bool WriteDOPFlag;
00107 double RelMinFreqDOP,RelMaxFreqDOP;
00108
00109
00110 };
00111
00112 #endif
00113
00114
00115
00116
00117
00118
00119
00120
00121