HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoDccDecode.h
Go to the documentation of this file.
1 #ifndef HARPODCCDECODE_H
2 #define HARPODCCDECODE_H
3 
5 //
6 // HarpoDccDecode
7 //
8 // Map dcc FEM adresses to strip namber
9 //
10 
11 #include "TObject.h"
12 
13 #define NPLANES 2
14 #define NSTRIPS 304
15 
16 class HarpoDccDecode : public TObject {
17 
18 private:
19  Int_t Row2Strip[NPLANES][NSTRIPS]; // Rwa adress to strip number
20  Int_t Strip2Row[NPLANES][NSTRIPS]; // revers map strip to raw address
21 
22 public:
24  virtual ~HarpoDccDecode() { }
25  Int_t decode(Int_t raw, Int_t plane);
26  Int_t invdecode(Int_t strip, Int_t plane);
27  virtual void print(); // Print decode matrix
28 
29  ClassDef(HarpoDccDecode,1) //DCC FEM strips address Decode Map
30 };
31 
32 #endif
virtual ~HarpoDccDecode()
virtual void print()
Print decode matrices.
Int_t Row2Strip[NPLANES][NSTRIPS]
Int_t invdecode(Int_t strip, Int_t plane)
Strip Number to Raw address decoding routine.
A class which define DCC channel mapping.
Int_t decode(Int_t raw, Int_t plane)
Raw address to Strip Number decoding routine.
#define NSTRIPS
#define NPLANES
Int_t Strip2Row[NPLANES][NSTRIPS]