Cat
CurrentMeasurement.h
Go to the documentation of this file.
1 // $Id: CurrentMeasurement.h,v 1.3 2006/03/16 17:08:21 fmachefe Exp $
2 #ifndef INCLUDE_CURRENTMEASUREMENT_H
3 #define INCLUDE_CURRENTMEASUREMENT_H 1
4 
5 // Include files
6 #include <iostream>
7 
8 #include "TTree.h"
9 
10 #include "Hierarchy.h"
11 #include "Computer.h"
12 #include "Processus.h"
13 
14 #include "NI6008.h"
15 class TRandom;
16 
23 class CurrentMeasurement : public Processus {
24 public:
27 
28  virtual ~CurrentMeasurement( ) {};
29 
30  virtual StatusCode initialize ( );
31  virtual StatusCode execute ( );
32  virtual StatusCode finalize ( );
33 
34  /* StatusCode addDevice( std::string dev){ */
35  /* m_device.push_back( dev ); */
36  /* info("Device associated."); */
37  /* return StatusCode::SUCCESS; */
38  /* }; */
39 
40  /* std::string device ( unsigned int dev ) { */
41  /* if (dev>m_device.size()-1){ */
42  /* warning("Device not defined."); */
43  /* return NULL; */
44  /* } */
45  /* return m_device[dev]; */
46  /* } */
47 
48  /* StatusCode clearDevice(){ */
49  /* m_device.clear(); */
50  /* return StatusCode::SUCCESS; */
51  /* } */
52 
54  return m_numberOfDevices;
55  }
56 
59  return StatusCode::SUCCESS;
60  }
61 
62  unsigned int frequency(){
63  return m_frequency;
64  }
65 
66 protected:
68  return new CurrentMeasurement (*this);
69  };
70 
71 private:
72  TRandom *m_rnd;
73  unsigned int m_frequency;
75  unsigned int m_numberOfDevices;
76  TTree *m_tree;
77  Int_t m_runNumber;
78  Int_t m_evtNumber;
79  Int_t m_timestamp[4];
80  Int_t m_duration[4];
81  time_t m_startTime;
82  double m_ai0[4];
83  double m_ai1[4];
84  double m_ai2[4];
85  double m_ai3[4];
86 };
87 
88 #endif // INCLUDE_CURRENTMEASUREMENTEXEC_H
89 
unsigned int m_frequency
CurrentMeasurement()
Standard constructor.
virtual StatusCode finalize()
unsigned int frequency()
virtual StatusCode execute()
unsigned int m_numberOfDevices
virtual StatusCode initialize()
Destructor.
StatusCode setFrequency(unsigned int frequency)
Definition: NI6008.h:26
CurrentMeasurement * clone()