]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSEmcCalibrationHistogramProducer.cxx
added TPC Krypton CF and associated component (Kenneth)
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSEmcCalibrationHistogramProducer.cxx
CommitLineData
6a76e30e 1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
4 * *
5 * Primary Authors: Oystein Djuvsland *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/**
17 * @file AliHLTPHOSClusterizer.cxx
18 * @author Oystein Djuvsland
19 * @date
20 * @brief Clusterizer for PHOS HLT
21 */
22
23// see header file for class documentation
24// or
25// refer to README to build package
26// or
27// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
28
29#include "AliHLTPHOSEmcCalibrationHistogramProducer.h"
30#include "AliHLTPHOSBase.h"
31#include "TH1F.h"
32#include "TH2I.h"
33#include "TH2F.h"
34
35AliHLTPHOSEmcCalibrationHistogramProducer::AliHLTPHOSEmcCalibrationHistogramProducer() :
36 AliHLTPHOSBase()
37 //fChannelEnergyHistogramPtr(0),
38 //fMeanEnergyHistogramPtr(0),
39 //fMaxSignalHistogramPtr(0),
40 //fNHitsHistogramPtr(0),
41 //fLiveChannelHistogramPtr(0),
42 // fBadChannelHistogramPtr(0)
43{
44 //See header file for documentation
45}
46
47AliHLTPHOSEmcCalibrationHistogramProducer::~AliHLTPHOSEmcCalibrationHistogramProducer()
48{
49 //See header file for documentation
50}
51
52void
53AliHLTPHOSEmcCalibrationHistogramProducer::Reset()
54{
55 //See header file for documentation
56}
57
58void
59AliHLTPHOSEmcCalibrationHistogramProducer::FillChannelEnergy(Int_t module, Int_t xCol, Int_t zRow, Int_t gain)
60{
61 //See header file for documentation
62}
63
64void
65AliHLTPHOSEmcCalibrationHistogramProducer::FillRCUEnergies(TH1F* rcuChannelEnergyPtr[][N_ZROWS_RCU][N_GAINS], Int_t module, Int_t rcuX, Int_t rcuZ)
66{
67 //See header file for documentation
68
69 Char_t histName[128];
70
71 for(UInt_t x = 0; x < N_XCOLUMNS_RCU; x++)
72 {
73 for(UInt_t z = 0; z < N_ZROWS_RCU; z++)
74 {
75 for(UInt_t gain = 0; gain < N_GAINS; gain++)
76 {
77 sprintf(histName, "mod%dcol%drow%dgain%d", module, x, z, gain);
78 *fChannelEnergyHistogramPtr[module][x+rcuX*N_XCOLUMNS_RCU][z+rcuZ*N_ZROWS_RCU][gain] = (TH1F*)rcuChannelEnergyPtr[x][z][gain]->Clone(histName);
79 }
80 }
81 }
82}
83
84void
85AliHLTPHOSEmcCalibrationHistogramProducer::FillBadChannels(TH2F* rcuBadChannelHistPtr[], Int_t module)
86{
87 //See header file for documentation
88 //TODO!
89}
90
91TH1F*
92AliHLTPHOSEmcCalibrationHistogramProducer::GetChannelEnergyHistogram(Int_t module, Int_t xCol, Int_t zRow, Int_t gain)
93{
94 //See header file for documentation
95 return fChannelEnergyHistogramPtr[module][xCol][zRow][gain];
96}
97
98TH2F*
99AliHLTPHOSEmcCalibrationHistogramProducer::GetMeanEnergyHistogram(Int_t module, Int_t gain)
100{
101 //See header file for documentation
102 for(UInt_t x = 0; x < N_XCOLUMNS_RCU; x++)
103 {
104 for(UInt_t z = 0; z < N_ZROWS_RCU; z++)
105 {
106 fMeanEnergyHistogramPtr->SetBinContent(x, z, fChannelEnergyHistogramPtr[module][x][z][gain]->GetMean());
107 }
108 }
109}
110
111TH2F*
112AliHLTPHOSEmcCalibrationHistogramProducer::GetMaxSignalHistogram(Int_t module, Int_t gain)
113{
114 //See header file for documentation
115 for(UInt_t x = 0; x < N_XCOLUMNS_RCU; x++)
116 {
117 for(UInt_t z = 0; z < N_ZROWS_RCU; z++)
118 {
119 fMaxSignalHistogramPtr->SetBinContent(x, z, fChannelEnergyHistogramPtr[module][x][z][gain]->GetMaximum());
120 }
121 }
122}
123
124TH2I*
125AliHLTPHOSEmcCalibrationHistogramProducer::GetNHitsHistogram(Int_t module, Int_t gain)
126{
127 //See header file for documentation
128 for(UInt_t x = 0; x < N_XCOLUMNS_RCU; x++)
129 {
130 for(UInt_t z = 0; z < N_ZROWS_RCU; z++)
131 {
132 // TODO!
133 }
134 }
135}
136
137TH2I*
138AliHLTPHOSEmcCalibrationHistogramProducer::GetLiveChannelHistogram(Int_t module, Int_t gain, Float_t minSignal = 30)
139{
140 //See header file for documentation
141 //TODO!
142}
143
144TH2I*
145AliHLTPHOSEmcCalibrationHistogramProducer::GetBadChannelHistogram(Int_t module, Int_t gain)
146{
147 //See header file for documentation
148 //TODO!
149}
150