00001 #ifndef H_NAMINGFACTORY_H
00002 #define H_NAMINGFACTORY_H
00003
00004 #include "H_Factory.h"
00005
00032 class H_Naming_Factory : public H_Factory {
00033 public:
00034 enum collisions { Override, Keep};
00035 private:
00036 collisions existingHisto;
00037 int checkPrevious (char * );
00038 public:
00043 H_Naming_Factory (collisions r) : H_Factory() , existingHisto(r){};
00049 int init (HepDbApplication *sess, char *path = 0, char *dbname = 0,
00050 char *contname = 0);
00054 HepRef(P_Histo1D) Histo1D (int , const char *, Size ,double , double ,
00055 End_Point_Convention epc = RIGHT_OPEN);
00059 HepRef(P_Histo1D) Histo1D (char *name , const char *, Size , double , double
00060 , End_Point_Convention epc = RIGHT_OPEN);
00065 HepRef(P_Histo1DVar) Histo1DVar(int , const char *, HTL_STD::vector<float> &,
00066 End_Point_Convention epc = RIGHT_OPEN );
00070 HepRef(P_Histo1DVar) Histo1DVar(char *,const char *,HTL_STD::vector<float> &,
00071 End_Point_Convention epc = RIGHT_OPEN );
00076 HepRef(P_Histo1DVar) Histo1DVar(int, const char *, HTL_STD::vector<double> &,
00077 End_Point_Convention epc = RIGHT_OPEN );
00081 HepRef(P_Histo1DVar) Histo1DVar(char *,const char *,HTL_STD::vector<double>&,
00082 End_Point_Convention epc = RIGHT_OPEN );
00086 HepRef(P_ProfileHisto1D) ProfileHisto (int ,const char *, Size , double ,
00087 double , End_Point_Convention
00088 epc = RIGHT_OPEN);
00093 HepRef(P_ProfileHisto1DVar) ProfileHistoVar(int , const char *,
00094 HTL_STD::vector<float>&,
00095 End_Point_Convention
00096 epc = RIGHT_OPEN );
00100 HepRef(P_ProfileHisto1DVar) ProfileHistoVar(int , const char *,
00101 HTL_STD::vector<double> &,
00102 End_Point_Convention
00103 epc = RIGHT_OPEN );
00107 HepRef(P_Histo2D) Histo2D (int , const char *, Size , double , double ,
00108 Size , double , double , End_Point_Convention
00109 epc1 = RIGHT_OPEN , End_Point_Convention
00110 epc2 = RIGHT_OPEN );
00115 HepRef(P_Histo2DVar) Histo2DVar(int ,const char *,HTL_STD::vector<double>&,
00116 HTL_STD::vector<double>&, End_Point_Convention
00117 epc1 = RIGHT_OPEN, End_Point_Convention
00118 epc2 = RIGHT_OPEN );
00123 HepRef(P_Histo2DVar) Histo2DVar(int , const char *,HTL_STD::vector<float> &,
00124 HTL_STD::vector<float>&, End_Point_Convention
00125 epc1 = RIGHT_OPEN, End_Point_Convention
00126 epc2 = RIGHT_OPEN );
00130 HepRef(P_ProfileHisto1D) ProfileHisto (char *id,const char *a_title,
00131 Size n, double x1, double x2,
00132 End_Point_Convention
00133 epc = RIGHT_OPEN);
00137 HepRef(P_ProfileHisto1DVar) ProfileHistoVar(char *,const char *,
00138 HTL_STD::vector<float> &,
00139 End_Point_Convention
00140 epc = RIGHT_OPEN );
00144 HepRef(P_ProfileHisto1DVar) ProfileHistoVar(char *,const char *,
00145 HTL_STD::vector<double> &,
00146 End_Point_Convention
00147 epc = RIGHT_OPEN );
00151 HepRef(P_Histo2D) Histo2D (char *,const char *, Size , double , double ,
00152 Size , double , double , End_Point_Convention
00153 epc1 = RIGHT_OPEN , End_Point_Convention
00154 epc2 = RIGHT_OPEN );
00158 HepRef(P_Histo2DVar)Histo2DVar(char *,const char *,HTL_STD::vector<double>&,
00159 HTL_STD::vector<double>&, End_Point_Convention
00160 epc1 = RIGHT_OPEN, End_Point_Convention
00161 epc2 = RIGHT_OPEN );
00165 HepRef(P_Histo2DVar) Histo2DVar(char *,const char *,HTL_STD::vector<float>&,
00166 HTL_STD::vector<float>&, End_Point_Convention
00167 epc1 = RIGHT_OPEN, End_Point_Convention
00168 epc2 = RIGHT_OPEN );
00170 int removeHisto(char *path);
00172 void goHome();
00173
00174 };
00175
00176
00177
00178 #endif //H_NAMINGFACTORY_H