CMS 3D CMS Logo

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
pos::PixelTKFECConfig::getCrate
unsigned int getCrate(unsigned int i) const
Definition: PixelTKFECConfig.cc:174
pos::PixelTKFECConfig::getType
std::string getType(unsigned int i) const
Definition: PixelTKFECConfig.cc:179
mps_fire.i
i
Definition: mps_fire.py:428
pos::PixelTKFECConfig::getNTKFECBoards
unsigned int getNTKFECBoards() const
Definition: PixelTKFECConfig.cc:167
pos::PixelTKFECConfig::writeASCII
void writeASCII(std::string dir) const override
Definition: PixelTKFECConfig.cc:134
pos
Definition: PixelAliasList.h:18
pos::PixelTKFECConfig::writeXML
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
Definition: PixelTKFECConfig.h:48
pos::PixelConfigBase
This file contains the base class for "pixel configuration data" management.
Definition: PixelConfigBase.h:32
pos::PixelTKFECConfig::PixelTKFECConfig
PixelTKFECConfig(std::string filename)
Definition: PixelTKFECConfig.cc:87
pos::PixelTKFECConfig::~PixelTKFECConfig
~PixelTKFECConfig() override
Definition: PixelTKFECConfig.cc:132
pos::PixelTKFECConfig::crateFromTKFECID
unsigned int crateFromTKFECID(std::string TKFECID) const
Definition: PixelTKFECConfig.cc:189
pos::PixelTKFECConfig::writeXMLTrailer
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelTKFECConfig.cc:286
PixelConfigBase.h
This file contains the base class for "pixel configuration data" management.
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
pos::PixelTKFECConfig::writeXMLHeader
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelTKFECConfig.cc:229
pos::PixelConfigKey
This class implements..
Definition: PixelConfigKey.h:20
pos::PixelTKFECConfig::getAddress
unsigned int getAddress(unsigned int i) const
Definition: PixelTKFECConfig.cc:184
pos::PixelTKFECConfig::addressFromTKFECID
unsigned int addressFromTKFECID(std::string TKFECID) const
Definition: PixelTKFECConfig.cc:215
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
pos::PixelTKFECConfig::getTKFECID
std::string getTKFECID(unsigned int i) const
Definition: PixelTKFECConfig.cc:169
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pos::PixelTKFECConfig
This class specifies which TKFEC boards are used and how they are addressed.
Definition: PixelTKFECConfig.h:27
PointingDoubleMultiSkim_cfg.out2
out2
Definition: PointingDoubleMultiSkim_cfg.py:85
pos::PixelTKFECConfig::TKFECconfig_
std::vector< PixelTKFECParameters > TKFECconfig_
Definition: PixelTKFECConfig.h:61
PointingDoubleMultiSkim_cfg.out1
out1
Definition: PointingDoubleMultiSkim_cfg.py:57
PixelTKFECParameters.h
pos::PixelTKFECConfig::typeFromTKFECID
std::string typeFromTKFECID(std::string TKFECID) const
Definition: PixelTKFECConfig.cc:202
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
crabWrapper.key
key
Definition: crabWrapper.py:19
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23