CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/CalibFormats/SiPixelObjects/interface/PixelMaxVsf.h

Go to the documentation of this file.
00001 #ifndef PixelMaxVsf_h
00002 #define PixelMaxVsf_h
00003 
00009 #include <map>
00010 #include <string>
00011 #include <vector>
00012 #include "CalibFormats/SiPixelObjects/interface/PixelConfigBase.h"
00013 #include "CalibFormats/SiPixelObjects/interface/PixelROCName.h"
00014 
00015 namespace pos{
00026   class PixelMaxVsf: public PixelConfigBase {
00027 
00028   public:
00029 
00030     PixelMaxVsf(std::vector< std::vector < std::string> > &tableMat);
00031     PixelMaxVsf(std::string filename);
00032 
00033     void writeASCII(std::string dir="") const;
00034     void         writeXML(        pos::PixelConfigKey key, int version, std::string path) const {;}
00035     virtual void writeXMLHeader(  pos::PixelConfigKey key, 
00036                                   int version, 
00037                                   std::string path, 
00038                                   std::ofstream *out,
00039                                   std::ofstream *out1 = NULL,
00040                                   std::ofstream *out2 = NULL
00041                                   ) const ;
00042     virtual void writeXML(        std::ofstream *out,                                                       
00043                                   std::ofstream *out1 = NULL ,
00044                                   std::ofstream *out2 = NULL ) const ;
00045     virtual void writeXMLTrailer( std::ofstream *out, 
00046                                   std::ofstream *out1 = NULL,
00047                                   std::ofstream *out2 = NULL
00048                                   ) const ;
00049 
00050     bool getVsf(PixelROCName roc, unsigned int& Vsf) const;
00051 
00052     void setVsf(PixelROCName roc, unsigned int Vsf);
00053 
00054   private:
00055 
00056     std::map<PixelROCName, unsigned int> rocs_;
00057  
00058   };
00059 
00060 }
00061 /* @} */
00062 #endif