CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CalibFormats/SiPixelObjects/interface/PixelDelay25Calib.h

Go to the documentation of this file.
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, 
00035                                   int version, 
00036                                   std::string path, 
00037                                   std::ofstream *out,
00038                                   std::ofstream *out1 = NULL,
00039                                   std::ofstream *out2 = NULL
00040                                   ) const ;
00041     virtual void writeXML(        std::ofstream *out,                                                       
00042                                   std::ofstream *out1 = NULL ,
00043                                   std::ofstream *out2 = NULL ) const ;
00044     virtual void writeXMLTrailer( std::ofstream *out, 
00045                                   std::ofstream *out1 = NULL,
00046                                   std::ofstream *out2 = NULL
00047                                   ) const ;
00048 
00049     std::set<std::string>& portcardList() {return portcardNames_;}
00050     bool allPortcards() {return allPortcards_;}
00051     bool allModules() {return allModules_;}
00052     int getGridSize() {return gridSize_;}
00053     int getGridSteps() {return gridSteps_;}
00054     int getNumberTests() {return numTests_;}
00055     int getRange() {return range_;}
00056     int getOrigSDa() {return origSDa_;}
00057     int getOrigRDa() {return origRDa_;}
00058     int getCommands() {return commands_;}
00059     void openFiles(std::string portcardName, std::string moduleName, 
00060                    std::string path="");
00061     void writeSettings(std::string portcardName, std::string moduleName);
00062     void writeFiles(std::string tmp);
00063     void writeFiles(int currentSDa, int currentRDa, int number);
00064     void closeFiles();
00065 
00066   private:
00067 
00068     std::set<std::string> portcardNames_;
00069     bool allPortcards_, allModules_;
00070     int origSDa_, origRDa_, range_, gridSize_, gridSteps_, numTests_, commands_;
00071     std::ofstream graphout_;
00072     std::string graph_;
00073 
00074   };
00075 }
00076 /* @} */
00077 #endif