CMS 3D CMS Logo

PixelMaxVsf.h
Go to the documentation of this file.
1 #ifndef PixelMaxVsf_h
2 #define PixelMaxVsf_h
3 
9 #include <map>
10 #include <string>
11 #include <vector>
14 
15 namespace pos {
26  class PixelMaxVsf : public PixelConfigBase {
27  public:
28  PixelMaxVsf(std::vector<std::vector<std::string> > &tableMat);
30 
31  void writeASCII(std::string dir = "") const override;
32  void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
34  int version,
36  std::ofstream *out,
37  std::ofstream *out1 = nullptr,
38  std::ofstream *out2 = nullptr) const override;
39  void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
40  void writeXMLTrailer(std::ofstream *out,
41  std::ofstream *out1 = nullptr,
42  std::ofstream *out2 = nullptr) const override;
43 
44  bool getVsf(PixelROCName roc, unsigned int &Vsf) const;
45 
46  void setVsf(PixelROCName roc, unsigned int Vsf);
47 
48  private:
49  std::map<PixelROCName, unsigned int> rocs_;
50  };
51 
52 } // namespace pos
53 /* @} */
54 #endif
This file contains the base class for "pixel configuration data" management.
void writeASCII(std::string dir="") const override
Definition: PixelMaxVsf.cc:126
void setVsf(PixelROCName roc, unsigned int Vsf)
Definition: PixelMaxVsf.cc:124
This file contains the base class for "pixel configuration data" management.
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelMaxVsf.cc:204
PixelMaxVsf(std::vector< std::vector< std::string > > &tableMat)
Definition: PixelMaxVsf.cc:21
std::map< PixelROCName, unsigned int > rocs_
Definition: PixelMaxVsf.h:49
bool getVsf(PixelROCName roc, unsigned int &Vsf) const
Definition: PixelMaxVsf.cc:112
This class implements..
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelMaxVsf.cc:147
This class implements..
Definition: PixelROCName.h:23
This is the documentation about PixelMaxVsf...
Definition: PixelMaxVsf.h:26
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
Definition: PixelMaxVsf.h:32
This class stores the name and related hardware mappings for a ROC.