HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoDccMap.h
Go to the documentation of this file.
1 #ifndef HARPODCCMAP_H
2 #define HARPODCCMAP_H
3 
5 //
6 // HarpoDccMap
7 //
8 // Generic class for HARPO Detectors
9 //
10 //#include "Math/SMatrix.h"
11 #include "TMatrixD.h"
12 //#include "TMatrixF.h"
13 #include "HarpoPedestal.h"
14 
15 #define NALL 304
16 #define NCHAN 288
17 //#define NADC 512
18 #define NADC 511
19 #define NNOISE 16
20 
21 //Decoded matrux data
22 //typedef ROOT::Math::SMatrix<Double_t,NCHAN,NADC> AdcMap;
23 typedef TMatrixD AdcMap;
24 // Noise
25 //typedef ROOT::Math::SMatrix<Double_t,NNOISE,NADC> AdcNoiseMap;
26 // with channels in Raw order
27 //typedef ROOT::Math::SMatrix<Double_t,NALL,NADC> AdcRawMap;
28 
29 class HarpoDccMap : public TObject {
30 
31  public:
32 
33  HarpoDccMap();
34  virtual ~HarpoDccMap(){}
35 
37  void SetEmptyCell(Double_t val);
38  //void SetEmptyCell(Short_t val);
39 
40  Double_t GetEmptyCell(){return fEmptyCell;}
41 
42  void SetPedestal(Double_t ped);
43  // void SetPedestal(UShort_t ped);
44  //void SetPedestal(Int_t i, Double_t ped);
45 
46  Double_t GetPedestal(Int_t i);
47 
48  void SetSigmaNoise(Double_t val);
49  //void SetSigmaNoise(Int_t i, Double_t val);
50 
51  Double_t GetSigmaNoise(Int_t i);
52 
53  virtual void print();
54 
56 // and skip other valuse which corespond to special cols 511
57 // all noise channels index ( 288 ..304) after decoding
58  void FillIf(HarpoDccMap *m, Int_t row, Int_t col, UShort_t word);
59 
61  Double_t GetData(Int_t i, Int_t j);
62  void SetData(Int_t i, Int_t j, Double_t val);
63  Double_t GetRawData(Int_t i, Int_t j);
64  void SetRawData(Int_t i, Int_t j, Double_t val);
65 
67  void SetPedestals(HarpoPedestal *obj) { fPedestal = obj; }
69 
70  private:
72 
74 
75  Double_t fEmptyCell;
76 
77  ClassDef(HarpoDccMap,2) //Event structure
78 };
79 
80 #endif
HarpoPedestal * GetPedestals()
Definition: HarpoDccMap.h:68
void SetPedestal(Double_t ped)
Definition: HarpoDccMap.cxx:45
Double_t GetRawData(Int_t i, Int_t j)
Definition: HarpoDccMap.cxx:75
HarpoPedestal * fPedestal
Definition: HarpoDccMap.h:73
void FillIf(HarpoDccMap *m, Int_t row, Int_t col, UShort_t word)
Fill map only if index in map range (0..nRaws-1) (0..nCols-1)
Double_t GetData(Int_t i, Int_t j)
Set/Get Data Cell.
Definition: HarpoDccMap.cxx:84
TMatrixD AdcMap
Definition: HarpoDccMap.h:23
void SetData(Int_t i, Int_t j, Double_t val)
virtual void print()
void SetSigmaNoise(Double_t val)
Definition: HarpoDccMap.cxx:58
Double_t GetPedestal(Int_t i)
Definition: HarpoDccMap.cxx:50
unpacked dcc data The class contains the data map for DCC or Feminos The data is stored as a 2D TMatr...
Definition: HarpoDccMap.h:29
AdcMap map
Definition: HarpoDccMap.h:71
Double_t GetEmptyCell()
Definition: HarpoDccMap.h:40
void SetPedestals(HarpoPedestal *obj)
Ste/Get Pedstal object.
Definition: HarpoDccMap.h:67
virtual ~HarpoDccMap()
Definition: HarpoDccMap.h:34
Double_t GetSigmaNoise(Int_t i)
Definition: HarpoDccMap.cxx:68
Double_t fEmptyCell
Not store pedestal object.
Definition: HarpoDccMap.h:75
void SetEmptyCell(Double_t val)
Empy Cell value , default -1.0.
Definition: HarpoDccMap.cxx:27
void SetRawData(Int_t i, Int_t j, Double_t val)
Definition: HarpoDccMap.cxx:94