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 
28  public:
29 
30  PixelMaxVsf(std::vector< std::vector < std::string> > &tableMat);
32 
33  void writeASCII(std::string dir="") const override;
34  void writeXML( pos::PixelConfigKey key, int version, std::string path) const override {;}
36  int version,
38  std::ofstream *out,
39  std::ofstream *out1 = nullptr,
40  std::ofstream *out2 = nullptr
41  ) const override ;
42  void writeXML( std::ofstream *out,
43  std::ofstream *out1 = nullptr ,
44  std::ofstream *out2 = nullptr ) const override ;
45  void writeXMLTrailer( std::ofstream *out,
46  std::ofstream *out1 = nullptr,
47  std::ofstream *out2 = nullptr
48  ) const override ;
49 
50  bool getVsf(PixelROCName roc, unsigned int& Vsf) const;
51 
52  void setVsf(PixelROCName roc, unsigned int Vsf);
53 
54  private:
55 
56  std::map<PixelROCName, unsigned int> rocs_;
57 
58  };
59 
60 }
61 /* @} */
62 #endif
This file contains the base class for "pixel configuration data" management.
void writeASCII(std::string dir="") const override
Definition: PixelMaxVsf.cc:148
void setVsf(PixelROCName roc, unsigned int Vsf)
Definition: PixelMaxVsf.cc:140
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:233
PixelMaxVsf(std::vector< std::vector< std::string > > &tableMat)
Definition: PixelMaxVsf.cc:22
std::map< PixelROCName, unsigned int > rocs_
Definition: PixelMaxVsf.h:56
bool getVsf(PixelROCName roc, unsigned int &Vsf) const
Definition: PixelMaxVsf.cc:125
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:171
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:34
dbl *** dir
Definition: mlp_gen.cc:35
This class stores the name and related hardware mappings for a ROC.