CMS 3D CMS Logo

PixelFECConfigInterface.h
Go to the documentation of this file.
1 #ifndef PIXELFECCONFIGINTERFACE_H
2 #define PIXELFECCONFIGINTERFACE_H
3 
12 #include <vector>
13 #include <string>
15 
16 
17 namespace pos{
25 
26  public:
27 
29 
31 
32  //Generate the commands needed to set the trim and mask bits that
33  //are specified by the vector allPixels.
34 
35  virtual void setMaskAndTrimAll(const PixelHdwAddress& theROC,
36  const std::vector<unsigned char>& allPixels,
37  const bool buffermode=false)=0;
38 
39  virtual void setDcolEnableAll(const PixelHdwAddress& theROC,
40  unsigned char maskAndTrim,
41  const bool buffermode=false )=0;
42 
43  //Generate the commands needed to set the trim and mask bits for all
44  //pixels to the common value specified by maskAndTrim.
45  // DO WE REALY NEED THIS?? Danek 15/4/08
46  //virtual void setMaskAndTrimCommon(const PixelHdwAddress& theROC,
47  // unsigned char maskAndTrim,)=0;
48 
49  //Generate the commands needed to set the DAC values for a ROC.
50  virtual void setAllDAC(const PixelHdwAddress& theROC,
51  const std::vector<unsigned int>& dacs,
52  const bool buffermode=false) = 0;
53 
54  virtual int roctrimload(int mfec, int fecchannel,
55  int hubaddress, int portaddress, int rocid,
56  const std::vector<unsigned char>& allPixels)=0;
57 
58  virtual int rocinit(int mfec, int fecchannel,
59  int hubaddress, int portaddress, int rocid,
60  int mask, int trim)=0;
61 
62  virtual int injectrstroc(const int mfec, const int bitstate)=0;
63  virtual int injecttrigger(const int mfec, const int bitstate)=0;
64  virtual int injectrsttbm(const int mfec, const int bitstate)=0;
65  virtual int injectrstcsr(const int mfec, const int bitstate)=0;
66  virtual int enablecallatency(const int mfec, const int bitstate)=0;
67  virtual int disableexttrigger(const int mfec, const int bitstate)=0;
68  virtual int loopnormtrigger(const int mfec, const int bitstate)=0;
69  virtual int loopcaltrigger(const int mfec, const int bitstate)=0;
70  virtual int callatencycount(const int mfec, const int latency)=0;
71  virtual int getversion(const int mfec, unsigned long *data)=0;
72  virtual int getversion(unsigned long *data)=0;
73 
74  virtual int progdac(int mfec, int fecchannel,
75  int hubaddress, int portaddress, int rocid,
76  int dacaddress, int dacvalue,
77  bool buffermode=false)=0;
78 
79  virtual int clrcal(int mfec, int fecchannel,
80  int hubaddress, int portaddress, int rocid,
81  bool buffermode=false)=0;
82 
83 
84  virtual int calpix(int mfec, int mfecchannel, int hubaddress,
85  int portaddress,
86  int rocid,
87  int coladdr, int rowaddress,
88  int caldata,
89  bool buffermode=false)=0;
90 
91  virtual int tbmcmd(int mfec, int fecchannel,
92  int tbmchannel, int hubaddress, int portaddress,
93  int offset, int databyte, int direction)=0;
94 
95 
96  virtual int dcolenable(int mfec, int mfecchannel,
97  int hubaddress, int portaddress, int rocid,
98  int dcol, int dcolstate,
99  bool buffermode=false)=0;
100 
101  //Need to give this a different name as otherwise ambiguous
102  virtual int progpix1(int mfec, int mfecchannel, int hubaddress, int portaddress,
103  int rocid,
104  int coladdr, int rowaddress,
105  int mask, int trim, bool buffermode=false)=0;
106 
107  virtual int progpix(int mfec, int mfecchannel, int hubaddress, int portaddress,
108  int rocid,
109  int coladdr, int rowaddress,
110  unsigned char databyte, bool buffermode=false)=0;
111 
112  virtual int qbufsend(void)=0;
113 
114  virtual void fecDebug(int newstate)=0;
115 
116  virtual int delay25Test(int mymfec,
117  int myfecchannel,
118  int myhubaddress,
119  int mytbmchannel,
120  int myportaddress,
121  int myrocid,
122  int mymask,
123  int mytrim,
124  int nTry,
125  int commands,
126  int& success0,
127  int& success1,
128  int& success2,
129  int& success3,
130  int& success4)=0;
131 
132 
133  virtual int rocreset(int mfec, int fecchannel,
134  int tbmchannel, int hubaddress)=0;
135 
136 
137  //virtual void setVCalDAC(std::string ROC, unsigned char dac)=0;
138 
139  //... maybe some more
140 
141  };
142 }
143 #endif
virtual int tbmcmd(int mfec, int fecchannel, int tbmchannel, int hubaddress, int portaddress, int offset, int databyte, int direction)=0
virtual int loopcaltrigger(const int mfec, const int bitstate)=0
virtual int clrcal(int mfec, int fecchannel, int hubaddress, int portaddress, int rocid, bool buffermode=false)=0
virtual void setMaskAndTrimAll(const PixelHdwAddress &theROC, const std::vector< unsigned char > &allPixels, const bool buffermode=false)=0
virtual int delay25Test(int mymfec, int myfecchannel, int myhubaddress, int mytbmchannel, int myportaddress, int myrocid, int mymask, int mytrim, int nTry, int commands, int &success0, int &success1, int &success2, int &success3, int &success4)=0
virtual int progdac(int mfec, int fecchannel, int hubaddress, int portaddress, int rocid, int dacaddress, int dacvalue, bool buffermode=false)=0
virtual int enablecallatency(const int mfec, const int bitstate)=0
virtual int injectrstcsr(const int mfec, const int bitstate)=0
virtual int calpix(int mfec, int mfecchannel, int hubaddress, int portaddress, int rocid, int coladdr, int rowaddress, int caldata, bool buffermode=false)=0
Store mfec, mfecchannel etc.
virtual int dcolenable(int mfec, int mfecchannel, int hubaddress, int portaddress, int rocid, int dcol, int dcolstate, bool buffermode=false)=0
virtual int rocreset(int mfec, int fecchannel, int tbmchannel, int hubaddress)=0
virtual int injecttrigger(const int mfec, const int bitstate)=0
virtual int roctrimload(int mfec, int fecchannel, int hubaddress, int portaddress, int rocid, const std::vector< unsigned char > &allPixels)=0
virtual int disableexttrigger(const int mfec, const int bitstate)=0
commands
min number of hits for refit layers to remove
Store mfec, mfecchannel etc.
virtual int injectrstroc(const int mfec, const int bitstate)=0
virtual void fecDebug(int newstate)=0
virtual int qbufsend(void)=0
virtual int progpix(int mfec, int mfecchannel, int hubaddress, int portaddress, int rocid, int coladdr, int rowaddress, unsigned char databyte, bool buffermode=false)=0
virtual int progpix1(int mfec, int mfecchannel, int hubaddress, int portaddress, int rocid, int coladdr, int rowaddress, int mask, int trim, bool buffermode=false)=0
virtual int getversion(const int mfec, unsigned long *data)=0
virtual int rocinit(int mfec, int fecchannel, int hubaddress, int portaddress, int rocid, int mask, int trim)=0
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
virtual void setDcolEnableAll(const PixelHdwAddress &theROC, unsigned char maskAndTrim, const bool buffermode=false)=0
virtual int callatencycount(const int mfec, const int latency)=0
latency
hardware algo
virtual void setAllDAC(const PixelHdwAddress &theROC, const std::vector< unsigned int > &dacs, const bool buffermode=false)=0
virtual int injectrsttbm(const int mfec, const int bitstate)=0
virtual int loopnormtrigger(const int mfec, const int bitstate)=0