1 #include "AliESDtrackCuts.h"
4 #include <AliESDtrack.h>
8 //____________________________________________________________________
9 ClassImp(AliESDtrackCuts)
12 const Char_t* AliESDtrackCuts::fgkCutNames[kNCuts] = {
17 "#Chi^{2}/clusters TPC",
18 "#Chi^{2}/clusters ITS",
36 //____________________________________________________________________
37 AliESDtrackCuts::AliESDtrackCuts() : TObject(),
38 fCutMinNClusterTPC(0),
39 fCutMinNClusterITS(0),
40 fCutMaxChi2PerClusterTPC(0),
41 fCutMaxChi2PerClusterITS(0),
47 fCutAcceptKinkDaughters(0),
48 fCutRequireTPCRefit(0),
49 fCutRequireITSRefit(0),
50 fCutNsigmaToVertex(0),
51 fCutSigmaToVertexRequired(0),
76 //##############################################################################
77 // setting default cuts
80 SetMaxChi2PerClusterTPC();
81 SetMaxChi2PerClusterITS();
82 SetMaxCovDiagonalElements();
85 SetAcceptKingDaughters();
86 SetMinNsigmaToVertex();
87 SetRequireSigmaToVertex();
99 //_____________________________________________________________________________
100 AliESDtrackCuts::AliESDtrackCuts(const AliESDtrackCuts &c) : TObject(c),
101 fCutMinNClusterTPC(0),
102 fCutMinNClusterITS(0),
103 fCutMaxChi2PerClusterTPC(0),
104 fCutMaxChi2PerClusterITS(0),
110 fCutAcceptKinkDaughters(0),
111 fCutRequireTPCRefit(0),
112 fCutRequireITSRefit(0),
113 fCutNsigmaToVertex(0),
114 fCutSigmaToVertexRequired(0),
137 ((AliESDtrackCuts &) c).Copy(*this);
140 AliESDtrackCuts::~AliESDtrackCuts()
146 for (Int_t i=0; i<2; i++) {
148 if (fhNClustersITS[i])
149 delete fhNClustersITS[i];
150 if (fhNClustersTPC[i])
151 delete fhNClustersTPC[i];
152 if (fhChi2PerClusterITS[i])
153 delete fhChi2PerClusterITS[i];
154 if (fhChi2PerClusterTPC[i])
155 delete fhChi2PerClusterTPC[i];
174 if (fhDXYNormalized[i])
175 delete fhDXYNormalized[i];
176 if (fhDZNormalized[i])
177 delete fhDZNormalized[i];
178 if (fhDXYvsDZNormalized[i])
179 delete fhDXYvsDZNormalized[i];
183 delete fhCutStatistics;
184 if (fhCutCorrelation)
185 delete fhCutCorrelation;
188 void AliESDtrackCuts::Init()
191 // sets everything to zero
194 fCutMinNClusterTPC = 0;
195 fCutMinNClusterITS = 0;
197 fCutMaxChi2PerClusterTPC = 0;
198 fCutMaxChi2PerClusterITS = 0;
206 fCutAcceptKinkDaughters = 0;
207 fCutRequireTPCRefit = 0;
208 fCutRequireITSRefit = 0;
210 fCutNsigmaToVertex = 0;
211 fCutSigmaToVertexRequired = 0;
228 fHistogramsOn = kFALSE;
230 for (Int_t i=0; i<2; ++i)
232 fhNClustersITS[i] = 0;
233 fhNClustersTPC[i] = 0;
235 fhChi2PerClusterITS[i] = 0;
236 fhChi2PerClusterTPC[i] = 0;
248 fhDXYNormalized[i] = 0;
249 fhDZNormalized[i] = 0;
250 fhDXYvsDZNormalized[i] = 0;
254 fhCutCorrelation = 0;
257 //_____________________________________________________________________________
258 AliESDtrackCuts &AliESDtrackCuts::operator=(const AliESDtrackCuts &c)
261 // Assignment operator
264 if (this != &c) ((AliESDtrackCuts &) c).Copy(*this);
268 //_____________________________________________________________________________
269 void AliESDtrackCuts::Copy(TObject &c) const
275 AliESDtrackCuts& target = (AliESDtrackCuts &) c;
279 target.fCutMinNClusterTPC = fCutMinNClusterTPC;
280 target.fCutMinNClusterITS = fCutMinNClusterITS;
282 target.fCutMaxChi2PerClusterTPC = fCutMaxChi2PerClusterTPC;
283 target.fCutMaxChi2PerClusterITS = fCutMaxChi2PerClusterITS;
285 target.fCutMaxC11 = fCutMaxC11;
286 target.fCutMaxC22 = fCutMaxC22;
287 target.fCutMaxC33 = fCutMaxC33;
288 target.fCutMaxC44 = fCutMaxC44;
289 target.fCutMaxC55 = fCutMaxC55;
291 target.fCutAcceptKinkDaughters = fCutAcceptKinkDaughters;
292 target.fCutRequireTPCRefit = fCutRequireTPCRefit;
293 target.fCutRequireITSRefit = fCutRequireITSRefit;
295 target.fCutNsigmaToVertex = fCutNsigmaToVertex;
296 target.fCutSigmaToVertexRequired = fCutSigmaToVertexRequired;
298 target.fPMin = fPMin;
299 target.fPMax = fPMax;
300 target.fPtMin = fPtMin;
301 target.fPtMax = fPtMax;
302 target.fPxMin = fPxMin;
303 target.fPxMax = fPxMax;
304 target.fPyMin = fPyMin;
305 target.fPyMax = fPyMax;
306 target.fPzMin = fPzMin;
307 target.fPzMax = fPzMax;
308 target.fEtaMin = fEtaMin;
309 target.fEtaMax = fEtaMax;
310 target.fRapMin = fRapMin;
311 target.fRapMax = fRapMax;
313 target.fHistogramsOn = fHistogramsOn;
315 for (Int_t i=0; i<2; ++i)
317 if (fhNClustersITS[i]) target.fhNClustersITS[i] = (TH1F*) fhNClustersITS[i]->Clone();
318 if (fhNClustersTPC[i]) target.fhNClustersTPC[i] = (TH1F*) fhNClustersTPC[i]->Clone();
320 if (fhChi2PerClusterITS[i]) target.fhChi2PerClusterITS[i] = (TH1F*) fhChi2PerClusterITS[i]->Clone();
321 if (fhChi2PerClusterTPC[i]) target.fhChi2PerClusterTPC[i] = (TH1F*) fhChi2PerClusterTPC[i]->Clone();
323 if (fhC11[i]) target.fhC11[i] = (TH1F*) fhC11[i]->Clone();
324 if (fhC22[i]) target.fhC22[i] = (TH1F*) fhC22[i]->Clone();
325 if (fhC33[i]) target.fhC33[i] = (TH1F*) fhC33[i]->Clone();
326 if (fhC44[i]) target.fhC44[i] = (TH1F*) fhC44[i]->Clone();
327 if (fhC55[i]) target.fhC55[i] = (TH1F*) fhC55[i]->Clone();
329 if (fhDXY[i]) target.fhDXY[i] = (TH1F*) fhDXY[i]->Clone();
330 if (fhDZ[i]) target.fhDZ[i] = (TH1F*) fhDZ[i]->Clone();
331 if (fhDXYvsDZ[i]) target.fhDXYvsDZ[i] = (TH2F*) fhDXYvsDZ[i]->Clone();
333 if (fhDXYNormalized[i]) target.fhDXYNormalized[i] = (TH1F*) fhDXYNormalized[i]->Clone();
334 if (fhDZNormalized[i]) target.fhDZNormalized[i] = (TH1F*) fhDZNormalized[i]->Clone();
335 if (fhDXYvsDZNormalized[i]) target.fhDXYvsDZNormalized[i] = (TH2F*) fhDXYvsDZNormalized[i]->Clone();
338 if (fhCutStatistics) target.fhCutStatistics = (TH1F*) fhCutStatistics->Clone();
339 if (fhCutCorrelation) target.fhCutCorrelation = (TH2F*) fhCutCorrelation->Clone();
344 //_____________________________________________________________________________
345 Long64_t AliESDtrackCuts::Merge(TCollection* list) {
346 // Merge a list of AliESDtrackCuts objects with this (needed for PROOF)
347 // Returns the number of merged objects (including this)
358 TIterator* iter = list->MakeIterator();
362 // collection of measured and generated histograms
364 while ((obj = iter->Next())) {
366 AliESDtrackCuts* entry = dynamic_cast<AliESDtrackCuts*>(obj);
370 if (!entry->fHistogramsOn)
373 for (Int_t i=0; i<2; i++) {
375 fhNClustersITS[i] ->Add(entry->fhNClustersITS[i] );
376 fhNClustersTPC[i] ->Add(entry->fhNClustersTPC[i] );
378 fhChi2PerClusterITS[i] ->Add(entry->fhChi2PerClusterITS[i]);
379 fhChi2PerClusterTPC[i] ->Add(entry->fhChi2PerClusterTPC[i]);
381 fhC11[i] ->Add(entry->fhC11[i] );
382 fhC22[i] ->Add(entry->fhC22[i] );
383 fhC33[i] ->Add(entry->fhC33[i] );
384 fhC44[i] ->Add(entry->fhC44[i] );
385 fhC55[i] ->Add(entry->fhC55[i] );
387 fhDXY[i] ->Add(entry->fhDXY[i] );
388 fhDZ[i] ->Add(entry->fhDZ[i] );
389 fhDXYvsDZ[i] ->Add(entry->fhDXYvsDZ[i] );
391 fhDXYNormalized[i] ->Add(entry->fhDXYNormalized[i] );
392 fhDZNormalized[i] ->Add(entry->fhDZNormalized[i] );
393 fhDXYvsDZNormalized[i] ->Add(entry->fhDXYvsDZNormalized[i]);
396 fhCutStatistics ->Add(entry->fhCutStatistics);
397 fhCutCorrelation ->Add(entry->fhCutCorrelation);
406 //____________________________________________________________________
407 Float_t AliESDtrackCuts::GetSigmaToVertex(AliESDtrack* esdTrack)
414 esdTrack->GetImpactParameters(b,bCov);
415 if (bCov[0]<=0 || bCov[2]<=0) {
416 AliDebug(1, "Estimated b resolution lower or equal zero!");
417 bCov[0]=0; bCov[2]=0;
419 bRes[0] = TMath::Sqrt(bCov[0]);
420 bRes[1] = TMath::Sqrt(bCov[2]);
422 // -----------------------------------
423 // How to get to a n-sigma cut?
425 // The accumulated statistics from 0 to d is
427 // -> Erf(d/Sqrt(2)) for a 1-dim gauss (d = n_sigma)
428 // -> 1 - Exp(-d**2) for a 2-dim gauss (d*d = dx*dx + dy*dy != n_sigma)
430 // It means that for a 2-dim gauss: n_sigma(d) = Sqrt(2)*ErfInv(1 - Exp((-x**2)/2)
431 // Can this be expressed in a different way?
434 // FIX: I don't think this is correct!!! Keeping d as n_sigma for now...
436 if (bRes[0] == 0 || bRes[1] ==0)
439 Float_t d = TMath::Sqrt(TMath::Power(b[0]/bRes[0],2) + TMath::Power(b[1]/bRes[1],2));
441 // stupid rounding problem screws up everything:
442 // if d is too big, TMath::Exp(...) gets 0, and TMath::ErfInverse(1) that should be infinite, gets 0 :(
443 if (TMath::Exp(-d * d / 2) < 1e-10)
446 d = TMath::ErfInverse(1 - TMath::Exp(-d * d / 2)) * TMath::Sqrt(2);
450 //____________________________________________________________________
452 AliESDtrackCuts::AcceptTrack(AliESDtrack* esdTrack) {
454 // figure out if the tracks survives all the track cuts defined
456 // the different quality parameter and kinematic values are first
457 // retrieved from the track. then it is found out what cuts the
458 // track did not survive and finally the cuts are imposed.
462 UInt_t status = esdTrack->GetStatus();
467 // getting quality parameters from the ESD track
468 Int_t nClustersITS = esdTrack->GetITSclusters(fIdxInt);
469 Int_t nClustersTPC = esdTrack->GetTPCclusters(fIdxInt);
473 Float_t chi2PerClusterITS = -1;
474 Float_t chi2PerClusterTPC = -1;
476 chi2PerClusterITS = esdTrack->GetITSchi2()/Float_t(nClustersITS);
478 chi2PerClusterTPC = esdTrack->GetTPCchi2()/Float_t(nClustersTPC);
481 esdTrack->GetExternalCovariance(extCov);
483 // getting the track to vertex parameters
484 Float_t nSigmaToVertex = GetSigmaToVertex(esdTrack);
486 // getting the kinematic variables of the track
487 // (assuming the mass is known)
489 esdTrack->GetPxPyPz(p);
490 Float_t momentum = TMath::Sqrt(TMath::Power(p[0],2) + TMath::Power(p[1],2) + TMath::Power(p[2],2));
491 Float_t pt = TMath::Sqrt(TMath::Power(p[0],2) + TMath::Power(p[1],2));
492 Float_t energy = TMath::Sqrt(TMath::Power(esdTrack->GetMass(),2) + TMath::Power(momentum,2));
495 //y-eta related calculations
498 if((momentum != TMath::Abs(p[2]))&&(momentum != 0))
499 eta = 0.5*TMath::Log((momentum + p[2])/(momentum - p[2]));
500 if((energy != TMath::Abs(p[2]))&&(momentum != 0))
501 y = 0.5*TMath::Log((energy + p[2])/(energy - p[2]));
504 //########################################################################
508 for (Int_t i=0; i<kNCuts; i++) cuts[i]=kFALSE;
510 // track quality cuts
511 if (fCutRequireTPCRefit && (status&AliESDtrack::kTPCrefit)==0)
513 if (fCutRequireITSRefit && (status&AliESDtrack::kITSrefit)==0)
515 if (nClustersTPC<fCutMinNClusterTPC)
517 if (nClustersITS<fCutMinNClusterITS)
519 if (chi2PerClusterTPC>fCutMaxChi2PerClusterTPC)
521 if (chi2PerClusterITS>fCutMaxChi2PerClusterITS)
523 if (extCov[0] > fCutMaxC11)
525 if (extCov[2] > fCutMaxC22)
527 if (extCov[5] > fCutMaxC33)
529 if (extCov[9] > fCutMaxC44)
531 if (extCov[14] > fCutMaxC55)
533 if (nSigmaToVertex > fCutNsigmaToVertex)
535 // if n sigma could not be calculated
536 if (nSigmaToVertex<0 && fCutSigmaToVertexRequired)
538 if (!fCutAcceptKinkDaughters && esdTrack->GetKinkIndex(0)>0)
540 // track kinematics cut
541 if((momentum < fPMin) || (momentum > fPMax))
543 if((pt < fPtMin) || (pt > fPtMax))
545 if((p[0] < fPxMin) || (p[0] > fPxMax))
547 if((p[1] < fPyMin) || (p[1] > fPyMax))
549 if((p[2] < fPzMin) || (p[2] > fPzMax))
551 if((eta < fEtaMin) || (eta > fEtaMax))
553 if((y < fRapMin) || (y > fRapMax))
557 for (Int_t i=0; i<kNCuts; i++)
558 if (cuts[i]) cut = kTRUE;
560 //########################################################################
561 // filling histograms
563 fhCutStatistics->Fill(fhCutStatistics->GetBinCenter(fhCutStatistics->GetXaxis()->FindBin("n tracks")));
566 fhCutStatistics->Fill(fhCutStatistics->GetBinCenter(fhCutStatistics->GetXaxis()->FindBin("n cut tracks")));
568 for (Int_t i=0; i<kNCuts; i++) {
570 fhCutStatistics->Fill(fhCutStatistics->GetBinCenter(fhCutStatistics->GetXaxis()->FindBin(fgkCutNames[i])));
572 for (Int_t j=i; j<kNCuts; j++) {
573 if (cuts[i] && cuts[j]) {
574 Float_t x = fhCutCorrelation->GetXaxis()->GetBinCenter(fhCutCorrelation->GetXaxis()->FindBin(fgkCutNames[i]));
575 Float_t y = fhCutCorrelation->GetYaxis()->GetBinCenter(fhCutCorrelation->GetYaxis()->FindBin(fgkCutNames[j]));
576 fhCutCorrelation->Fill(x,y);
582 fhNClustersITS[0]->Fill(nClustersITS);
583 fhNClustersTPC[0]->Fill(nClustersTPC);
584 fhChi2PerClusterITS[0]->Fill(chi2PerClusterITS);
585 fhChi2PerClusterTPC[0]->Fill(chi2PerClusterTPC);
587 fhC11[0]->Fill(extCov[0]);
588 fhC22[0]->Fill(extCov[2]);
589 fhC33[0]->Fill(extCov[5]);
590 fhC44[0]->Fill(extCov[9]);
591 fhC55[0]->Fill(extCov[14]);
596 esdTrack->GetImpactParameters(b,bCov);
597 if (bCov[0]<=0 || bCov[2]<=0) {
598 AliDebug(1, "Estimated b resolution lower or equal zero!");
599 bCov[0]=0; bCov[2]=0;
601 bRes[0] = TMath::Sqrt(bCov[0]);
602 bRes[1] = TMath::Sqrt(bCov[2]);
605 fhDXY[0]->Fill(b[0]);
606 fhDXYvsDZ[0]->Fill(b[1],b[0]);
608 if (bRes[0]!=0 && bRes[1]!=0) {
609 fhDZNormalized[0]->Fill(b[1]/bRes[1]);
610 fhDXYNormalized[0]->Fill(b[0]/bRes[0]);
611 fhDXYvsDZNormalized[0]->Fill(b[1]/bRes[1], b[0]/bRes[0]);
615 //########################################################################
617 if (cut) return kFALSE;
619 //########################################################################
620 // filling histograms after cut
622 fhNClustersITS[1]->Fill(nClustersITS);
623 fhNClustersTPC[1]->Fill(nClustersTPC);
624 fhChi2PerClusterITS[1]->Fill(chi2PerClusterITS);
625 fhChi2PerClusterTPC[1]->Fill(chi2PerClusterTPC);
627 fhC11[1]->Fill(extCov[0]);
628 fhC22[1]->Fill(extCov[2]);
629 fhC33[1]->Fill(extCov[5]);
630 fhC44[1]->Fill(extCov[9]);
631 fhC55[1]->Fill(extCov[14]);
636 esdTrack->GetImpactParameters(b,bCov);
637 if (bCov[0]<=0 || bCov[2]<=0) {
638 AliDebug(1, "Estimated b resolution lower or equal zero!");
639 bCov[0]=0; bCov[2]=0;
641 bRes[0] = TMath::Sqrt(bCov[0]);
642 bRes[1] = TMath::Sqrt(bCov[2]);
645 fhDXY[1]->Fill(b[0]);
646 fhDXYvsDZ[1]->Fill(b[1],b[0]);
648 if (bRes[0]!=0 && bRes[1]!=0)
650 fhDZNormalized[1]->Fill(b[1]/bRes[1]);
651 fhDXYNormalized[1]->Fill(b[0]/bRes[0]);
652 fhDXYvsDZNormalized[1]->Fill(b[1]/bRes[1], b[0]/bRes[0]);
659 //____________________________________________________________________
661 AliESDtrackCuts::GetAcceptedTracks(AliESD* esd)
664 // returns an array of all tracks that pass the cuts
667 TObjArray* acceptedTracks = new TObjArray();
669 // loop over esd tracks
670 for (Int_t iTrack = 0; iTrack < esd->GetNumberOfTracks(); iTrack++) {
671 AliESDtrack* track = esd->GetTrack(iTrack);
673 if (AcceptTrack(track))
674 acceptedTracks->Add(track);
677 return acceptedTracks;
680 //____________________________________________________________________
682 AliESDtrackCuts::CountAcceptedTracks(AliESD* esd)
685 // returns an the number of tracks that pass the cuts
690 // loop over esd tracks
691 for (Int_t iTrack = 0; iTrack < esd->GetNumberOfTracks(); iTrack++) {
692 AliESDtrack* track = esd->GetTrack(iTrack);
694 if (AcceptTrack(track))
701 //____________________________________________________________________
702 void AliESDtrackCuts::DefineHistograms(Int_t color) {
704 // diagnostics histograms are defined
709 //###################################################################################
710 // defining histograms
712 fhCutStatistics = new TH1F("cut_statistics","cut statistics",kNCuts+4,-0.5,kNCuts+3.5);
714 fhCutStatistics->GetXaxis()->SetBinLabel(1,"n tracks");
715 fhCutStatistics->GetXaxis()->SetBinLabel(2,"n cut tracks");
717 fhCutCorrelation = new TH2F("cut_correlation","cut correlation",kNCuts,-0.5,kNCuts-0.5,kNCuts,-0.5,kNCuts-0.5);;
719 for (Int_t i=0; i<kNCuts; i++) {
720 fhCutStatistics->GetXaxis()->SetBinLabel(i+4,fgkCutNames[i]);
721 fhCutCorrelation->GetXaxis()->SetBinLabel(i+1,fgkCutNames[i]);
722 fhCutCorrelation->GetYaxis()->SetBinLabel(i+1,fgkCutNames[i]);
725 fhCutStatistics ->SetLineColor(color);
726 fhCutCorrelation ->SetLineColor(color);
727 fhCutStatistics ->SetLineWidth(2);
728 fhCutCorrelation ->SetLineWidth(2);
731 for (Int_t i=0; i<2; i++) {
732 if (i==0) sprintf(str," ");
733 else sprintf(str,"_cut");
735 fhNClustersITS[i] = new TH1F(Form("nClustersITS%s",str),"",8,-0.5,7.5);
736 fhNClustersTPC[i] = new TH1F(Form("nClustersTPC%s",str),"",165,-0.5,164.5);
737 fhChi2PerClusterITS[i] = new TH1F(Form("chi2PerClusterITS%s",str),"",500,0,10);
738 fhChi2PerClusterTPC[i] = new TH1F(Form("chi2PerClusterTPC%s",str),"",500,0,10);
740 fhC11[i] = new TH1F(Form("covMatrixDiagonal11%s",str),"",1000,0,5);
741 fhC22[i] = new TH1F(Form("covMatrixDiagonal22%s",str),"",1000,0,5);
742 fhC33[i] = new TH1F(Form("covMatrixDiagonal33%s",str),"",1000,0,0.5);
743 fhC44[i] = new TH1F(Form("covMatrixDiagonal44%s",str),"",1000,0,5);
744 fhC55[i] = new TH1F(Form("covMatrixDiagonal55%s",str),"",1000,0,5);
746 fhDXY[i] = new TH1F(Form("dXY%s",str),"",500,-10,10);
747 fhDZ[i] = new TH1F(Form("dZ%s",str),"",500,-10,10);
748 fhDXYvsDZ[i] = new TH2F(Form("dXYvsDZ%s",str),"",200,-10,10,200,-10,10);
750 fhDXYNormalized[i] = new TH1F(Form("dXYNormalized%s",str),"",500,-10,10);
751 fhDZNormalized[i] = new TH1F(Form("dZNormalized%s",str),"",500,-10,10);
752 fhDXYvsDZNormalized[i] = new TH2F(Form("dXYvsDZNormalized%s",str),"",200,-10,10,200,-10,10);
755 fhNClustersITS[i]->SetXTitle("n ITS clusters");
756 fhNClustersTPC[i]->SetXTitle("n TPC clusters");
757 fhChi2PerClusterITS[i]->SetXTitle("#Chi^{2} per ITS cluster");
758 fhChi2PerClusterTPC[i]->SetXTitle("#Chi^{2} per TPC cluster");
760 fhC11[i]->SetXTitle("cov 11 : #sigma_{y}^{2} [cm^{2}]");
761 fhC22[i]->SetXTitle("cov 22 : #sigma_{z}^{2} [cm^{2}]");
762 fhC33[i]->SetXTitle("cov 33 : #sigma_{sin(#phi)}^{2}");
763 fhC44[i]->SetXTitle("cov 44 : #sigma_{tan(#theta_{dip})}^{2}");
764 fhC55[i]->SetXTitle("cov 55 : #sigma_{1/p_{T}}^{2} [(c/GeV)^2]");
766 fhDXY[i]->SetXTitle("transverse impact parameter");
767 fhDZ[i]->SetXTitle("longitudinal impact parameter");
768 fhDXYvsDZ[i]->SetXTitle("longitudinal impact parameter");
769 fhDXYvsDZ[i]->SetYTitle("transverse impact parameter");
771 fhDXYNormalized[i]->SetXTitle("normalized trans impact par");
772 fhDZNormalized[i]->SetXTitle("normalized long impact par");
773 fhDXYvsDZNormalized[i]->SetXTitle("normalized long impact par");
774 fhDXYvsDZNormalized[i]->SetYTitle("normalized trans impact par");
776 fhNClustersITS[i]->SetLineColor(color); fhNClustersITS[i]->SetLineWidth(2);
777 fhNClustersTPC[i]->SetLineColor(color); fhNClustersTPC[i]->SetLineWidth(2);
778 fhChi2PerClusterITS[i]->SetLineColor(color); fhChi2PerClusterITS[i]->SetLineWidth(2);
779 fhChi2PerClusterTPC[i]->SetLineColor(color); fhChi2PerClusterTPC[i]->SetLineWidth(2);
781 fhC11[i]->SetLineColor(color); fhC11[i]->SetLineWidth(2);
782 fhC22[i]->SetLineColor(color); fhC22[i]->SetLineWidth(2);
783 fhC33[i]->SetLineColor(color); fhC33[i]->SetLineWidth(2);
784 fhC44[i]->SetLineColor(color); fhC44[i]->SetLineWidth(2);
785 fhC55[i]->SetLineColor(color); fhC55[i]->SetLineWidth(2);
787 fhDXY[i]->SetLineColor(color); fhDXY[i]->SetLineWidth(2);
788 fhDZ[i]->SetLineColor(color); fhDZ[i]->SetLineWidth(2);
790 fhDXYNormalized[i]->SetLineColor(color); fhDXYNormalized[i]->SetLineWidth(2);
791 fhDZNormalized[i]->SetLineColor(color); fhDZNormalized[i]->SetLineWidth(2);
795 //____________________________________________________________________
797 AliESDtrackCuts::Print(const Option_t*) const {
799 // print method - still to be implemented
802 AliInfo("AliESDtrackCuts...");
806 //____________________________________________________________________
807 void AliESDtrackCuts::SaveHistograms(Char_t* dir) {
809 // saves the histograms in a directory (dir)
813 if (!fHistogramsOn) {
814 AliDebug(0, "Histograms not on - cannot save histograms!!!");
818 gDirectory->mkdir(dir);
821 gDirectory->mkdir("before_cuts");
822 gDirectory->mkdir("after_cuts");
824 fhCutStatistics->Write();
825 fhCutCorrelation->Write();
827 for (Int_t i=0; i<2; i++) {
829 gDirectory->cd("before_cuts");
831 gDirectory->cd("after_cuts");
833 fhNClustersITS[i] ->Write();
834 fhNClustersTPC[i] ->Write();
835 fhChi2PerClusterITS[i] ->Write();
836 fhChi2PerClusterTPC[i] ->Write();
846 fhDXYvsDZ[i] ->Write();
848 fhDXYNormalized[i] ->Write();
849 fhDZNormalized[i] ->Write();
850 fhDXYvsDZNormalized[i] ->Write();
852 gDirectory->cd("../");
855 gDirectory->cd("../");