CMS 3D CMS Logo

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
pos::PixelGlobalDelay25::writeXMLTrailer
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
pos::PixelGlobalDelay25::writeASCII
void writeASCII(std::string dir) const override
Definition: PixelGlobalDelay25.cc:164
pos::PixelGlobalDelay25
This class specifies which delay25 channels are delayed over the entire pixel detector and by how muc...
Definition: PixelGlobalDelay25.h:26
pos
Definition: PixelAliasList.h:18
pos::PixelConfigBase
This file contains the base class for "pixel configuration data" management.
Definition: PixelConfigBase.h:32
pos::PixelGlobalDelay25::getCyclicDelay
unsigned int getCyclicDelay(unsigned int offset=0) const
Definition: PixelGlobalDelay25.cc:114
pos::PixelGlobalDelay25::getTTCrxDelay
unsigned int getTTCrxDelay() const
Definition: PixelGlobalDelay25.cc:153
pos::PixelGlobalDelay25::delay_
unsigned int delay_
Definition: PixelGlobalDelay25.h:53
pos::PixelGlobalDelay25::~PixelGlobalDelay25
~PixelGlobalDelay25() override
Definition: PixelGlobalDelay25.cc:97
PixelConfigBase.h
This file contains the base class for "pixel configuration data" management.
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::PixelGlobalDelay25::setDelay
virtual void setDelay(unsigned int delay)
Definition: PixelGlobalDelay25.h:37
pos::PixelGlobalDelay25::PixelGlobalDelay25
PixelGlobalDelay25(std::string filename)
Definition: PixelGlobalDelay25.cc:73
pos::PixelGlobalDelay25::writeXML
void writeXML(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
PointingDoubleMultiSkim_cfg.out2
out2
Definition: PointingDoubleMultiSkim_cfg.py:85
PointingDoubleMultiSkim_cfg.out1
out1
Definition: PointingDoubleMultiSkim_cfg.py:57
pos::PixelGlobalDelay25::getDelay
unsigned int getDelay(unsigned int offset=0) const
Definition: PixelGlobalDelay25.cc:99
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
phase2TrackerDigitizer_cfi.delay
delay
Definition: phase2TrackerDigitizer_cfi.py:67
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
crabWrapper.key
key
Definition: crabWrapper.py:19
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
pos::PixelGlobalDelay25::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: PixelGlobalDelay25.cc:182
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23