Cat
UsbFTInterfaceTest.h
Go to the documentation of this file.
1 // $Id: UsbFTInterfaceTest.h,v 1.3 2006/03/16 17:08:21 fmachefe Exp $
2 #ifndef INCLUDE_USBFTINTERFACETEST_H
3 #define INCLUDE_UsbFTINTERFACETEST_H 1
4 
5 // Include files
6 
7 #include "Processus.h"
8 
9 class TRandom;
10 class TH1D;
11 
18 class UsbFTInterfaceTest : public Processus {
19 public:
20  typedef unsigned long U32;
21  typedef unsigned short U16;
22  typedef unsigned char U8;
25 
26  virtual ~UsbFTInterfaceTest( ) {};
27 
28  virtual StatusCode initialize ( );
29  virtual StatusCode execute ( );
30  virtual StatusCode finalize ( );
31 
32  StatusCode setAddress( long int address ){
33  m_address=address;
34  return StatusCode::SUCCESS;
35  }
36 
37  StatusCode setParam( int size, double mean, double sigma ){
38  m_size=size;
39  m_mean=mean;
40  m_sigma=sigma;
41  return StatusCode::SUCCESS;
42  }
43 
44  double mean(){
45  return m_mean;
46  }
47 
48  double sigma(){
49  return m_mean;
50  }
51 
52 protected:
54  return new UsbFTInterfaceTest (*this);
55  }
56 
57 private:
58  TRandom *m_rnd;
59  TH1D *m_write, *m_read, *m_error;
60  unsigned int m_address, m_size;
61  double m_mean, m_sigma;
62 };
63 
64 #endif // INCLUDE_USBFTINTERFACETEST_H
65 
StatusCode setParam(int size, double mean, double sigma)
def size
Definition: cat.py:38
UsbFTInterfaceTest * clone()
virtual StatusCode initialize()
Destructor.
UsbFTInterfaceTest()
Standard constructor.
virtual StatusCode finalize()
virtual StatusCode execute()
StatusCode setAddress(long int address)