00001
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __BCDATASET__H
00023 #define __BCDATASET__H
00024
00025 #include <vector>
00026
00027 #include "BCDataPoint.h"
00028
00029
00030
00031 typedef std::vector<BCDataPoint*> BCDataVector;
00032
00033
00034
00035 class BCDataSet
00036 {
00037
00038 public:
00039
00041
00042
00043
00044
00045
00046 BCDataSet();
00047
00048
00049
00050
00051 virtual ~BCDataSet();
00052
00053
00054
00056
00057
00058
00059
00060
00061 BCDataVector * GetDataVector();
00062
00063
00064
00065
00066 int GetNDataPoints();
00067
00068
00069
00070
00071
00072 BCDataPoint* GetDataPoint(int index);
00073
00074
00075
00077
00078
00083 int ReadDataFromFile(const char * filename, const char * treename, const char * branchnames)
00084 { return this -> ReadDataFromFileTree(filename, treename, branchnames); };
00085 int ReadDataFromFile(const char * filename, int nvariables)
00086 { return this -> ReadDataFromFileTxt(filename, nvariables); };
00087 int ReadDataFromFile(const char * filename, std::vector<int> options_int, std::vector<double> options_double, const char * options_char)
00088 { return this -> ReadDataFromFileUser(filename, options_int, options_double, options_char); };
00089
00102 int ReadDataFromFileTree(const char * filename, const char * treename, const char * branchnames);
00103
00112 int ReadDataFromFileTxt(const char * filename, int nvariables);
00113
00126 virtual int ReadDataFromFileUser(const char * filename, std::vector<int> options_int, std::vector<double> options_double, const char * options_char);
00127
00132 void AddDataPoint(BCDataPoint* datapoint);
00133
00137 void Reset();
00138
00139
00140
00141 private:
00142
00143
00144
00145
00146 BCDataVector* fBCDataVector;
00147
00148 };
00149
00150
00151
00152 #endif
00153