SpidrSignal.h 835 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef SPIDRSIGNAL_H
#define SPIDRSIGNAL_H 1

class SpidrSignal : public TestBeamObject {
  
public:
  
  // Constructors and destructors
  SpidrSignal(){}
  SpidrSignal(string type, long long int timestamp){
    m_type = type;
    m_timestamp = timestamp;
  }
  virtual ~SpidrSignal(){}

  // Functions

  // Set properties
  void timestamp(long long int timestamp){m_timestamp = timestamp;}
  void type(string type){m_type = type;}

  // Retrieve properties
  long long int timestamp(){return m_timestamp;}
  string type(){return m_type;}
  
  // Member variables
  long long int m_timestamp;
  std::string m_type;
  
  // ROOT I/O class definition - update version number when you change this class!
  ClassDef(SpidrSignal,1)

};

// Vector type declaration
typedef std::vector<SpidrSignal*> SpidrSignals;

#endif // SPIDRSIGNAL_H