CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PixelTKFECConfig.h
Go to the documentation of this file.
1 #ifndef PixelTKFECConfig_h
2 #define PixelTKFECConfig_h
3 
10 #include <iostream>
11 #include <vector>
12 #include <string>
15 
16 namespace pos {
28  public:
31  filename); // <---- Modified for the conversion from parallel vectors to object that contain the configuration
32 
33  PixelTKFECConfig(std::vector<std::vector<std::string> > &tableMat);
34 
35  ~PixelTKFECConfig() override;
36 
37  unsigned int getNTKFECBoards() const;
38 
39  std::string getTKFECID(unsigned int i) const;
40  unsigned int getCrate(unsigned int i) const;
41  std::string getType(unsigned int i) const;
42  unsigned int getAddress(unsigned int i) const;
43  unsigned int crateFromTKFECID(std::string TKFECID) const;
45  unsigned int addressFromTKFECID(std::string TKFECID) const;
46 
47  void writeASCII(std::string dir) const override;
48  void writeXML(pos::PixelConfigKey key, int version, std::string path) const override { ; }
50  int version,
52  std::ofstream *out,
53  std::ofstream *out1 = nullptr,
54  std::ofstream *out2 = nullptr) const override;
55  void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
56  void writeXMLTrailer(std::ofstream *out,
57  std::ofstream *out1 = nullptr,
58  std::ofstream *out2 = nullptr) const override;
59 
60  private:
61  std::vector<PixelTKFECParameters> TKFECconfig_;
62  };
63 } // namespace pos
64 /* @} */
65 #endif
This file contains the base class for &quot;pixel configuration data&quot; management.
unsigned int crateFromTKFECID(std::string TKFECID) const
unsigned int getCrate(unsigned int i) const
void writeASCII(std::string dir) const override
std::string typeFromTKFECID(std::string TKFECID) const
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
unsigned int getNTKFECBoards() const
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
PixelTKFECConfig(std::string filename)
This file contains the base class for &quot;pixel configuration data&quot; management.
This class specifies which TKFEC boards are used and how they are addressed.
std::string getTKFECID(unsigned int i) const
tuple key
prepare the HTCondor submission files and eventually submit them
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
unsigned int addressFromTKFECID(std::string TKFECID) const
This class implements..
std::string getType(unsigned int i) const
tuple filename
Definition: lut2db_cfg.py:20
unsigned int getAddress(unsigned int i) const
std::vector< PixelTKFECParameters > TKFECconfig_