CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PixelGlobalDelay25.h
Go to the documentation of this file.
1 #ifndef PixelGlobalDelay25_h
2 #define PixelGlobalDelay25_h
3 
10 #include <iostream>
11 #include <vector>
12 #include <string>
14 
15 namespace pos {
27  public:
28  PixelGlobalDelay25(std::string filename); // create from file
29  PixelGlobalDelay25(std::vector<std::vector<std::string> > &tab); // create from DB
30  ~PixelGlobalDelay25() override;
31 
32  unsigned int getDelay(unsigned int offset = 0) const; // delays in steps of 0.499 ns (Delay25 step)
33  unsigned int getCyclicDelay(unsigned int offset = 0) const; // delays in steps of 0.499 ns (Delay25 step)
34  unsigned int getTTCrxDelay(unsigned int offset) const; // delays in steps of 0.10396 ns (TTCrx step)
35  unsigned int getTTCrxDelay() const; // delays in steps of 0.10396 ns (TTCrx step)
36  // but assumes that the default TTCrx delay is 0 ns
37  virtual void setDelay(unsigned int delay) { delay_ = delay; }
38 
39  void writeASCII(std::string dir) const override;
40  // void writeXML( pos::PixelConfigKey key, int version, std::string path) const ;
42  int version,
44  std::ofstream *out,
45  std::ofstream *out1 = nullptr,
46  std::ofstream *out2 = nullptr) const override;
47  void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
48  void writeXMLTrailer(std::ofstream *out,
49  std::ofstream *out1 = nullptr,
50  std::ofstream *out2 = nullptr) const override;
51 
52  private:
53  unsigned int delay_;
54  };
55 } // namespace pos
56 /* @} */
57 #endif
This class specifies which delay25 channels are delayed over the entire pixel detector and by how muc...
void writeXML(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
This file contains the base class for &quot;pixel configuration data&quot; management.
unsigned int getCyclicDelay(unsigned int offset=0) const
This file contains the base class for &quot;pixel configuration data&quot; management.
virtual void setDelay(unsigned int delay)
PixelGlobalDelay25(std::string filename)
tuple key
prepare the HTCondor submission files and eventually submit them
void writeASCII(std::string dir) const override
This class implements..
unsigned int getDelay(unsigned int offset=0) const
tuple filename
Definition: lut2db_cfg.py:20
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
unsigned int getTTCrxDelay() const
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override