Remove dependencies of PID code on AliITStrackV2, remove obslete AliITStrackV2Pid...
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerQADataMakerRec.cxx
CommitLineData
ece56eb9 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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// $Id: AliMUONTrackerQADataMakerRec.cxx 35760 2009-10-21 21:45:42Z ivana $
17
18// --- MUON header files ---
19#include "AliMUONTrackerQADataMakerRec.h"
20
21#include "AliQAv1.h"
22#include "AliMUONConstants.h"
23#include "AliMUONDigitMaker.h"
6482f70b 24#include "AliMUONQAIndices.h"
ece56eb9 25#include "AliMUONQAMappingCheck.h"
26#include "AliMUONTrackerDataMaker.h"
27#include "AliMUONVCluster.h"
28#include "AliMUONVClusterStore.h"
29#include "AliMUONVDigit.h"
30#include "AliMUONVDigitStore.h"
31#include "AliMUONVTrackerData.h"
32#include "AliMUONTrack.h"
33#include "AliMUONTrackParam.h"
34#include "AliMUONESDInterface.h"
35#include "AliMUONCalibrationData.h"
36#include "AliMpBusPatch.h"
37#include "AliMpConstants.h"
38#include "AliMpDDLStore.h"
39#include "AliMpDEIterator.h"
40#include "AliMpDEManager.h"
41#include "AliMpDetElement.h"
42
43// --- AliRoot header files ---
44#include "AliCDBManager.h"
45#include "AliESDEvent.h"
46#include "AliESDMuonTrack.h"
47#include "AliLog.h"
48#include "AliRawReader.h"
49#include "AliCodeTimer.h"
50#include "AliMUONVDigit.h"
51
52// --- ROOT system ---
53#include <TH1F.h>
54#include <TH1I.h>
55#include <TH2F.h>
56#include <Riostream.h>
57#include <TMath.h>
58
59//-----------------------------------------------------------------------------
60/// \class AliMUONTrackerQADataMakerRec
61///
62/// MUON base class for quality assurance data (histo) maker
63///
64/// \author C. Finck, D. Stocco, L. Aphecetche
65
66/// \cond CLASSIMP
67ClassImp(AliMUONTrackerQADataMakerRec)
68/// \endcond
69
70//____________________________________________________________________________
71AliMUONTrackerQADataMakerRec::AliMUONTrackerQADataMakerRec(AliQADataMakerRec* master) :
72AliMUONVQADataMakerRec(master),
73fDigitStore(AliMUONVDigitStore::Create("AliMUONDigitStoreV1")),
74fDigitMaker(new AliMUONDigitMaker(kTRUE)),
75fClusterStore(0x0),
76fTrackerDataMaker(0x0),
77fMappingCheckRecPoints(0x0),
78fCalibrationData(new AliMUONCalibrationData(AliCDBManager::Instance()->GetRun()))
79{
80 /// ctor
81}
82
83//__________________________________________________________________
84AliMUONTrackerQADataMakerRec::~AliMUONTrackerQADataMakerRec()
85{
86 /// dtor
87 delete fDigitStore;
88 delete fDigitMaker;
89 delete fClusterStore;
90 delete fTrackerDataMaker;
91 delete fCalibrationData;
92 delete fMappingCheckRecPoints;
93}
94
95//____________________________________________________________________________
96void AliMUONTrackerQADataMakerRec::InsertTrackerData(Int_t specie, TObjArray** list,
97 TObject* object, Int_t indexNumber,
98 Bool_t replace)
99{
100 /// Insert an object to a given list
101
102 TIter next(list[specie]);
103 TObject* o;
104 TObject* old(0x0);
105 Bool_t alreadyThere(kFALSE);
106 while ( ( o = next() ) && !alreadyThere )
107 {
108 TString classname(o->ClassName());
109 if ( classname.Contains("TrackerData") )
110 {
111 alreadyThere = kTRUE;
112 old = o;
113 }
114 }
115 if ( (!alreadyThere && object) || (alreadyThere && replace) )
116 {
117 delete old;
118 AliDebug(AliQAv1::GetQADebugLevel(), Form("Adding %s to the list of qa objects",object->GetName()));
119 TNamed* named = static_cast<TNamed*>(object);
120 named->SetName(Form("%s_%s",AliRecoParam::GetEventSpecieName(specie),object->GetName()));
121 object->SetBit(AliQAv1::GetExpertBit());
122 list[specie]->AddAt(object,indexNumber);
123 }
124}
125
126//____________________________________________________________________________
127void AliMUONTrackerQADataMakerRec::EndOfDetectorCycleESDs(Int_t, TObjArray**)
128{
129 /// Normalize ESD histograms
130
6482f70b 131 if (!GetESDsData(AliMUONQAIndices::kESDnClustersPerTrack)) return;
ece56eb9 132
6482f70b 133 Double_t nTracks = GetESDsData(AliMUONQAIndices::kESDnClustersPerTrack)->GetEntries();
ece56eb9 134 if (nTracks <= 0) return;
135
6482f70b 136 TH1* hESDnClustersPerCh = GetESDsData(AliMUONQAIndices::kESDnClustersPerCh);
137 TH1* hESDnClustersPerDE = GetESDsData(AliMUONQAIndices::kESDnClustersPerDE);
138 TH1* hESDClusterChargePerChMean = GetESDsData(AliMUONQAIndices::kESDClusterChargePerChMean);
139 TH1* hESDClusterChargePerChSigma = GetESDsData(AliMUONQAIndices::kESDClusterChargePerChSigma);
140 TH1* hESDClusterSizePerChMean = GetESDsData(AliMUONQAIndices::kESDClusterSizePerChMean);
141 TH1* hESDClusterSizePerChSigma = GetESDsData(AliMUONQAIndices::kESDClusterSizePerChSigma);
142 TH1* hESDResidualXPerChMean = GetESDsData(AliMUONQAIndices::kESDResidualXPerChMean);
143 TH1* hESDResidualXPerChSigma = GetESDsData(AliMUONQAIndices::kESDResidualXPerChSigma);
144 TH1* hESDResidualYPerChMean = GetESDsData(AliMUONQAIndices::kESDResidualYPerChMean);
145 TH1* hESDResidualYPerChSigma = GetESDsData(AliMUONQAIndices::kESDResidualYPerChSigma);
146 TH1* hESDLocalChi2XPerChMean = GetESDsData(AliMUONQAIndices::kESDLocalChi2XPerChMean);
147 TH1* hESDLocalChi2YPerChMean = GetESDsData(AliMUONQAIndices::kESDLocalChi2YPerChMean);
148 TH1* hESDLocalChi2PerChMean = GetESDsData(AliMUONQAIndices::kESDLocalChi2PerChMean);
149 TH1* hESDClusterChargePerDE = GetESDsData(AliMUONQAIndices::kESDClusterChargePerDE);
150 TH1* hESDClusterSizePerDE = GetESDsData(AliMUONQAIndices::kESDClusterSizePerDE);
151 TH1* hESDResidualXPerDEMean = GetESDsData(AliMUONQAIndices::kESDResidualXPerDEMean);
152 TH1* hESDResidualXPerDESigma = GetESDsData(AliMUONQAIndices::kESDResidualXPerDESigma);
153 TH1* hESDResidualYPerDEMean = GetESDsData(AliMUONQAIndices::kESDResidualYPerDEMean);
154 TH1* hESDResidualYPerDESigma = GetESDsData(AliMUONQAIndices::kESDResidualYPerDESigma);
155 TH1* hESDLocalChi2XPerDEMean = GetESDsData(AliMUONQAIndices::kESDLocalChi2XPerDEMean);
156 TH1* hESDLocalChi2YPerDEMean = GetESDsData(AliMUONQAIndices::kESDLocalChi2YPerDEMean);
157 TH1* hESDLocalChi2PerDEMean = GetESDsData(AliMUONQAIndices::kESDLocalChi2PerDEMean);
158 TH1* hESDnTotClustersPerCh = GetESDsData(AliMUONQAIndices::kESDnTotClustersPerCh);
159 TH1* hESDnTotClustersPerDE = GetESDsData(AliMUONQAIndices::kESDnTotClustersPerDE);
160 TH1* hESDnTotFullClustersPerDE = GetESDsData(AliMUONQAIndices::kESDnTotFullClustersPerDE);
161 TH1* hESDSumClusterChargePerDE = GetESDsData(AliMUONQAIndices::kESDSumClusterChargePerDE);
162 TH1* hESDSumClusterSizePerDE = GetESDsData(AliMUONQAIndices::kESDSumClusterSizePerDE);
163 TH1* hESDSumResidualXPerDE = GetESDsData(AliMUONQAIndices::kESDSumResidualXPerDE);
164 TH1* hESDSumResidualYPerDE = GetESDsData(AliMUONQAIndices::kESDSumResidualYPerDE);
165 TH1* hESDSumResidualX2PerDE = GetESDsData(AliMUONQAIndices::kESDSumResidualX2PerDE);
166 TH1* hESDSumResidualY2PerDE = GetESDsData(AliMUONQAIndices::kESDSumResidualY2PerDE);
167 TH1* hESDSumLocalChi2XPerDE = GetESDsData(AliMUONQAIndices::kESDSumLocalChi2XPerDE);
168 TH1* hESDSumLocalChi2YPerDE = GetESDsData(AliMUONQAIndices::kESDSumLocalChi2YPerDE);
169 TH1* hESDSumLocalChi2PerDE = GetESDsData(AliMUONQAIndices::kESDSumLocalChi2PerDE);
ece56eb9 170
171 hESDnClustersPerCh->Reset();
172 hESDnClustersPerDE->Reset();
173 hESDnClustersPerCh->Add(hESDnTotClustersPerCh, 1./nTracks);
174 hESDnClustersPerDE->Add(hESDnTotClustersPerDE, 1./nTracks);
175
176 // loop over chambers
177 for (Int_t iCh = 0; iCh < AliMUONConstants::NTrackingCh(); iCh++) {
178
6482f70b 179 TH1* hESDClusterChargeInCh = GetESDsData(AliMUONQAIndices::kESDClusterChargeInCh+iCh);
ece56eb9 180 Double_t sigmaCharge = hESDClusterChargeInCh->GetRMS();
181 hESDClusterChargePerChMean->SetBinContent(iCh+1, hESDClusterChargeInCh->GetMean());
182 hESDClusterChargePerChMean->SetBinError(iCh+1, hESDClusterChargeInCh->GetMeanError());
183 hESDClusterChargePerChSigma->SetBinContent(iCh+1, sigmaCharge);
184 hESDClusterChargePerChSigma->SetBinError(iCh+1, hESDClusterChargeInCh->GetRMSError());
185
6482f70b 186 TH1* hESDClusterSizeInCh = GetESDsData(AliMUONQAIndices::kESDClusterSizeInCh+iCh);
ece56eb9 187 Double_t sigmaSize = hESDClusterSizeInCh->GetRMS();
188 hESDClusterSizePerChMean->SetBinContent(iCh+1, hESDClusterSizeInCh->GetMean());
189 hESDClusterSizePerChMean->SetBinError(iCh+1, hESDClusterSizeInCh->GetMeanError());
190 hESDClusterSizePerChSigma->SetBinContent(iCh+1, sigmaSize);
191 hESDClusterSizePerChSigma->SetBinError(iCh+1, hESDClusterSizeInCh->GetRMSError());
192
6482f70b 193 TH1* hESDResidualXInCh = GetESDsData(AliMUONQAIndices::kESDResidualXInCh+iCh);
ece56eb9 194 Double_t sigmaResidualX = hESDResidualXInCh->GetRMS();
195 hESDResidualXPerChMean->SetBinContent(iCh+1, hESDResidualXInCh->GetMean());
196 hESDResidualXPerChMean->SetBinError(iCh+1, hESDResidualXInCh->GetMeanError());
197 hESDResidualXPerChSigma->SetBinContent(iCh+1, sigmaResidualX);
198 hESDResidualXPerChSigma->SetBinError(iCh+1, hESDResidualXInCh->GetRMSError());
199
6482f70b 200 TH1* hESDResidualYInCh = GetESDsData(AliMUONQAIndices::kESDResidualYInCh+iCh);
ece56eb9 201 Double_t sigmaResidualY = hESDResidualYInCh->GetRMS();
202 hESDResidualYPerChMean->SetBinContent(iCh+1, hESDResidualYInCh->GetMean());
203 hESDResidualYPerChMean->SetBinError(iCh+1, hESDResidualYInCh->GetMeanError());
204 hESDResidualYPerChSigma->SetBinContent(iCh+1, sigmaResidualY);
205 hESDResidualYPerChSigma->SetBinError(iCh+1, hESDResidualYInCh->GetRMSError());
206
6482f70b 207 TH1* hESDLocalChi2XInCh = GetESDsData(AliMUONQAIndices::kESDLocalChi2XInCh+iCh);
ece56eb9 208 Double_t sigmaLocalChi2X = hESDLocalChi2XInCh->GetRMS();
209 hESDLocalChi2XPerChMean->SetBinContent(iCh+1, hESDLocalChi2XInCh->GetMean());
210 hESDLocalChi2XPerChMean->SetBinError(iCh+1, hESDLocalChi2XInCh->GetMeanError());
211
6482f70b 212 TH1* hESDLocalChi2YInCh = GetESDsData(AliMUONQAIndices::kESDLocalChi2YInCh+iCh);
ece56eb9 213 Double_t sigmaLocalChi2Y = hESDLocalChi2YInCh->GetRMS();
214 hESDLocalChi2YPerChMean->SetBinContent(iCh+1, hESDLocalChi2YInCh->GetMean());
215 hESDLocalChi2YPerChMean->SetBinError(iCh+1, hESDLocalChi2YInCh->GetMeanError());
216
6482f70b 217 TH1* hESDLocalChi2InCh = GetESDsData(AliMUONQAIndices::kESDLocalChi2InCh+iCh);
ece56eb9 218 Double_t sigmaLocalChi2 = hESDLocalChi2InCh->GetRMS();
219 hESDLocalChi2PerChMean->SetBinContent(iCh+1, hESDLocalChi2InCh->GetMean());
220 hESDLocalChi2PerChMean->SetBinError(iCh+1, hESDLocalChi2InCh->GetMeanError());
221
222 // loop over DE into chamber iCh
223 AliMpDEIterator it;
224 it.First(iCh);
225 while ( !it.IsDone()) {
226
227 Int_t iDE = it.CurrentDEId();
228
229 Double_t nClusters = hESDnTotClustersPerDE->GetBinContent(iDE+1);
230 if (nClusters > 1) {
231
232 hESDClusterChargePerDE->SetBinContent(iDE+1, hESDSumClusterChargePerDE->GetBinContent(iDE+1)/nClusters);
233 hESDClusterChargePerDE->SetBinError(iDE+1, sigmaCharge/TMath::Sqrt(nClusters));
234
235 Double_t meanResX = hESDSumResidualXPerDE->GetBinContent(iDE+1)/nClusters;
236 hESDResidualXPerDEMean->SetBinContent(iDE+1, meanResX);
237 hESDResidualXPerDEMean->SetBinError(iDE+1, sigmaResidualX/TMath::Sqrt(nClusters));
238 hESDResidualXPerDESigma->SetBinContent(iDE+1, TMath::Sqrt(hESDSumResidualX2PerDE->GetBinContent(iDE+1)/nClusters - meanResX*meanResX));
239 hESDResidualXPerDESigma->SetBinError(iDE+1, sigmaResidualX/TMath::Sqrt(2.*nClusters));
240
241 Double_t meanResY = hESDSumResidualYPerDE->GetBinContent(iDE+1)/nClusters;
242 hESDResidualYPerDEMean->SetBinContent(iDE+1, meanResY);
243 hESDResidualYPerDEMean->SetBinError(iDE+1, sigmaResidualY/TMath::Sqrt(nClusters));
244 hESDResidualYPerDESigma->SetBinContent(iDE+1, TMath::Sqrt(hESDSumResidualY2PerDE->GetBinContent(iDE+1)/nClusters - meanResY*meanResY));
245 hESDResidualYPerDESigma->SetBinError(iDE+1, sigmaResidualY/TMath::Sqrt(2.*nClusters));
246
247 hESDLocalChi2XPerDEMean->SetBinContent(iDE+1, hESDSumLocalChi2XPerDE->GetBinContent(iDE+1)/nClusters);
248 hESDLocalChi2XPerDEMean->SetBinError(iDE+1, sigmaLocalChi2X/TMath::Sqrt(nClusters));
249
250 hESDLocalChi2YPerDEMean->SetBinContent(iDE+1, hESDSumLocalChi2YPerDE->GetBinContent(iDE+1)/nClusters);
251 hESDLocalChi2YPerDEMean->SetBinError(iDE+1, sigmaLocalChi2Y/TMath::Sqrt(nClusters));
252
253 hESDLocalChi2PerDEMean->SetBinContent(iDE+1, hESDSumLocalChi2PerDE->GetBinContent(iDE+1)/nClusters);
254 hESDLocalChi2PerDEMean->SetBinError(iDE+1, sigmaLocalChi2/TMath::Sqrt(nClusters));
255
256 } else {
257
258 hESDClusterChargePerDE->SetBinContent(iDE+1, hESDSumClusterChargePerDE->GetBinContent(iDE+1));
259 hESDClusterChargePerDE->SetBinError(iDE+1, hESDClusterChargeInCh->GetXaxis()->GetXmax());
260
261 hESDResidualXPerDEMean->SetBinContent(iDE+1, hESDSumResidualXPerDE->GetBinContent(iDE+1));
262 hESDResidualXPerDEMean->SetBinError(iDE+1, hESDResidualXInCh->GetXaxis()->GetXmax());
263 hESDResidualXPerDESigma->SetBinContent(iDE+1, 0.);
264 hESDResidualXPerDESigma->SetBinError(iDE+1, hESDResidualXInCh->GetXaxis()->GetXmax());
265
266 hESDResidualYPerDEMean->SetBinContent(iDE+1, hESDSumResidualYPerDE->GetBinContent(iDE+1));
267 hESDResidualYPerDEMean->SetBinError(iDE+1, hESDResidualYInCh->GetXaxis()->GetXmax());
268 hESDResidualYPerDESigma->SetBinContent(iDE+1, 0.);
269 hESDResidualYPerDESigma->SetBinError(iDE+1, hESDResidualYInCh->GetXaxis()->GetXmax());
270
271 hESDLocalChi2XPerDEMean->SetBinContent(iDE+1, hESDSumLocalChi2XPerDE->GetBinContent(iDE+1));
272 hESDLocalChi2XPerDEMean->SetBinError(iDE+1, hESDLocalChi2XInCh->GetXaxis()->GetXmax());
273
274 hESDLocalChi2YPerDEMean->SetBinContent(iDE+1, hESDSumLocalChi2YPerDE->GetBinContent(iDE+1));
275 hESDLocalChi2YPerDEMean->SetBinError(iDE+1, hESDLocalChi2YInCh->GetXaxis()->GetXmax());
276
277 hESDLocalChi2PerDEMean->SetBinContent(iDE+1, hESDSumLocalChi2PerDE->GetBinContent(iDE+1));
278 hESDLocalChi2PerDEMean->SetBinError(iDE+1, hESDLocalChi2InCh->GetXaxis()->GetXmax());
279
280 }
281
282 Double_t nFullClusters = hESDnTotFullClustersPerDE->GetBinContent(iDE+1);
283 if (nFullClusters > 1) {
284
285 hESDClusterSizePerDE->SetBinContent(iDE+1, hESDSumClusterSizePerDE->GetBinContent(iDE+1)/nFullClusters);
286 hESDClusterSizePerDE->SetBinError(iDE+1, sigmaSize/TMath::Sqrt(nFullClusters));
287
288 } else {
289
290 hESDClusterSizePerDE->SetBinContent(iDE+1, hESDSumClusterSizePerDE->GetBinContent(iDE+1));
291 hESDClusterSizePerDE->SetBinError(iDE+1, hESDClusterSizeInCh->GetXaxis()->GetXmax());
292
293 }
294
295 it.Next();
296 }
297
298 }
299
300}
301
302//____________________________________________________________________________
303void AliMUONTrackerQADataMakerRec::EndOfDetectorCycleRecPoints(Int_t specie, TObjArray** list)
304{
305 /// Normalize RecPoints histograms
306
6482f70b 307 if (!GetRecPointsData(AliMUONQAIndices::kTrackerClusterChargePerChMean)) return;
ece56eb9 308
6482f70b 309 TH1* hTrackerClusterChargePerChMean = GetRecPointsData(AliMUONQAIndices::kTrackerClusterChargePerChMean);
310 TH1* hTrackerClusterChargePerChSigma = GetRecPointsData(AliMUONQAIndices::kTrackerClusterChargePerChSigma);
311 TH1* hTrackerClusterMultiplicityPerChMean = GetRecPointsData(AliMUONQAIndices::kTrackerClusterMultiplicityPerChMean);
312 TH1* hTrackerClusterMultiplicityPerChSigma = GetRecPointsData(AliMUONQAIndices::kTrackerClusterMultiplicityPerChSigma);
313 TH1* hTrackerClusterChargePerDEMean = GetRecPointsData(AliMUONQAIndices::kTrackerClusterChargePerDEMean);
314 TH1* hTrackerClusterMultiplicityPerDEMean = GetRecPointsData(AliMUONQAIndices::kTrackerClusterMultiplicityPerDEMean);
ece56eb9 315
316 // loop over chambers
317 for (Int_t iCh = 0; iCh < AliMUONConstants::NTrackingCh(); iCh++) {
318
6482f70b 319 TH1* hTrackerClusterChargePerChamber = GetRecPointsData(AliMUONQAIndices::kTrackerClusterChargePerChamber+iCh);
ece56eb9 320 Double_t sigmaCharge = hTrackerClusterChargePerChamber->GetRMS();
321 hTrackerClusterChargePerChMean->SetBinContent(iCh+1, hTrackerClusterChargePerChamber->GetMean());
322 hTrackerClusterChargePerChMean->SetBinError(iCh+1, hTrackerClusterChargePerChamber->GetMeanError());
323 hTrackerClusterChargePerChSigma->SetBinContent(iCh+1, sigmaCharge);
324 hTrackerClusterChargePerChSigma->SetBinError(iCh+1, hTrackerClusterChargePerChamber->GetRMSError());
325
6482f70b 326 TH1* hTrackerClusterMultiplicityPerChamber = GetRecPointsData(AliMUONQAIndices::kTrackerClusterMultiplicityPerChamber+iCh);
ece56eb9 327 Double_t sigmaSize = hTrackerClusterMultiplicityPerChamber->GetRMS();
328 hTrackerClusterMultiplicityPerChMean->SetBinContent(iCh+1, hTrackerClusterMultiplicityPerChamber->GetMean());
329 hTrackerClusterMultiplicityPerChMean->SetBinError(iCh+1, hTrackerClusterMultiplicityPerChamber->GetMeanError());
330 hTrackerClusterMultiplicityPerChSigma->SetBinContent(iCh+1, sigmaSize);
331 hTrackerClusterMultiplicityPerChSigma->SetBinError(iCh+1, hTrackerClusterMultiplicityPerChamber->GetRMSError());
332
333 // loop over DE into chamber iCh
334 AliMpDEIterator it;
335 it.First(iCh);
336 while ( !it.IsDone()) {
337
338 Int_t iDE = it.CurrentDEId();
339
6482f70b 340 TH1* hTrackerClusterChargePerDE = GetRecPointsData(AliMUONQAIndices::kTrackerClusterChargePerDE+iDE);
ece56eb9 341 hTrackerClusterChargePerDEMean->SetBinContent(iDE+1, hTrackerClusterChargePerDE->GetMean());
342 Double_t nClusters = hTrackerClusterChargePerDE->GetEntries();
343 if (nClusters > 1) hTrackerClusterChargePerDEMean->SetBinError(iDE+1, sigmaCharge/TMath::Sqrt(nClusters));
344 else hTrackerClusterChargePerDEMean->SetBinError(iDE+1, hTrackerClusterChargePerChamber->GetXaxis()->GetXmax());
345
6482f70b 346 TH1* hTrackerClusterMultiplicityPerDE = GetRecPointsData(AliMUONQAIndices::kTrackerClusterMultiplicityPerDE+iDE);
ece56eb9 347 hTrackerClusterMultiplicityPerDEMean->SetBinContent(iDE+1, hTrackerClusterMultiplicityPerDE->GetMean());
348 nClusters = hTrackerClusterMultiplicityPerDE->GetEntries();
349 if (nClusters > 1) hTrackerClusterMultiplicityPerDEMean->SetBinError(iDE+1, sigmaSize/TMath::Sqrt(nClusters));
350 else hTrackerClusterMultiplicityPerDEMean->SetBinError(iDE+1, hTrackerClusterMultiplicityPerChamber->GetXaxis()->GetXmax());
351
352 it.Next();
353 }
354 }
355
6482f70b 356 if ( fMappingCheckRecPoints ) InsertTrackerData(specie,list,fMappingCheckRecPoints->CreateData("RecPoints"),AliMUONQAIndices::kTrackerRecPoints,kTRUE);
ece56eb9 357}
358
359
360//____________________________________________________________________________
361void AliMUONTrackerQADataMakerRec::EndOfDetectorCycleRaws(Int_t specie, TObjArray** list)
362{
363 /// create Raws histograms in Raws subdir
364
6482f70b 365 if ( !GetRawsData(AliMUONQAIndices::kTrackerBusPatchOccupancy) ) return;
ece56eb9 366
367 if ( fTrackerDataMaker )
368 {
6482f70b 369 InsertTrackerData(specie,list,fTrackerDataMaker->Data(),AliMUONQAIndices::kTrackerData);
ece56eb9 370
6482f70b 371 TH1* hbp = GetRawsData(AliMUONQAIndices::kTrackerBusPatchOccupancy);
ece56eb9 372 hbp->Reset();
373 TIter nextBP(AliMpDDLStore::Instance()->CreateBusPatchIterator());
374 AliMpBusPatch* bp(0x0);
375 AliMUONVTrackerData* data = fTrackerDataMaker->Data();
376 Int_t occDim = 2;
377
378 while ( ( bp = static_cast<AliMpBusPatch*>(nextBP())) )
379 {
380 Int_t busPatchId = bp->GetId();
381 Int_t bin = hbp->FindBin(busPatchId);
382 hbp->SetBinContent(bin,data->BusPatch(busPatchId,occDim)*100.0); // occupancy, in percent
383 }
384 }
385}
386
387//____________________________________________________________________________
388void AliMUONTrackerQADataMakerRec::InitRaws()
389{
390 /// create Raws histograms in Raws subdir
391
392 AliCodeTimerAuto("",0);
393
394 const Bool_t expert = kTRUE ;
395 const Bool_t saveCorr = kTRUE ;
396 const Bool_t image = kTRUE ;
397
398 Int_t bpmin(999999);
399 Int_t bpmax(0);
400
401 TIter next(AliMpDDLStore::Instance()->CreateBusPatchIterator());
402 AliMpBusPatch* bp(0x0);
403 while ( ( bp = static_cast<AliMpBusPatch*>(next())) )
404 {
405 bpmin = TMath::Min(bpmin,bp->GetId());
406 bpmax = TMath::Max(bpmax,bp->GetId());
407 }
408
409 Double_t xmin = bpmin-0.5;
410 Double_t xmax = bpmax+0.5;
411 Int_t nbins = bpmax-bpmin+1;
412
413 TH1* hbp = new TH1F("hTrackerBusPatchOccupancy","Occupancy of bus patches",nbins,xmin,xmax);
414
415
416 TH1* hbpnpads = new TH1F("hTrackerBusPatchNofPads","Number of pads per bus patch",nbins,xmin,xmax);
417
418 TH1* hbpnmanus = new TH1F("hTrackerBusPatchNofManus","Number of manus per bus patch",nbins,xmin,xmax);
419
6482f70b 420 Add2RawsList(hbp,AliMUONQAIndices::kTrackerBusPatchOccupancy, !expert, image, !saveCorr);
421 Add2RawsList(hbpnpads,AliMUONQAIndices::kTrackerBusPatchNofPads, expert, !image, !saveCorr);
422 Add2RawsList(hbpnmanus,AliMUONQAIndices::kTrackerBusPatchNofManus, expert, !image, !saveCorr);
ece56eb9 423
424 const Bool_t histogram(kFALSE);
425
426 if(!fTrackerDataMaker)
427 {
428 fTrackerDataMaker = new AliMUONTrackerDataMaker(GetRecoParam(),
429 AliCDBManager::Instance()->GetRun(),
430 0x0,
431 "",
432 "NOGAIN",
433 histogram,
434 0.0,0.0);
435 }
436
437 fTrackerDataMaker->Data()->DisableChannelLevel(); // to save up disk space, we only store starting at the manu level
438
439 fTrackerDataMaker->SetRunning(kTRUE);
440
441 next.Reset();
442
443 AliMUONVStore* config = fCalibrationData->Config();
444
445 TH1* hbpconfig(0x0);
446
447 if (config)
448 {
449 hbpconfig = new TH1F("hTrackerBusPatchConfig","Configuration of bus patches",nbins,xmin,xmax);
6482f70b 450 Add2RawsList(hbpconfig,AliMUONQAIndices::kTrackerBusPatchConfig, expert, !image, !saveCorr);
ece56eb9 451 }
452 else
453 {
454 AliWarning("Tracker configuration not found. Will not be able to cut on low occupancies");
455 }
456
457 while ( ( bp = static_cast<AliMpBusPatch*>(next())) )
458 {
459 Int_t n(0);
460 Bool_t inConfig(kTRUE);
461
462 for ( Int_t imanu = 0; imanu < bp->GetNofManus(); ++imanu )
463 {
464 Int_t manuId = bp->GetManuId(imanu);
465 AliMpDetElement* de = AliMpDDLStore::Instance()->GetDetElement(bp->GetDEId());
466 n += de->NofChannelsInManu(manuId);
467 if ( config && !config->FindObject(de->GetId(),manuId)) inConfig=kFALSE;
468 }
469 hbpnpads->Fill(bp->GetId(),n*1.0);
470 hbpnmanus->Fill(bp->GetId(),bp->GetNofManus()*1.0);
471 if ( hbpconfig && inConfig )
472 {
473 hbpconfig->Fill(bp->GetId());
474 }
475 }
476}
477
478//__________________________________________________________________
479void AliMUONTrackerQADataMakerRec::InitDigits()
480{
481 /// Initialized Digits spectra
482 const Bool_t expert = kTRUE ;
483 const Bool_t image = kTRUE ;
484
485 TH1I* h0 = new TH1I("hDigitsDetElem", "Detection element distribution in Digits;Detection element Id;Counts", 1400, 100, 1500);
486 Add2DigitsList(h0, 0, !expert, image);
487
488 TH1I* h1 = new TH1I("hDigitsADC", "ADC distribution in Digits;ACD value;Counts", 4096, 0, 4095);
489 Add2DigitsList(h1, 1, !expert, image);
490}
491
492//____________________________________________________________________________
493void AliMUONTrackerQADataMakerRec::InitRecPoints()
494{
495 /// create Reconstructed Points histograms in RecPoints subdir for the
496 /// MUON tracker subsystem.
497 const Bool_t expert = kTRUE ;
498 const Bool_t image = kTRUE ;
499
500 AliCodeTimerAuto("",0);
501
502 TH1I *h1I;
503 TH1F *h1F;
504 TH2F *h2F;
505
506 // histograms per chamber
507 Int_t nCh = AliMpConstants::NofTrackingChambers();
508 for ( Int_t i = 0; i < nCh; ++i )
509 {
510 h1I = new TH1I(Form("hTrackerClusterMultiplicityForChamber%d",i+1), Form("cluster size distribution in chamber %d;size (n_{pads};Counts)",i+1), 100,0,100);
6482f70b 511 Add2RecPointsList(h1I,AliMUONQAIndices::kTrackerClusterMultiplicityPerChamber+i, expert, !image);
ece56eb9 512
513 h1I = new TH1I(Form("hTrackerClusterChargeForChamber%d",i+1), Form("cluster charge distribution in chamber %d;charge (fC);Counts",i+1), 100,0,1000);
6482f70b 514 Add2RecPointsList(h1I,AliMUONQAIndices::kTrackerClusterChargePerChamber+i, expert, !image);
ece56eb9 515
516 Float_t rMax = AliMUONConstants::Rmax(i/2);
517 h2F = new TH2F(Form("hTrackerClusterHitMapForChamber%d",i+1), Form("cluster position distribution in chamber %d;X (cm);Y (cm)",i+1), 100, -rMax, rMax, 100, -rMax, rMax);
6482f70b 518 Add2RecPointsList(h2F, AliMUONQAIndices::kTrackerClusterHitMapPerChamber+i, expert, !image);
ece56eb9 519 }
520
521 // summary histograms per chamber
522 h1I = new TH1I("hTrackerNumberOfClustersPerChamber", "Number of clusters per chamber;chamber ID;n_{clusters}", nCh,-0.5,nCh-0.5);
6482f70b 523 Add2RecPointsList(h1I,AliMUONQAIndices::kTrackerNumberOfClustersPerChamber, !expert, image);
ece56eb9 524
525 h1F = new TH1F("hTrackerClusterMultiplicityPerChMean", "cluster mean size per chamber;chamber ID;<size> (n_{pads})", nCh,-0.5,nCh-0.5);
526 h1F->SetOption("P");
527 h1F->SetMarkerStyle(kFullDotMedium);
528 h1F->SetMarkerColor(kRed);
6482f70b 529 Add2RecPointsList(h1F, AliMUONQAIndices::kTrackerClusterMultiplicityPerChMean, !expert, image);
ece56eb9 530
531 h1F = new TH1F("hTrackerClusterMultiplicityPerChSigma", "cluster size dispersion per chamber;chamber ID;#sigma_{size} (n_{pads})", nCh,-0.5,nCh-0.5);
532 h1F->SetOption("P");
533 h1F->SetMarkerStyle(kFullDotMedium);
534 h1F->SetMarkerColor(kRed);
6482f70b 535 Add2RecPointsList(h1F, AliMUONQAIndices::kTrackerClusterMultiplicityPerChSigma, !expert, image);
ece56eb9 536
537 h1F = new TH1F("hTrackerClusterChargePerChMean", "cluster mean charge per chamber;chamber ID;<charge> (fC)", nCh,-0.5,nCh-0.5);
538 h1F->SetOption("P");
539 h1F->SetMarkerStyle(kFullDotMedium);
540 h1F->SetMarkerColor(kRed);
6482f70b 541 Add2RecPointsList(h1F, AliMUONQAIndices::kTrackerClusterChargePerChMean, !expert, image);
ece56eb9 542
543 h1F = new TH1F("hTrackerClusterChargePerChSigma", "cluster charge dispersion per chamber;chamber ID;#sigma_{charge} (fC)", nCh,-0.5,nCh-0.5);
544 h1F->SetOption("P");
545 h1F->SetMarkerStyle(kFullDotMedium);
546 h1F->SetMarkerColor(kRed);
6482f70b 547 Add2RecPointsList(h1F, AliMUONQAIndices::kTrackerClusterChargePerChSigma, !expert, image);
ece56eb9 548
549 // histograms per DE
550 Int_t ndes(0);
551 AliMpDEIterator it;
552 it.First();
553 while ( !it.IsDone())
554 {
555 Int_t detElemId = it.CurrentDEId();
556
557 if ( AliMpDEManager::GetStationType(detElemId) != AliMp::kStationTrigger )
558 {
559 ndes = TMath::Max(ndes,detElemId);
560
561 h1I = new TH1I(Form("hTrackerClusterMultiplicityForDE%04d",detElemId), Form("cluster size distribution in detection element %d;size (n_{pads})",detElemId), 100,0,100);
6482f70b 562 Add2RecPointsList(h1I,AliMUONQAIndices::kTrackerClusterMultiplicityPerDE+detElemId, expert, !image);
ece56eb9 563
564 h1I = new TH1I(Form("hTrackerClusterChargeForDE%04d",detElemId), Form("cluster charge distribution in detection element %d;charge (fC)",detElemId), 100,0,1000);
6482f70b 565 Add2RecPointsList(h1I,AliMUONQAIndices::kTrackerClusterChargePerDE+detElemId, expert, !image);
ece56eb9 566 }
567
568 it.Next();
569 }
570
571 // summary histograms per DE
572 h1I = new TH1I("hTrackerNumberOfClustersPerDE", "Number of clusters per detection element;DetElem ID;n_{clusters}", ndes+1,-0.5,ndes+0.5);
6482f70b 573 Add2RecPointsList(h1I, AliMUONQAIndices::kTrackerNumberOfClustersPerDE, !expert, image);
ece56eb9 574
575 h1F = new TH1F("hTrackerClusterMultiplicityPerDEMean", "cluster mean size per DE;DetElem ID;<size> (n_{pads})", ndes+1,-0.5,ndes+0.5);
576 h1F->SetOption("P");
577 h1F->SetMarkerStyle(kFullDotMedium);
578 h1F->SetMarkerColor(kRed);
6482f70b 579 Add2RecPointsList(h1F, AliMUONQAIndices::kTrackerClusterMultiplicityPerDEMean, !expert, image);
ece56eb9 580
581 h1F = new TH1F("hTrackerClusterChargePerDEMean", "cluster mean charge per DE;DetElem ID;<charge> (fC)", ndes+1,-0.5,ndes+0.5);
582 h1F->SetOption("P");
583 h1F->SetMarkerStyle(kFullDotMedium);
584 h1F->SetMarkerColor(kRed);
6482f70b 585 Add2RecPointsList(h1F, AliMUONQAIndices::kTrackerClusterChargePerDEMean, !expert, image);
ece56eb9 586
587 if (!fMappingCheckRecPoints) fMappingCheckRecPoints = new AliMUONQAMappingCheck(RunNumber());
588}
589
590//____________________________________________________________________________
591void AliMUONTrackerQADataMakerRec::InitESDs()
592{
593 ///create ESDs histograms in ESDs subdir
594
595 const Bool_t expert = kTRUE ;
596 const Bool_t image = kTRUE ;
597
598 Int_t nCh = AliMUONConstants::NTrackingCh();
599 Int_t nDE = 1100;
600
601 // track info
602 TH1F* hESDnTracks = new TH1F("hESDnTracks", "number of tracks;n_{tracks}", 20, 0., 20.);
6482f70b 603 Add2ESDsList(hESDnTracks, AliMUONQAIndices::kESDnTracks, !expert, image);
ece56eb9 604
605 TH1F* hESDMatchTrig = new TH1F("hESDMatchTrig", "number of tracks matched with trigger;n_{tracks}", 20, 0., 20.);
6482f70b 606 Add2ESDsList(hESDMatchTrig, AliMUONQAIndices::kESDMatchTrig, !expert, image);
ece56eb9 607
608 TH1F* hESDMomentum = new TH1F("hESDMomentum", "momentum distribution;p (GeV/c)", 300, 0., 300);
6482f70b 609 Add2ESDsList(hESDMomentum, AliMUONQAIndices::kESDMomentum, !expert, image);
ece56eb9 610
611 TH1F* hESDPt = new TH1F("hESDPt", "transverse momentum distribution;p_{t} (GeV/c)", 200, 0., 50);
6482f70b 612 Add2ESDsList(hESDPt, AliMUONQAIndices::kESDPt, !expert, image);
ece56eb9 613
614 TH1F* hESDRapidity = new TH1F("hESDRapidity", "rapidity distribution;rapidity", 200, -4.5, -2.);
6482f70b 615 Add2ESDsList(hESDRapidity, AliMUONQAIndices::kESDRapidity, !expert, image);
ece56eb9 616
617 TH1F* hESDChi2 = new TH1F("hESDChi2", "normalized #chi^{2} distribution;#chi^{2} / ndf", 500, 0., 50.);
6482f70b 618 Add2ESDsList(hESDChi2, AliMUONQAIndices::kESDChi2, !expert, image);
ece56eb9 619
620 TH1F* hESDProbChi2 = new TH1F("hESDProbChi2", "distribution of probability of #chi^{2};prob(#chi^{2})", 100, 0., 1.);
6482f70b 621 Add2ESDsList(hESDProbChi2, AliMUONQAIndices::kESDProbChi2, !expert, image);
ece56eb9 622
623 TH1F* hESDThetaX = new TH1F("hESDThetaX", "#theta_{X} distribution;#theta_{X} (degree)", 360, -180., 180);
6482f70b 624 Add2ESDsList(hESDThetaX, AliMUONQAIndices::kESDThetaX, !expert, image);
ece56eb9 625
626 TH1F* hESDThetaY = new TH1F("hESDThetaY", "#theta_{Y} distribution;#theta_{Y} (degree)", 360, -180., 180);
6482f70b 627 Add2ESDsList(hESDThetaY, AliMUONQAIndices::kESDThetaY, !expert, image);
ece56eb9 628
629 // cluster info
630 for (Int_t i = 0; i < nCh; i++) {
631 Float_t rMax = AliMUONConstants::Rmax(i/2);
632 TH2F* hESDClusterHitMap = new TH2F(Form("hESDClusterHitMap%d",i+1), Form("cluster position distribution in chamber %d;X (cm);Y (cm)",i+1),
633 100, -rMax, rMax, 100, -rMax, rMax);
6482f70b 634 Add2ESDsList(hESDClusterHitMap, AliMUONQAIndices::kESDClusterHitMap+i, expert, !image);
ece56eb9 635 }
636
637 TH1F* hESDnClustersPerTrack = new TH1F("hESDnClustersPerTrack", "number of associated clusters per track;n_{clusters}", 20, 0., 20.);
6482f70b 638 Add2ESDsList(hESDnClustersPerTrack, AliMUONQAIndices::kESDnClustersPerTrack, !expert, image);
ece56eb9 639
640 TH1F* hESDnClustersPerCh = new TH1F("hESDnClustersPerCh", "averaged number of clusters per chamber per track;chamber ID;<n_{clusters}>", nCh, -0.5, nCh-0.5);
641 hESDnClustersPerCh->SetFillColor(kRed);
6482f70b 642 Add2ESDsList(hESDnClustersPerCh, AliMUONQAIndices::kESDnClustersPerCh, !expert, image);
ece56eb9 643
644 TH1F* hESDnClustersPerDE = new TH1F("hESDnClustersPerDE", "averaged number of clusters per DE per track;DetElem ID;<n_{clusters}>", nDE+1, -0.5, nDE+0.5);
645 hESDnClustersPerDE->SetFillColor(kRed);
6482f70b 646 Add2ESDsList(hESDnClustersPerDE, AliMUONQAIndices::kESDnClustersPerDE, !expert, image);
ece56eb9 647
648 for (Int_t i = 0; i < nCh; i++) {
649 TH1F* hESDClusterChargeInCh = new TH1F(Form("hESDClusterChargeInCh%d",i+1), Form("cluster charge distribution in chamber %d;charge (fC)",i+1), 100, 0., 1000.);
6482f70b 650 Add2ESDsList(hESDClusterChargeInCh, AliMUONQAIndices::kESDClusterChargeInCh+i, expert, !image);
ece56eb9 651 }
652
653 TH1F* hESDClusterChargePerChMean = new TH1F("hESDClusterChargePerChMean", "cluster mean charge per chamber;chamber ID;<charge> (fC)", nCh, -0.5, nCh-0.5);
654 hESDClusterChargePerChMean->SetOption("P");
655 hESDClusterChargePerChMean->SetMarkerStyle(kFullDotMedium);
656 hESDClusterChargePerChMean->SetMarkerColor(kRed);
6482f70b 657 Add2ESDsList(hESDClusterChargePerChMean, AliMUONQAIndices::kESDClusterChargePerChMean, !expert, image);
ece56eb9 658
659 TH1F* hESDClusterChargePerChSigma = new TH1F("hESDClusterChargePerChSigma", "cluster charge dispersion per chamber;chamber ID;#sigma_{charge} (fC)", nCh, -0.5, nCh-0.5);
660 hESDClusterChargePerChSigma->SetOption("P");
661 hESDClusterChargePerChSigma->SetMarkerStyle(kFullDotMedium);
662 hESDClusterChargePerChSigma->SetMarkerColor(kRed);
6482f70b 663 Add2ESDsList(hESDClusterChargePerChSigma, AliMUONQAIndices::kESDClusterChargePerChSigma, !expert, image);
ece56eb9 664
665 TH1F* hESDClusterChargePerDE = new TH1F("hESDClusterChargePerDE", "cluster mean charge per DE;DetElem ID;<charge> (fC)", nDE+1, -0.5, nDE+0.5);
666 hESDClusterChargePerDE->SetOption("P");
667 hESDClusterChargePerDE->SetMarkerStyle(kFullDotMedium);
668 hESDClusterChargePerDE->SetMarkerColor(kRed);
6482f70b 669 Add2ESDsList(hESDClusterChargePerDE, AliMUONQAIndices::kESDClusterChargePerDE, !expert, image);
ece56eb9 670
671 for (Int_t i = 0; i < nCh; i++) {
672 TH1F* hESDClusterSizeInCh = new TH1F(Form("hESDClusterSizeInCh%d",i+1), Form("cluster size distribution in chamber %d;size (n_{pads})",i+1), 200, 0., 200.);
6482f70b 673 Add2ESDsList(hESDClusterSizeInCh, AliMUONQAIndices::kESDClusterSizeInCh+i, expert, !image);
ece56eb9 674 }
675
676 TH1F* hESDClusterSizePerChMean = new TH1F("hESDClusterSizePerChMean", "cluster mean size per chamber;chamber ID;<size> (n_{pads})", nCh, -0.5, nCh-0.5);
677 hESDClusterSizePerChMean->SetOption("P");
678 hESDClusterSizePerChMean->SetMarkerStyle(kFullDotMedium);
679 hESDClusterSizePerChMean->SetMarkerColor(kRed);
6482f70b 680 Add2ESDsList(hESDClusterSizePerChMean, AliMUONQAIndices::kESDClusterSizePerChMean, !expert, image);
ece56eb9 681
682 TH1F* hESDClusterSizePerChSigma = new TH1F("hESDClusterSizePerChSigma", "cluster size dispersion per chamber;chamber ID;#sigma_{size} (n_{pads})", nCh, -0.5, nCh-0.5);
683 hESDClusterSizePerChSigma->SetOption("P");
684 hESDClusterSizePerChSigma->SetMarkerStyle(kFullDotMedium);
685 hESDClusterSizePerChSigma->SetMarkerColor(kRed);
6482f70b 686 Add2ESDsList(hESDClusterSizePerChSigma, AliMUONQAIndices::kESDClusterSizePerChSigma, !expert, image);
ece56eb9 687
688 TH1F* hESDClusterSizePerDE = new TH1F("hESDClusterSizePerDE", "cluster mean size per DE;DetElem ID;<size> (n_{pads})", nDE+1, -0.5, nDE+0.5);
689 hESDClusterSizePerDE->SetOption("P");
690 hESDClusterSizePerDE->SetMarkerStyle(kFullDotMedium);
691 hESDClusterSizePerDE->SetMarkerColor(kRed);
6482f70b 692 Add2ESDsList(hESDClusterSizePerDE, AliMUONQAIndices::kESDClusterSizePerDE, !expert, image);
ece56eb9 693
694 // cluster - track info
695 for (Int_t i = 0; i < nCh; i++) {
696 TH1F* hESDResidualXInCh = new TH1F(Form("hESDResidualXInCh%d",i+1), Form("cluster-track residual-X distribution in chamber %d;#Delta_{X} (cm)",i+1), 1000, -5., 5.);
6482f70b 697 Add2ESDsList(hESDResidualXInCh, AliMUONQAIndices::kESDResidualXInCh+i, expert, !image);
ece56eb9 698
699 TH1F* hESDResidualYInCh = new TH1F(Form("hESDResidualYInCh%d",i+1), Form("cluster-track residual-Y distribution in chamber %d;#Delta_{Y} (cm)",i+1), 1000, -1., 1.);
6482f70b 700 Add2ESDsList(hESDResidualYInCh, AliMUONQAIndices::kESDResidualYInCh+i, expert, !image);
ece56eb9 701
702 TH1F* hESDLocalChi2XInCh = new TH1F(Form("hESDLocalChi2XInCh%d",i+1), Form("local chi2-X distribution in chamber %d;local #chi^{2}_{X}",i+1), 1000, 0., 25);
6482f70b 703 Add2ESDsList(hESDLocalChi2XInCh, AliMUONQAIndices::kESDLocalChi2XInCh+i, expert, !image);
ece56eb9 704
705 TH1F* hESDLocalChi2YInCh = new TH1F(Form("hESDLocalChi2YInCh%d",i+1), Form("local chi2-Y distribution in chamber %d;local #chi^{2}_{Y}",i+1), 1000, 0., 25);
6482f70b 706 Add2ESDsList(hESDLocalChi2YInCh, AliMUONQAIndices::kESDLocalChi2YInCh+i, expert, !image);
ece56eb9 707
708 TH1F* hESDLocalChi2InCh = new TH1F(Form("hESDLocalChi2InCh%d",i+1), Form("local chi2 (~0.5*(#chi^{2}_{X}+#chi^{2}_{Y})) distribution in chamber %d;local #chi^{2}",i+1), 1000, 0., 25);
6482f70b 709 Add2ESDsList(hESDLocalChi2InCh, AliMUONQAIndices::kESDLocalChi2InCh+i, expert, !image);
ece56eb9 710 }
711
712 TH1F* hESDResidualXPerChMean = new TH1F("hESDResidualXPerChMean", "cluster-track residual-X per Ch: mean;chamber ID;<#Delta_{X}> (cm)", nCh, -0.5, nCh-0.5);
713 hESDResidualXPerChMean->SetOption("P");
714 hESDResidualXPerChMean->SetMarkerStyle(kFullDotMedium);
715 hESDResidualXPerChMean->SetMarkerColor(kRed);
6482f70b 716 Add2ESDsList(hESDResidualXPerChMean, AliMUONQAIndices::kESDResidualXPerChMean, !expert, image);
ece56eb9 717
718 TH1F* hESDResidualYPerChMean = new TH1F("hESDResidualYPerChMean", "cluster-track residual-Y per Ch: mean;chamber ID;<#Delta_{Y}> (cm)", nCh, -0.5, nCh-0.5);
719 hESDResidualYPerChMean->SetOption("P");
720 hESDResidualYPerChMean->SetMarkerStyle(kFullDotMedium);
721 hESDResidualYPerChMean->SetMarkerColor(kRed);
6482f70b 722 Add2ESDsList(hESDResidualYPerChMean, AliMUONQAIndices::kESDResidualYPerChMean, !expert, image);
ece56eb9 723
724 TH1F* hESDResidualXPerChSigma = new TH1F("hESDResidualXPerChSigma", "cluster-track residual-X per Ch: sigma;chamber ID;#sigma_{X} (cm)", nCh, -0.5, nCh-0.5);
725 hESDResidualXPerChSigma->SetOption("P");
726 hESDResidualXPerChSigma->SetMarkerStyle(kFullDotMedium);
727 hESDResidualXPerChSigma->SetMarkerColor(kRed);
6482f70b 728 Add2ESDsList(hESDResidualXPerChSigma, AliMUONQAIndices::kESDResidualXPerChSigma, !expert, image);
ece56eb9 729
730 TH1F* hESDResidualYPerChSigma = new TH1F("hESDResidualYPerChSigma", "cluster-track residual-Y per Ch: sigma;chamber ID;#sigma_{Y} (cm)", nCh, -0.5, nCh-0.5);
731 hESDResidualYPerChSigma->SetOption("P");
732 hESDResidualYPerChSigma->SetMarkerStyle(kFullDotMedium);
733 hESDResidualYPerChSigma->SetMarkerColor(kRed);
6482f70b 734 Add2ESDsList(hESDResidualYPerChSigma, AliMUONQAIndices::kESDResidualYPerChSigma, !expert, image);
ece56eb9 735
736 TH1F* hESDLocalChi2XPerChMean = new TH1F("hESDLocalChi2XPerCh", "local chi2-X per Ch: mean;chamber ID;<local #chi^{2}_{X}>", nCh, -0.5, nCh-0.5);
737 hESDLocalChi2XPerChMean->SetOption("P");
738 hESDLocalChi2XPerChMean->SetMarkerStyle(kFullDotMedium);
739 hESDLocalChi2XPerChMean->SetMarkerColor(kRed);
6482f70b 740 Add2ESDsList(hESDLocalChi2XPerChMean, AliMUONQAIndices::kESDLocalChi2XPerChMean, !expert, image);
ece56eb9 741
742 TH1F* hESDLocalChi2YPerChMean = new TH1F("hESDLocalChi2YPerCh", "local chi2-Y per Ch: mean;chamber ID;<local #chi^{2}_{Y}>", nCh, -0.5, nCh-0.5);
743 hESDLocalChi2YPerChMean->SetOption("P");
744 hESDLocalChi2YPerChMean->SetMarkerStyle(kFullDotMedium);
745 hESDLocalChi2YPerChMean->SetMarkerColor(kRed);
6482f70b 746 Add2ESDsList(hESDLocalChi2YPerChMean, AliMUONQAIndices::kESDLocalChi2YPerChMean, !expert, image);
ece56eb9 747
748 TH1F* hESDLocalChi2PerChMean = new TH1F("hESDLocalChi2PerCh", "local chi2 (~0.5*(#chi^{2}_{X}+#chi^{2}_{Y})) per Ch: mean;chamber ID;<local #chi^{2}>", nCh, -0.5, nCh-0.5);
749 hESDLocalChi2PerChMean->SetOption("P");
750 hESDLocalChi2PerChMean->SetMarkerStyle(kFullDotMedium);
751 hESDLocalChi2PerChMean->SetMarkerColor(kRed);
6482f70b 752 Add2ESDsList(hESDLocalChi2PerChMean, AliMUONQAIndices::kESDLocalChi2PerChMean, !expert, image);
ece56eb9 753
754 TH1F* hESDResidualXPerDEMean = new TH1F("hESDResidualXPerDEMean", "cluster-track residual-X per DE: mean;DetElem ID;<#Delta_{X}> (cm)", nDE+1, -0.5, nDE+0.5);
755 hESDResidualXPerDEMean->SetOption("P");
756 hESDResidualXPerDEMean->SetMarkerStyle(kFullDotMedium);
757 hESDResidualXPerDEMean->SetMarkerColor(kRed);
6482f70b 758 Add2ESDsList(hESDResidualXPerDEMean, AliMUONQAIndices::kESDResidualXPerDEMean, !expert, image);
ece56eb9 759
760 TH1F* hESDResidualYPerDEMean = new TH1F("hESDResidualYPerDEMean", "cluster-track residual-Y per DE: mean;DetElem ID;<#Delta_{Y}> (cm)", nDE+1, -0.5, nDE+0.5);
761 hESDResidualYPerDEMean->SetOption("P");
762 hESDResidualYPerDEMean->SetMarkerStyle(kFullDotMedium);
763 hESDResidualYPerDEMean->SetMarkerColor(kRed);
6482f70b 764 Add2ESDsList(hESDResidualYPerDEMean, AliMUONQAIndices::kESDResidualYPerDEMean, !expert, image);
ece56eb9 765
766 TH1F* hESDResidualXPerDESigma = new TH1F("hESDResidualXPerDESigma", "cluster-track residual-X per DE: sigma;DetElem ID;#sigma_{X} (cm)", nDE+1, -0.5, nDE+0.5);
767 hESDResidualXPerDESigma->SetOption("P");
768 hESDResidualXPerDESigma->SetMarkerStyle(kFullDotMedium);
769 hESDResidualXPerDESigma->SetMarkerColor(kRed);
6482f70b 770 Add2ESDsList(hESDResidualXPerDESigma, AliMUONQAIndices::kESDResidualXPerDESigma, !expert, image);
ece56eb9 771
772 TH1F* hESDResidualYPerDESigma = new TH1F("hESDResidualYPerDESigma", "cluster-track residual-Y per DE: sigma;DetElem ID;#sigma_{Y} (cm)", nDE+1, -0.5, nDE+0.5);
773 hESDResidualYPerDESigma->SetOption("P");
774 hESDResidualYPerDESigma->SetMarkerStyle(kFullDotMedium);
775 hESDResidualYPerDESigma->SetMarkerColor(kRed);
6482f70b 776 Add2ESDsList(hESDResidualYPerDESigma, AliMUONQAIndices::kESDResidualYPerDESigma, !expert, image);
ece56eb9 777
778 TH1F* hESDLocalChi2XPerDEMean = new TH1F("hESDLocalChi2XPerDE", "local chi2-X per DE: mean;DetElem ID;<local #chi^{2}_{X}>", nDE+1, -0.5, nDE+0.5);
779 hESDLocalChi2XPerDEMean->SetOption("P");
780 hESDLocalChi2XPerDEMean->SetMarkerStyle(kFullDotMedium);
781 hESDLocalChi2XPerDEMean->SetMarkerColor(kRed);
6482f70b 782 Add2ESDsList(hESDLocalChi2XPerDEMean, AliMUONQAIndices::kESDLocalChi2XPerDEMean, !expert, image);
ece56eb9 783
784 TH1F* hESDLocalChi2YPerDEMean = new TH1F("hESDLocalChi2YPerDE", "local chi2-Y per DE: mean;DetElem ID;<local #chi^{2}_{Y}>", nDE+1, -0.5, nDE+0.5);
785 hESDLocalChi2YPerDEMean->SetOption("P");
786 hESDLocalChi2YPerDEMean->SetMarkerStyle(kFullDotMedium);
787 hESDLocalChi2YPerDEMean->SetMarkerColor(kRed);
6482f70b 788 Add2ESDsList(hESDLocalChi2YPerDEMean, AliMUONQAIndices::kESDLocalChi2YPerDEMean, !expert, image);
ece56eb9 789
790 TH1F* hESDLocalChi2PerDEMean = new TH1F("hESDLocalChi2PerDE", "local chi2 (~0.5*(#chi^{2}_{X}+#chi^{2}_{Y})) per DE: mean;DetElem ID;<local #chi^{2}>", nDE+1, -0.5, nDE+0.5);
791 hESDLocalChi2PerDEMean->SetOption("P");
792 hESDLocalChi2PerDEMean->SetMarkerStyle(kFullDotMedium);
793 hESDLocalChi2PerDEMean->SetMarkerColor(kRed);
6482f70b 794 Add2ESDsList(hESDLocalChi2PerDEMean, AliMUONQAIndices::kESDLocalChi2PerDEMean, !expert, image);
ece56eb9 795
796 // intermediate histograms
797 TH1F* hESDnTotClustersPerCh = new TH1F("hESDnTotClustersPerCh", "total number of associated clusters per chamber;chamber ID;#Sigma(n_{clusters})", nCh, -0.5, nCh-0.5);
6482f70b 798 Add2ESDsList(hESDnTotClustersPerCh, AliMUONQAIndices::kESDnTotClustersPerCh, expert, !image);
ece56eb9 799 TH1F* hESDnTotClustersPerDE = new TH1F("hESDnTotClustersPerDE", "total number of associated clusters per DE;DetElem ID;#Sigma(n_{clusters})", nDE+1, -0.5, nDE+0.5);
6482f70b 800 Add2ESDsList(hESDnTotClustersPerDE, AliMUONQAIndices::kESDnTotClustersPerDE, expert, !image);
ece56eb9 801 TH1F* hESDnTotFullClustersPerDE = new TH1F("hESDnTotFullClustersPerDE", "total number of associated clusters containing pad info per DE;DetElem ID;#Sigma(n_{full clusters})", nDE+1, -0.5, nDE+0.5);
6482f70b 802 Add2ESDsList(hESDnTotFullClustersPerDE, AliMUONQAIndices::kESDnTotFullClustersPerDE, expert, !image);
ece56eb9 803 TH1F* hESDSumClusterChargePerDE = new TH1F("hESDSumClusterChargePerDE", "sum of cluster charge per DE;DetElem ID;#Sigma(charge) (fC)", nDE+1, -0.5, nDE+0.5);
6482f70b 804 Add2ESDsList(hESDSumClusterChargePerDE, AliMUONQAIndices::kESDSumClusterChargePerDE, expert, !image);
ece56eb9 805 TH1F* hESDSumClusterSizePerDE = new TH1F("hESDSumClusterSizePerDE", "sum of cluster size per DE;DetElem ID;#Sigma(size) (n_{pads})", nDE+1, -0.5, nDE+0.5);
6482f70b 806 Add2ESDsList(hESDSumClusterSizePerDE, AliMUONQAIndices::kESDSumClusterSizePerDE, expert, !image);
ece56eb9 807 TH1F* hESDSumResidualXPerDE = new TH1F("hESDSumResidualXPerDE", "sum of cluster-track residual-X per DE;DetElem ID;#Sigma(#Delta_{X}) (cm)", nDE+1, -0.5, nDE+0.5);
6482f70b 808 Add2ESDsList(hESDSumResidualXPerDE, AliMUONQAIndices::kESDSumResidualXPerDE, expert, !image);
ece56eb9 809 TH1F* hESDSumResidualYPerDE = new TH1F("hESDSumResidualYPerDE", "sum of cluster-track residual-Y per DE;DetElem ID;#Sigma(#Delta_{Y}) (cm)", nDE+1, -0.5, nDE+0.5);
6482f70b 810 Add2ESDsList(hESDSumResidualYPerDE, AliMUONQAIndices::kESDSumResidualYPerDE, expert, !image);
ece56eb9 811 TH1F* hESDSumResidualX2PerDE = new TH1F("hESDSumResidualX2PerDE", "sum of cluster-track residual-X**2 per DE;DetElem ID;#Sigma(#Delta_{X}^{2}) (cm^{2})", nDE+1, -0.5, nDE+0.5);
6482f70b 812 Add2ESDsList(hESDSumResidualX2PerDE, AliMUONQAIndices::kESDSumResidualX2PerDE, expert, !image);
ece56eb9 813 TH1F* hESDSumResidualY2PerDE = new TH1F("hESDSumResidualY2PerDE", "sum of cluster-track residual-Y**2 per DE;DetElem ID;#Sigma(#Delta_{Y}^{2}) (cm^{2})", nDE+1, -0.5, nDE+0.5);
6482f70b 814 Add2ESDsList(hESDSumResidualY2PerDE, AliMUONQAIndices::kESDSumResidualY2PerDE, expert, !image);
ece56eb9 815 TH1F* hESDSumLocalChi2XPerDE = new TH1F("hESDSumLocalChi2XPerDE", "sum of local chi2-X per DE;DetElem ID;#Sigma(local #chi^{2}_{X})", nDE+1, -0.5, nDE+0.5);
6482f70b 816 Add2ESDsList(hESDSumLocalChi2XPerDE, AliMUONQAIndices::kESDSumLocalChi2XPerDE, expert, !image);
ece56eb9 817 TH1F* hESDSumLocalChi2YPerDE = new TH1F("hESDSumLocalChi2YPerDE", "sum of local chi2-Y per DE;DetElem ID;#Sigma(local #chi^{2}_{Y})", nDE+1, -0.5, nDE+0.5);
6482f70b 818 Add2ESDsList(hESDSumLocalChi2YPerDE, AliMUONQAIndices::kESDSumLocalChi2YPerDE, expert, !image);
ece56eb9 819 TH1F* hESDSumLocalChi2PerDE = new TH1F("hESDSumLocalChi2PerDE", "sum of local chi2 (~0.5*(#chi^{2}_{X}+#chi^{2}_{Y})) per DE;DetElem ID;#Sigma(local #chi^{2})", nDE+1, -0.5, nDE+0.5);
6482f70b 820 Add2ESDsList(hESDSumLocalChi2PerDE, AliMUONQAIndices::kESDSumLocalChi2PerDE, expert, !image);
ece56eb9 821}
822
823//____________________________________________________________________________
824void AliMUONTrackerQADataMakerRec::MakeRaws(AliRawReader* rawReader)
825{
826 /// make QA for rawdata tracker
827
828 AliCodeTimerAuto("",0);
829
830 /// forces init
6482f70b 831 GetRawsData(AliMUONQAIndices::kTrackerBusPatchOccupancy);
ece56eb9 832
833 ((AliMUONTrackerDataMaker*)fTrackerDataMaker)->SetRawReader(rawReader);
834
835 fTrackerDataMaker->ProcessEvent();
836}
837
838//__________________________________________________________________
839void AliMUONTrackerQADataMakerRec::MakeDigits(TTree* digitsTree)
840{
841 /// makes data from Digits
842
843 AliCodeTimerAuto("",0);
844
845 // Do nothing in case of calibration event
846 if ( GetRecoParam()->GetEventSpecie() == AliRecoParam::kCalib ) return;
847
848 if (!fDigitStore)
849 fDigitStore = AliMUONVDigitStore::Create(*digitsTree);
850 fDigitStore->Connect(*digitsTree, false);
851 digitsTree->GetEvent(0);
852
853 TIter next(fDigitStore->CreateIterator());
854
855 AliMUONVDigit* dig = 0x0;
856
857 while ( ( dig = static_cast<AliMUONVDigit*>(next()) ) )
858 {
859 GetDigitsData(0)->Fill(dig->DetElemId());
860 GetDigitsData(1)->Fill(dig->ADC());
861 }
862}
863
864
865//____________________________________________________________________________
866void AliMUONTrackerQADataMakerRec::MakeRecPoints(TTree* clustersTree)
867{
868 /// Fill histograms related to tracker clusters
869
870 // First things first : do we have clusters in the TreeR ?
871 // In "normal" production mode, it should be perfectly normal
872 // *not* to have them.
873 // But if for some reason we de-activated the combined tracking,
874 // then we have clusters in TreeR, so let's take that opportunity
875 // to QA them...
876
877 AliCodeTimerAuto("",0);
878
879 // Do nothing in case of calibration event
880 if ( GetRecoParam()->GetEventSpecie() == AliRecoParam::kCalib ) return;
881
882 if (!fClusterStore)
883 {
884 AliCodeTimerAuto("ClusterStore creation",1);
885 fClusterStore = AliMUONVClusterStore::Create(*clustersTree);
886 if (!fClusterStore)
887 {
888 return;
889 }
890 }
891
892 fClusterStore->Connect(*clustersTree,kFALSE);
893 clustersTree->GetEvent(0);
894
895 TIter next(fClusterStore->CreateIterator());
896 AliMUONVCluster* cluster;
897
898 if ( fMappingCheckRecPoints ) fMappingCheckRecPoints->NewEvent();
899
900 while ( ( cluster = static_cast<AliMUONVCluster*>(next()) ) )
901 {
902 Int_t detElemId = cluster->GetDetElemId();
903 Int_t chamberId = AliMpDEManager::GetChamberId(detElemId);
904
6482f70b 905 GetRecPointsData(AliMUONQAIndices::kTrackerNumberOfClustersPerDE)->Fill(detElemId);
906 GetRecPointsData(AliMUONQAIndices::kTrackerClusterChargePerDE+detElemId)->Fill(cluster->GetCharge());
907 GetRecPointsData(AliMUONQAIndices::kTrackerClusterMultiplicityPerDE+detElemId)->Fill(cluster->GetNDigits());
908
909 GetRecPointsData(AliMUONQAIndices::kTrackerNumberOfClustersPerChamber)->Fill(chamberId);
910 GetRecPointsData(AliMUONQAIndices::kTrackerClusterChargePerChamber+chamberId)->Fill(cluster->GetCharge());
911 GetRecPointsData(AliMUONQAIndices::kTrackerClusterMultiplicityPerChamber+chamberId)->Fill(cluster->GetNDigits());
912 GetRecPointsData(AliMUONQAIndices::kTrackerClusterHitMapPerChamber+chamberId)->Fill(cluster->GetX(),cluster->GetY());
ece56eb9 913
914 if ( fMappingCheckRecPoints ) fMappingCheckRecPoints->Store(*cluster);
915
916 }
917
918 fClusterStore->Clear();
919}
920
921//____________________________________________________________________________
922void AliMUONTrackerQADataMakerRec::MakeESDs(AliESDEvent* esd)
923{
924 /// make QA data from ESDs
925
926 AliCodeTimerAuto("",0);
927
928 // Do nothing in case of calibration event
929 if ( GetRecoParam()->GetEventSpecie() == AliRecoParam::kCalib ) return;
930
931 // load ESD event in the interface
932 AliMUONESDInterface esdInterface;
a99c3449 933 if (GetRecoParam()) AliMUONESDInterface::ResetTracker(GetRecoParam(), kFALSE);
ece56eb9 934 else AliError("Unable to get recoParam: use default ones for residual calculation");
935 esdInterface.LoadEvent(*esd);
936
6482f70b 937 GetESDsData(AliMUONQAIndices::kESDnTracks)->Fill(esdInterface.GetNTracks());
ece56eb9 938
939 Int_t nTrackMatchTrig = 0;
940
941 // loop over tracks
942 Int_t nTracks = (Int_t) esd->GetNumberOfMuonTracks();
943 for (Int_t iTrack = 0; iTrack < nTracks; ++iTrack) {
944
945 // get the ESD track and skip "ghosts"
946 AliESDMuonTrack* esdTrack = esd->GetMuonTrack(iTrack);
947 if (!esdTrack->ContainTrackerData()) continue;
948
949 // get corresponding MUON track
950 AliMUONTrack* track = esdInterface.FindTrack(esdTrack->GetUniqueID());
951
952 if (esdTrack->ContainTriggerData()) nTrackMatchTrig++;
953
6482f70b 954 GetESDsData(AliMUONQAIndices::kESDMomentum)->Fill(esdTrack->P());
955 GetESDsData(AliMUONQAIndices::kESDPt)->Fill(esdTrack->Pt());
956 GetESDsData(AliMUONQAIndices::kESDRapidity)->Fill(esdTrack->Y());
957 GetESDsData(AliMUONQAIndices::kESDChi2)->Fill(track->GetNormalizedChi2());
958 GetESDsData(AliMUONQAIndices::kESDProbChi2)->Fill(TMath::Prob(track->GetGlobalChi2(),track->GetNDF()));
959 GetESDsData(AliMUONQAIndices::kESDThetaX)->Fill(esdTrack->GetThetaXUncorrected() / TMath::Pi() * 180.);
960 GetESDsData(AliMUONQAIndices::kESDThetaY)->Fill(esdTrack->GetThetaYUncorrected() / TMath::Pi() * 180.);
961 GetESDsData(AliMUONQAIndices::kESDnClustersPerTrack)->Fill(track->GetNClusters());
ece56eb9 962
963 // loop over clusters
964 AliMUONTrackParam* trackParam = static_cast<AliMUONTrackParam*>(track->GetTrackParamAtCluster()->First());
965 while (trackParam) {
966
967 AliMUONVCluster* cluster = trackParam->GetClusterPtr();
968 Int_t chId = cluster->GetChamberId();
969 Int_t deID = cluster->GetDetElemId();
970 Double_t residualX = cluster->GetX() - trackParam->GetNonBendingCoor();
971 Double_t residualY = cluster->GetY() - trackParam->GetBendingCoor();
972 Double_t sigmaResidualX2 = cluster->GetErrX2() - trackParam->GetCovariances()(0,0);
973 Double_t sigmaResidualY2 = cluster->GetErrY2() - trackParam->GetCovariances()(2,2);
974 Double_t localChi2X = (sigmaResidualX2 > 0.) ? residualX*residualX/sigmaResidualX2 : 0.;
975 Double_t localChi2Y = (sigmaResidualY2 > 0.) ? residualY*residualY/sigmaResidualY2 : 0.;
976 Double_t localChi2 = 0.5 * trackParam->GetLocalChi2();
977
6482f70b 978 GetESDsData(AliMUONQAIndices::kESDClusterHitMap+chId)->Fill(cluster->GetX(), cluster->GetY());
ece56eb9 979
6482f70b 980 GetESDsData(AliMUONQAIndices::kESDnTotClustersPerCh)->Fill(chId);
981 GetESDsData(AliMUONQAIndices::kESDnTotClustersPerDE)->Fill(deID);
ece56eb9 982
6482f70b 983 GetESDsData(AliMUONQAIndices::kESDClusterChargeInCh+chId)->Fill(cluster->GetCharge());
984 GetESDsData(AliMUONQAIndices::kESDSumClusterChargePerDE)->Fill(deID, cluster->GetCharge());
ece56eb9 985
986 if (cluster->GetNDigits() > 0) { // discard clusters with pad not stored in ESD
6482f70b 987 GetESDsData(AliMUONQAIndices::kESDnTotFullClustersPerDE)->Fill(deID);
988 GetESDsData(AliMUONQAIndices::kESDClusterSizeInCh+chId)->Fill(cluster->GetNDigits());
989 GetESDsData(AliMUONQAIndices::kESDSumClusterSizePerDE)->Fill(deID, cluster->GetNDigits());
ece56eb9 990 }
991
6482f70b 992 GetESDsData(AliMUONQAIndices::kESDResidualXInCh+chId)->Fill(residualX);
993 GetESDsData(AliMUONQAIndices::kESDResidualYInCh+chId)->Fill(residualY);
994 GetESDsData(AliMUONQAIndices::kESDSumResidualXPerDE)->Fill(deID, residualX);
995 GetESDsData(AliMUONQAIndices::kESDSumResidualYPerDE)->Fill(deID, residualY);
996 GetESDsData(AliMUONQAIndices::kESDSumResidualX2PerDE)->Fill(deID, residualX*residualX);
997 GetESDsData(AliMUONQAIndices::kESDSumResidualY2PerDE)->Fill(deID, residualY*residualY);
ece56eb9 998
6482f70b 999 GetESDsData(AliMUONQAIndices::kESDLocalChi2XInCh+chId)->Fill(localChi2X);
1000 GetESDsData(AliMUONQAIndices::kESDLocalChi2YInCh+chId)->Fill(localChi2Y);
1001 GetESDsData(AliMUONQAIndices::kESDLocalChi2InCh+chId)->Fill(localChi2);
1002 GetESDsData(AliMUONQAIndices::kESDSumLocalChi2XPerDE)->Fill(deID, localChi2X);
1003 GetESDsData(AliMUONQAIndices::kESDSumLocalChi2YPerDE)->Fill(deID, localChi2Y);
1004 GetESDsData(AliMUONQAIndices::kESDSumLocalChi2PerDE)->Fill(deID, localChi2);
ece56eb9 1005
1006 trackParam = static_cast<AliMUONTrackParam*>(track->GetTrackParamAtCluster()->After(trackParam));
1007
1008 }
1009
1010 }
1011
6482f70b 1012 GetESDsData(AliMUONQAIndices::kESDMatchTrig)->Fill(nTrackMatchTrig);
ece56eb9 1013
1014}
1015
1016//____________________________________________________________________________
1017AliMUONVTrackerData* AliMUONTrackerQADataMakerRec::GetTrackerData() const
1018{
1019/// Return tracker data
1020
1021 return fTrackerDataMaker->Data();
1022
1023}