CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
28  public:
29 
30  PixelGlobalDelay25(std::string filename); // create from file
31  PixelGlobalDelay25(std::vector<std::vector<std::string> > & tab); // create from DB
32  virtual ~PixelGlobalDelay25();
33 
34  unsigned int getDelay( unsigned int offset=0) const; // delays in steps of 0.499 ns (Delay25 step)
35  unsigned int getCyclicDelay(unsigned int offset=0) const; // delays in steps of 0.499 ns (Delay25 step)
36  unsigned int getTTCrxDelay( unsigned int offset ) const; // delays in steps of 0.10396 ns (TTCrx step)
37  unsigned int getTTCrxDelay( ) const; // delays in steps of 0.10396 ns (TTCrx step)
38  // but assumes that the default TTCrx delay is 0 ns
39  virtual void setDelay( unsigned int delay) {delay_ = delay ;}
40 
41  virtual void writeASCII(std::string dir) const;
42  // void writeXML( pos::PixelConfigKey key, int version, std::string path) const ;
43  virtual void writeXMLHeader( pos::PixelConfigKey key,
44  int version,
46  std::ofstream *out,
47  std::ofstream *out1 = NULL,
48  std::ofstream *out2 = NULL
49  ) const ;
50  virtual void writeXML( std::ofstream *out,
51  std::ofstream *out1 = NULL ,
52  std::ofstream *out2 = NULL ) const ;
53  virtual void writeXMLTrailer( std::ofstream *out,
54  std::ofstream *out1 = NULL,
55  std::ofstream *out2 = NULL
56  ) const ;
57 
58  private:
59  unsigned int delay_;
60 
61  };
62 }
63 /* @} */
64 #endif
This class specifies which delay25 channels are delayed over the entire pixel detector and by how muc...
This file contains the base class for &quot;pixel configuration data&quot; management.
unsigned int getCyclicDelay(unsigned int offset=0) const
#define NULL
Definition: scimark2.h:8
virtual void writeXML(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
This file contains the base class for &quot;pixel configuration data&quot; management.
tuple path
else: Piece not in the list, fine.
virtual void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
virtual void setDelay(unsigned int delay)
PixelGlobalDelay25(std::string filename)
virtual void writeASCII(std::string dir) const
This class implements..
tuple out
Definition: dbtoconf.py:99
unsigned int getDelay(unsigned int offset=0) const
tuple filename
Definition: lut2db_cfg.py:20
virtual void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
dbl *** dir
Definition: mlp_gen.cc:35
unsigned int getTTCrxDelay() const