CMS 3D CMS Logo

PixelLowVoltageMap.h
Go to the documentation of this file.
1 #ifndef PixelLowVoltageMap_h
2 #define PixelLowVoltageMap_h
3 
10 #include <vector>
11 #include <set>
12 #include <map>
13 #include <utility>
14 #include <string>
20 
21 namespace pos{
32 
33  public:
34 
35  PixelLowVoltageMap(std::vector< std::vector < std::string> > &tableMat);
37 
38  void writeASCII(std::string dir="") const override;
39  void writeXML( pos::PixelConfigKey key, int version, std::string path) const override {;}
41  int version,
43  std::ofstream *out,
44  std::ofstream *out1 = nullptr,
45  std::ofstream *out2 = nullptr
46  ) const override ;
47  void writeXML( std::ofstream *out,
48  std::ofstream *out1 = nullptr ,
49  std::ofstream *out2 = nullptr ) const override ;
50  void writeXMLTrailer( std::ofstream *out,
51  std::ofstream *out1 = nullptr,
52  std::ofstream *out2 = nullptr
53  ) const override ;
54 
56  std::string dpNameIdigi(const PixelModuleName& module) const;
57 
58  std::set <unsigned int> getFEDs(PixelNameTranslation* translation) const;
59  std::map <unsigned int, std::set<unsigned int> > getFEDsAndChannels(PixelNameTranslation* translation) const;
60 
61  private:
62  //ugly... FIXME
63  std::map<PixelModuleName, std::pair<std::string, std::pair<std::string, std::string> > > dpNameMap_;
64  // base Iana Idigi
65  };
66 }
67 /* @} */
68 #endif
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
This file contains the base class for "pixel configuration data" management.
Store mfec, mfecchannel etc.
This class provides a translation from the naming documents standard to specify the ROC to the corres...
This class implements..
std::map< PixelModuleName, std::pair< std::string, std::pair< std::string, std::string > > > dpNameMap_
This file contains the base class for "pixel configuration data" management.
PixelLowVoltageMap(std::vector< std::vector< std::string > > &tableMat)
This is the documentation about PixelLowVoltageMap...
std::string dpNameIana(const PixelModuleName &module) const
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
This class implements..
std::map< unsigned int, std::set< unsigned int > > getFEDsAndChannels(PixelNameTranslation *translation) const
This is the documentation about PixelNameTranslation...
This class implements..
dbl *** dir
Definition: mlp_gen.cc:35
std::set< unsigned int > getFEDs(PixelNameTranslation *translation) const
std::string dpNameIdigi(const PixelModuleName &module) const
Definition: vlib.h:208
void writeASCII(std::string dir="") const override
This class keeps the possible non-standard status a ROC can have.