File indexing completed on 2024-04-06 11:58:13
0001 #ifndef PixelGlobalDelay25_h
0002 #define PixelGlobalDelay25_h
0003
0004
0005
0006
0007
0008
0009
0010 #include <iostream>
0011 #include <vector>
0012 #include <string>
0013 #include "CalibFormats/SiPixelObjects/interface/PixelConfigBase.h"
0014
0015 namespace pos {
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 class PixelGlobalDelay25 : public PixelConfigBase {
0027 public:
0028 PixelGlobalDelay25(std::string filename);
0029 PixelGlobalDelay25(std::vector<std::vector<std::string> > &tab);
0030 ~PixelGlobalDelay25() override;
0031
0032 unsigned int getDelay(unsigned int offset = 0) const;
0033 unsigned int getCyclicDelay(unsigned int offset = 0) const;
0034 unsigned int getTTCrxDelay(unsigned int offset) const;
0035 unsigned int getTTCrxDelay() const;
0036
0037 virtual void setDelay(unsigned int delay) { delay_ = delay; }
0038
0039 void writeASCII(std::string dir) const override;
0040
0041 void writeXMLHeader(pos::PixelConfigKey key,
0042 int version,
0043 std::string path,
0044 std::ofstream *out,
0045 std::ofstream *out1 = nullptr,
0046 std::ofstream *out2 = nullptr) const override;
0047 void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
0048 void writeXMLTrailer(std::ofstream *out,
0049 std::ofstream *out1 = nullptr,
0050 std::ofstream *out2 = nullptr) const override;
0051
0052 private:
0053 unsigned int delay_;
0054 };
0055 }
0056
0057 #endif