CMS 3D CMS Logo

PixelFEDConfig.h
Go to the documentation of this file.
1 #ifndef PixelFEDConfig_h
2 #define PixelFEDConfig_h
3 
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  PixelFEDConfig(std::vector<std::vector<std::string> > &tableMat);
34 
35  ~PixelFEDConfig() override;
36 
37  unsigned int getNFEDBoards() const;
38 
39  unsigned int getFEDNumber(unsigned int i) const;
40  unsigned int getCrate(unsigned int i) const;
41  unsigned int getVMEBaseAddress(unsigned int i) const;
42  unsigned int crateFromFEDNumber(unsigned int fednumber) const;
43  unsigned int VMEBaseAddressFromFEDNumber(unsigned int fednumber) const;
44 
45  unsigned int FEDNumberFromCrateAndVMEBaseAddress(unsigned int crate, unsigned int vmebaseaddress) 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  //friend std::ostream& operator<<(std::ostream& s, const PixelDetectorconfig& config);
61 
62  private:
63  //Already fixed from parallel vectors to vector of objects .... the object that contains the FED config is PixelFEDParameters
64 
65  // std::vector<unsigned int> fednumber_;
66  // std::vector<unsigned int> crate_;
67  // std::vector<unsigned int> vmebaseaddress_;
68 
69  std::vector<PixelFEDParameters> fedconfig_;
70  };
71 } // namespace pos
72 /* @} */
73 #endif
mps_fire.i
i
Definition: mps_fire.py:428
pos::PixelFEDConfig::getNFEDBoards
unsigned int getNFEDBoards() const
Definition: PixelFEDConfig.cc:198
pos
Definition: PixelAliasList.h:18
pos::PixelFEDConfig::crateFromFEDNumber
unsigned int crateFromFEDNumber(unsigned int fednumber) const
Definition: PixelFEDConfig.cc:215
pos::PixelFEDConfig::getCrate
unsigned int getCrate(unsigned int i) const
Definition: PixelFEDConfig.cc:205
pos::PixelFEDConfig::PixelFEDConfig
PixelFEDConfig(std::string filename)
Definition: PixelFEDConfig.cc:126
pos::PixelConfigBase
This file contains the base class for "pixel configuration data" management.
Definition: PixelConfigBase.h:32
pos::PixelFEDConfig::FEDNumberFromCrateAndVMEBaseAddress
unsigned int FEDNumberFromCrateAndVMEBaseAddress(unsigned int crate, unsigned int vmebaseaddress) const
Definition: PixelFEDConfig.cc:243
pos::PixelFEDConfig::VMEBaseAddressFromFEDNumber
unsigned int VMEBaseAddressFromFEDNumber(unsigned int fednumber) const
Definition: PixelFEDConfig.cc:229
pos::PixelFEDConfig::writeXMLTrailer
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelFEDConfig.cc:313
pos::PixelFEDConfig::fedconfig_
std::vector< PixelFEDParameters > fedconfig_
Definition: PixelFEDConfig.h:69
pos::PixelFEDConfig::getFEDNumber
unsigned int getFEDNumber(unsigned int i) const
Definition: PixelFEDConfig.cc:200
pos::PixelFEDConfig::writeXML
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
Definition: PixelFEDConfig.h:48
PixelConfigBase.h
This file contains the base class for "pixel configuration data" management.
PixelFEDParameters.h
This class implements..
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pos::PixelConfigKey
This class implements..
Definition: PixelConfigKey.h:20
pos::PixelFEDConfig::writeASCII
void writeASCII(std::string dir) const override
Definition: PixelFEDConfig.cc:178
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
pos::PixelFEDConfig
This is the documentation about PixelFEDConfig...
Definition: PixelFEDConfig.h:27
pos::PixelFEDConfig::~PixelFEDConfig
~PixelFEDConfig() override
Definition: PixelFEDConfig.cc:176
pos::PixelFEDConfig::getVMEBaseAddress
unsigned int getVMEBaseAddress(unsigned int i) const
Definition: PixelFEDConfig.cc:210
PointingDoubleMultiSkim_cfg.out2
out2
Definition: PointingDoubleMultiSkim_cfg.py:85
PointingDoubleMultiSkim_cfg.out1
out1
Definition: PointingDoubleMultiSkim_cfg.py:57
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
pos::PixelFEDConfig::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: PixelFEDConfig.cc:260
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23