]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSRcuCalibrationProcessor.h
added missing header files for commit 29821
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRcuCalibrationProcessor.h
CommitLineData
6a76e30e 1// 1
2// 2
3// 3
4// 4
5// 5
6
7#ifndef ALIHLTPHOSRCUHISTOGRAMPRODUCER_H
8#define ALIHLTPHOSRCUHISTOGRAMPRODUCER_H
9
10/* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
11 * See cxx source for full Copyright notice */
12
13#include "AliHLTPHOSDefinitions.h"
14#include "TH1.h"
15#include "TH2D.h"
16#include "AliHLTPHOSRcuCellAccumulatedEnergyDataStruct.h"
17//#include "AliHLTPHOSBase.h"
18#include "AliHLTPHOSRcuProcessor.h"
19
20class TH1;
21class TH2D;
22class AliHLTPHOSRcuCellAccumulatedEnergyDataStruct;
2589c3a3 23//class AliHLTPHOSUtilities;
6a76e30e 24
25#define XBIN_LOW 0
26#define XBIN_UP 1023
27#define N_BINS 1023
28
29class AliHLTPHOSRcuCalibrationProcessor : public AliHLTPHOSBase
30//class AliHLTPHOSRcuCalibrationProcessor : public AliHLTPHOSRcuProcessor
31{
32 public:
33 // AliHLTPHOSRcuCalibrationProcessor();
34 AliHLTPHOSRcuCalibrationProcessor(AliHLTUInt8_t moduleID, AliHLTUInt8_t rcuX, AliHLTUInt8_t rcuZ);
35 virtual ~AliHLTPHOSRcuCalibrationProcessor();
36 const AliHLTPHOSRcuCellAccumulatedEnergyDataStruct& GetCellAccumulatedEnergies();
37 void Init();
6a76e30e 38 void SetHistoOutDir(char *outDir);
39 void FillEnergy(AliHLTUInt8_t x, AliHLTUInt8_t z, AliHLTUInt8_t gain, float energy);
40 void FillTime(AliHLTUInt8_t x, AliHLTUInt8_t z, AliHLTUInt8_t gain, float time);
6a76e30e 41 void FillLiveChannels(Int_t data[], int size, Int_t x, Int_t z, Int_t gain);
42 void FillLiveChannelHistograms();
6a76e30e 43 void Reset();
44 void WriteAllHistograms(char opt[] = "update");
45
46 protected:
47
48 private:
2589c3a3 49 AliHLTPHOSRcuCalibrationProcessor();
b444d727 50 AliHLTPHOSRcuCalibrationProcessor(const AliHLTPHOSRcuCalibrationProcessor & );
51 AliHLTPHOSRcuCalibrationProcessor & operator = (const AliHLTPHOSRcuCalibrationProcessor &);
6a76e30e 52 void SetDefaultHistoOutDir();
53 void ScanTimeString(char *timeString);
6a76e30e 54 char fHistoOutDir[512];
55
6a76e30e 56 TH1F *fEnergyHistogramPtrs[N_XCOLUMNS_RCU][N_ZROWS_RCU][N_GAINS]; /**<Array to store energy distribution per channel for one rcu*/
57 TH1F *fTimingHistogramPtrs[N_XCOLUMNS_RCU][N_ZROWS_RCU][N_GAINS]; /**<Array to store timing distribution per channel for one rcu*/
58 // TH1D *fDeadChannelMapHistogramPtrs[N_XCOLUMNS_RCU][N_ZROWS_RCU][N_GAINS];
59 TH2D *fDeadChannelMapHistogramPtrs[N_GAINS];
60
61 Float_t fEnergyAverageValues[N_XCOLUMNS_RCU][N_ZROWS_RCU][N_GAINS]; /**<Accumulated energy divided by hits*/
62 Double_t fAccumulatedValues[N_XCOLUMNS_RCU][N_ZROWS_RCU][N_GAINS]; /**<Array to store accumulated energy per channel for one rcu during run*/
63 Float_t fTimingAverageValues[N_XCOLUMNS_RCU][N_ZROWS_RCU][N_GAINS]; /**<Avereage TOF*/
64 AliHLTUInt32_t fHits[N_XCOLUMNS_RCU][N_ZROWS_RCU][N_GAINS]; //comment
65 AliHLTUInt32_t fDeadChannelMap[N_XCOLUMNS_RCU][N_ZROWS_RCU][N_GAINS]; //comment
66 Double_t fTmpChannelData[ALTRO_MAX_SAMPLES]; /**<temporary variable to store raw samples from a single altro channel*/
67 AliHLTPHOSRcuCellAccumulatedEnergyDataStruct fCellAccEnergy; //comment
68 AliHLTUInt8_t fModuleID; /**<ID of the module this component read data from (0-4)*/
69 AliHLTUInt8_t fRcuX; /**<X position of RCU the data from this Equippment comes from (0 or 1)*/
70 AliHLTUInt8_t fRcuZ; /**<Z position of RCU the data from this Equippment comes from (0 or 1)*/
2589c3a3 71
72 // AliHLTPHOSUtilities *fUtilitiesPtr;
73
6a76e30e 74};
75
76#endif