Pixel.h 813 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#ifndef PIXEL_H
#define PIXEL_H 1

#include "TestBeamObject.h"

class Pixel : public TestBeamObject {
  
public:
  // Constructors and destructors
  Pixel(){}
  virtual ~Pixel(){}
12
13
14
15
16
17
18
  Pixel(std::string detectorID, int row, int col, int tot){
    m_detectorID = detectorID;
    m_row = row;
    m_column = col;
    m_adc = tot;
    m_timestamp = 0;
  }
19
20
21
22
23
24
25
26
  Pixel(std::string detectorID, int row, int col, int tot, long long int timestamp){
    m_detectorID = detectorID;
    m_row = row;
    m_column = col;
    m_adc = tot;
    m_timestamp = timestamp;
  }
  
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  // Member variables
  int m_row;
  int m_column;
  int m_adc;
  
  // ROOT I/O class definition - update version number when you change this class!
  ClassDef(Pixel,1)

};

// Vector type declaration
typedef std::vector<Pixel*> Pixels;

#endif // PIXEL_H