]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALTriggerSTURawStream.h
restore threshold getters after parameter dynamics update (fw v. >= A012)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerSTURawStream.h
CommitLineData
916f1e76 1#ifndef ALIEMCALTRIGGERSTURAWSTREAM_H
2#define ALIEMCALTRIGGERSTURAWSTREAM_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/*
7
8
9Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
10*/
11
648b8b91 12#ifndef ROOT_TObject
13# include "TObject.h"
14#endif
15//#include <map>
916f1e76 16
17class AliRawReader;
18
19class AliEMCALTriggerSTURawStream: public TObject
20{
21 public:
22 AliEMCALTriggerSTURawStream();
23 AliEMCALTriggerSTURawStream(AliRawReader* rawReader);
24 virtual ~AliEMCALTriggerSTURawStream();
25
26 virtual void Reset();
27 virtual Bool_t ReadPayLoad();
80e5a1ae 28 virtual void DumpPayLoad(const Option_t *option = "ALL") const;
916f1e76 29
30 virtual void GetADC(Int_t iTRU, UInt_t ADC[]);
31 virtual UInt_t GetL1JetThreshold() const {return fL1JetThreshold;}
32 virtual UInt_t GetL1GammaThreshold() const {return fL1GammaThreshold;}
33
34 virtual Int_t GetNL0GammaPatch() const {return fNL0GammaPatch;}
35 virtual Int_t GetNL1GammaPatch() const {return fNL1GammaPatch;}
36 virtual Int_t GetNL1JetPatch() const {return fNL1JetPatch;}
648b8b91 37 virtual Int_t GetRawData() const {return fGetRawData;}
916f1e76 38
de39a0ff 39 virtual Bool_t GetL0GammaPatch(const Int_t i, Int_t& x, Int_t& y) const;
916f1e76 40 virtual Bool_t GetL1GammaPatch(const Int_t i, Int_t& x, Int_t& y, Int_t& z) const;
41 virtual Bool_t GetL1JetPatch(const Int_t i, Int_t& x, Int_t& y) const;
648b8b91 42
43 virtual UInt_t GetV0A() const {return fV0A;}
44 virtual UInt_t GetV0C() const {return fV0C;}
45 virtual UInt_t GetGA() const {return fGA;}
46 virtual UInt_t GetGB() const {return fGB;}
47 virtual UInt_t GetGC() const {return fGC;}
48 virtual UInt_t GetJA() const {return fJA;}
49 virtual UInt_t GetJB() const {return fJB;}
50 virtual UInt_t GetJC() const {return fJC;}
51 virtual UInt_t GetRegionEnable() const {return fRegionEnable;}
52 virtual UInt_t GetFrameReceived() const {return fFrameReceived;}
53 virtual UInt_t GetFwVersion() const {return fFwVersion;}
54
916f1e76 55private:
56
57 AliEMCALTriggerSTURawStream(const AliEMCALTriggerSTURawStream& rhs);
58 AliEMCALTriggerSTURawStream& operator = (const AliEMCALTriggerSTURawStream& rhs);
59
222f9c45 60 UShort_t GetThreshold(Short_t A, Short_t B, Short_t C, UShort_t V0A, UShort_t V0C);
61
916f1e76 62 AliRawReader* fRawReader; // object for reading the raw data
63
a9ad4eb9 64 UInt_t fL1JetThreshold; // L1 Jet Threshold
65 UInt_t fL1GammaThreshold; // L1 Gamma Threshold
66 UShort_t fL0GammaPatchIndex[3100]; // L0 Gamma Patch Index
67 UShort_t fL1GammaPatchIndex[3100]; // L1 Gamma Patch Index
68 UShort_t fL1JetPatchIndex[200]; // L1 Jet Patch Index
69
70 Int_t fNL0GammaPatch; // N L0 Gamma Patch
71 Int_t fNL1JetPatch; // N L1 Jet Patch
72 Int_t fNL1GammaPatch; // N L1 Gamma Patch
73
74 Int_t fGetRawData; // Get Raw Data
75
76 UInt_t fADC[32][96]; // ADC
77
78 UInt_t fV0A; // V0A
79 UInt_t fV0C; // V0C
80 UInt_t fGA; // GA
81 UInt_t fGB; // GB
82 UInt_t fGC; // GC
83 UInt_t fJA; // JA
84 UInt_t fJB; // JB
85 UInt_t fJC; // JC
86 UInt_t fRegionEnable; // Region Enable
87 UInt_t fFrameReceived; // Frame Received
88 UInt_t fFwVersion; // Fw Version
648b8b91 89
916f1e76 90 ClassDef(AliEMCALTriggerSTURawStream,1) // class for reading EMCAL STU DDL raw data
91};
92
93#endif