00001 #ifndef PixelDELAY25CALIB_h
00002 #define PixelDELAY25CALIB_h
00003
00009 #include <vector>
00010 #include <string>
00011 #include <set>
00012 #include <fstream>
00013 #include "CalibFormats/SiPixelObjects/interface/PixelCalibBase.h"
00014 #include "CalibFormats/SiPixelObjects/interface/PixelConfigBase.h"
00015
00016 namespace pos{
00024 class PixelDelay25Calib : public PixelCalibBase, public PixelConfigBase{
00025
00026 public:
00027
00028 PixelDelay25Calib(std::string);
00029 PixelDelay25Calib(std::vector<std::vector<std::string> > &);
00030 ~PixelDelay25Calib();
00031
00032 virtual void writeASCII(std::string dir="") const;
00033 void writeXML( pos::PixelConfigKey key, int version, std::string path) const {;}
00034 virtual void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out) const {;}
00035 virtual void writeXML( std::ofstream *out) const {;}
00036 virtual void writeXMLTrailer( std::ofstream *out) const {;}
00037
00038
00039 virtual std::string mode() {return mode_;}
00040 std::set<std::string>& portcardList() {return portcardNames_;}
00041 bool allPortcards() {return allPortcards_;}
00042 bool allModules() {return allModules_;}
00043 int getGridSize() {return gridSize_;}
00044 int getGridSteps() {return gridSteps_;}
00045 int getNumberTests() {return numTests_;}
00046 int getRange() {return range_;}
00047 int getOrigSDa() {return origSDa_;}
00048 int getOrigRDa() {return origRDa_;}
00049 int getCommands() {return commands_;}
00050 void openFiles(std::string portcardName, std::string moduleName,
00051 std::string path="");
00052 void writeSettings(std::string portcardName, std::string moduleName);
00053 void writeFiles(std::string tmp);
00054 void writeFiles(int currentSDa, int currentRDa, int number);
00055 void closeFiles();
00056
00057 private:
00058 std::string mode_;
00059 std::set<std::string> portcardNames_;
00060 bool allPortcards_, allModules_;
00061 int origSDa_, origRDa_, range_, gridSize_, gridSteps_, numTests_, commands_;
00062 std::ofstream graphout_;
00063 std::string graph_;
00064
00065 };
00066 }
00067
00068 #endif