CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
29  public:
30 
31  PixelTKFECConfig(std::string 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  virtual ~PixelTKFECConfig();
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  virtual void writeASCII(std::string dir) const;
48  virtual void writeXML( pos::PixelConfigKey key, int version, std::string path) const {;}
49  virtual void writeXMLHeader( pos::PixelConfigKey key,
50  int version,
52  std::ofstream *out,
53  std::ofstream *out1 = NULL,
54  std::ofstream *out2 = NULL
55  ) const ;
56  virtual void writeXML( std::ofstream *out,
57  std::ofstream *out1 = NULL ,
58  std::ofstream *out2 = NULL ) const ;
59  virtual void writeXMLTrailer( std::ofstream *out,
60  std::ofstream *out1 = NULL,
61  std::ofstream *out2 = NULL
62  ) const ;
63 
64  private:
65  std::vector< PixelTKFECParameters > TKFECconfig_;
66  };
67 }
68 /* @} */
69 #endif
int i
Definition: DBlmapReader.cc:9
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
#define NULL
Definition: scimark2.h:8
std::string typeFromTKFECID(std::string TKFECID) const
unsigned int getNTKFECBoards() const
PixelTKFECConfig(std::string filename)
This file contains the base class for &quot;pixel configuration data&quot; management.
tuple path
else: Piece not in the list, fine.
This class specifies which TKFEC boards are used and how they are addressed.
std::string getTKFECID(unsigned int i) const
virtual void writeXML(pos::PixelConfigKey key, int version, std::string path) const
unsigned int addressFromTKFECID(std::string TKFECID) const
virtual void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
This class implements..
tuple out
Definition: dbtoconf.py:99
std::vector< PixelTKFECParameters > TKFECconfig_
std::string getType(unsigned int i) const
list key
Definition: combine.py:13
tuple filename
Definition: lut2db_cfg.py:20
virtual void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
dbl *** dir
Definition: mlp_gen.cc:35
unsigned int getAddress(unsigned int i) const
virtual void writeASCII(std::string dir) const