-
Notifications
You must be signed in to change notification settings - Fork 257
/
AliESDtrackCuts.cxx
3248 lines (2724 loc) · 117 KB
/
AliESDtrackCuts.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are mentioned in the code where appropriate. *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
* without fee, provided that the above copyright notice appears in all *
* copies and that both the copyright notice and this permission notice *
* appear in the supporting documentation. The authors make no claims *
* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
/* $Id: AliESDtrackCuts.cxx 24534 2008-03-16 22:22:11Z fca $ */
#include "AliESDtrackCuts.h"
#include <AliESDtrack.h>
#include <AliAODTrack.h>
#include <AliESDVertex.h>
#include <AliAODVertex.h>
#include <AliESDEvent.h>
#include <AliMultiplicity.h>
#include <AliLog.h>
#include <TTree.h>
#include <TCanvas.h>
#include <TDirectory.h>
#include <TH2F.h>
#include <TF1.h>
#include <TBits.h>
/// \file AliESDtrackCuts.cxx
ClassImp(AliESDtrackCuts)
// Cut names
const Char_t* AliESDtrackCuts::fgkCutNames[kNCuts] = {
"require TPC refit",
"require TPC standalone",
"require ITS refit",
"n clusters TPC",
"n clusters ITS",
"#Chi^{2}/cluster TPC",
"#Chi^{2}/cluster ITS",
"cov 11",
"cov 22",
"cov 33",
"cov 44",
"cov 55",
"trk-to-vtx",
"trk-to-vtx failed",
"kink daughters",
"p",
"p_{T}",
"p_{x}",
"p_{y}",
"p_{z}",
"eta",
"y",
"trk-to-vtx max dca 2D absolute",
"trk-to-vtx max dca xy absolute",
"trk-to-vtx max dca z absolute",
"trk-to-vtx min dca 2D absolute",
"trk-to-vtx min dca xy absolute",
"trk-to-vtx min dca z absolute",
"SPD cluster requirement",
"SDD cluster requirement",
"SSD cluster requirement",
"require ITS stand-alone",
"rel 1/pt uncertainty",
"TPC n shared clusters",
"TPC rel shared clusters",
"require ITS Pid",
"n crossed rows TPC",
"n crossed rows / n findable clusters",
"missing ITS points",
"#Chi^{2} TPC constrained vs. global",
"require TOF out",
"TOF Distance cut",
"min length in active volume TPC",
"n-geometrical+n-crossed-row and n-clusters cut",
"track is in distorted TPC region"
};
AliESDtrackCuts* AliESDtrackCuts::fgMultEstTrackCuts[AliESDtrackCuts::kNMultEstTrackCuts] = { 0, 0, 0, 0 };
Char_t AliESDtrackCuts::fgBeamTypeFlag = -1;
//____________________________________________________________________
AliESDtrackCuts::AliESDtrackCuts(const Char_t* name, const Char_t* title) :
AliAnalysisCuts(name,title),
fCutMinNClusterTPC(0),
fCutMinNClusterITS(0),
fCutMinNCrossedRowsTPC(0),
fCutMinRatioCrossedRowsOverFindableClustersTPC(0),
f1CutMinNClustersTPCPtDep(0x0),
fCutMaxPtDepNClustersTPC(0),
fCutMinLengthActiveVolumeTPC(0),
fDeadZoneWidth(0), // width of the TPC dead zone (missing pads + PRF +ExB)
fCutGeoNcrNclLength(0), // cut on the geometical length condition Ngeom(cm)>cutGeoNcrNclLength default=130
fCutGeoNcrNclGeom1Pt(0), // 1/pt dependence slope cutGeoNcrNclLength:=fCutGeoNcrNclLength-abs(1/pt)^fCutGeoNcrNclGeom1Pt
fCutGeoNcrNclFractionNcr(0), // relative fraction cut Ncr condition Ncr>cutGeoNcrNclFractionNcr*fCutGeoNcrNclLength
fCutGeoNcrNclFractionNcl(0), // relative fraction cut Ncr condition Ncl>cutGeoNcrNclFractionNcl
fCutOutDistortedRegionTPC(kFALSE), // flag if distorted TPC regions should be cut out
fCutMaxChi2PerClusterTPC(0),
fCutMaxChi2PerClusterITS(0),
fCutMaxChi2TPCConstrainedVsGlobal(0),
fCutMaxChi2TPCConstrainedVsGlobalVertexType(kVertexTracks | kVertexSPD),
fCutMaxMissingITSPoints(0),
fCutMaxC11(0),
fCutMaxC22(0),
fCutMaxC33(0),
fCutMaxC44(0),
fCutMaxC55(0),
fCutMaxRel1PtUncertainty(0),
fCutMaxRel1PtUncertaintyPtDep(""),
f1CutMaxRel1PtUncertaintyPtDep(0x0),
fCutAcceptKinkDaughters(0),
fCutAcceptSharedTPCClusters(0),
fCutMaxFractionSharedTPCClusters(0),
fCutRequireTPCRefit(0),
fCutRequireTPCStandAlone(0),
fCutRequireITSRefit(0),
fCutRequireITSPid(0),
fCutRequireITSStandAlone(0),
fCutRequireITSpureSA(0),
fCutNsigmaToVertex(0),
fCutSigmaToVertexRequired(0),
fCutMaxDCAToVertexXY(0),
fCutMaxDCAToVertexZ(0),
fCutMinDCAToVertexXY(0),
fCutMinDCAToVertexZ(0),
fCutMaxDCAToVertexXYPtDep(""),
fCutMaxDCAToVertexZPtDep(""),
fCutMinDCAToVertexXYPtDep(""),
fCutMinDCAToVertexZPtDep(""),
f1CutMaxDCAToVertexXYPtDep(0x0),
f1CutMaxDCAToVertexZPtDep(0x0),
f1CutMinDCAToVertexXYPtDep(0x0),
f1CutMinDCAToVertexZPtDep(0x0),
fCutDCAToVertex2D(0),
fPMin(0),
fPMax(0),
fPtMin(0),
fPtMax(0),
fPxMin(0),
fPxMax(0),
fPyMin(0),
fPyMax(0),
fPzMin(0),
fPzMax(0),
fEtaMin(0),
fEtaMax(0),
fRapMin(0),
fRapMax(0),
fCutRequireTOFout(kFALSE),
fFlagCutTOFdistance(kFALSE),
fCutTOFdistance(3.),
fHistogramsOn(0),
ffDTheoretical(0),
fhCutStatistics(0),
fhCutCorrelation(0)
{
/// constructor
Init();
//##############################################################################
// setting default cuts
SetMinNClustersTPC();
SetMinNClustersITS();
SetMinNCrossedRowsTPC();
SetMinRatioCrossedRowsOverFindableClustersTPC();
SetMaxChi2PerClusterTPC();
SetMaxChi2PerClusterITS();
SetMaxChi2TPCConstrainedGlobal();
SetMaxChi2TPCConstrainedGlobalVertexType();
SetMaxNOfMissingITSPoints();
SetMaxCovDiagonalElements();
SetMaxRel1PtUncertainty();
SetRequireTPCRefit();
SetRequireTPCStandAlone();
SetRequireITSRefit();
SetRequireITSPid(kFALSE);
SetRequireITSStandAlone(kFALSE);
SetRequireITSPureStandAlone(kFALSE);
SetAcceptKinkDaughters();
SetAcceptSharedTPCClusters();
SetMaxFractionSharedTPCClusters();
SetMaxNsigmaToVertex();
SetMaxDCAToVertexXY();
SetMaxDCAToVertexZ();
SetDCAToVertex2D();
SetMinDCAToVertexXY();
SetMinDCAToVertexZ();
SetPRange();
SetPtRange();
SetPxRange();
SetPyRange();
SetPzRange();
SetEtaRange();
SetRapRange();
SetClusterRequirementITS(kSPD);
SetClusterRequirementITS(kSDD);
SetClusterRequirementITS(kSSD);
SetHistogramsOn();
}
//_____________________________________________________________________________
AliESDtrackCuts::AliESDtrackCuts(const AliESDtrackCuts &c) :
AliAnalysisCuts(c),
fCutMinNClusterTPC(0),
fCutMinNClusterITS(0),
fCutMinNCrossedRowsTPC(0),
fCutMinRatioCrossedRowsOverFindableClustersTPC(0),
f1CutMinNClustersTPCPtDep(0x0),
fCutMaxPtDepNClustersTPC(0),
fCutMinLengthActiveVolumeTPC(0),
fDeadZoneWidth(0), // width of the TPC dead zone (missing pads + PRF +ExB)
fCutGeoNcrNclLength(0), // cut on the geometical length condition Ngeom(cm)>cutGeoNcrNclLength default=130
fCutGeoNcrNclGeom1Pt(0), // 1/pt dependence slope cutGeoNcrNclLength:=fCutGeoNcrNclLength-abs(1/pt)^fCutGeoNcrNclGeom1Pt
fCutGeoNcrNclFractionNcr(0), // relative fraction cut Ncr condition Ncr>cutGeoNcrNclFractionNcr*fCutGeoNcrNclLength
fCutGeoNcrNclFractionNcl(0), // relative fraction cut Ncr condition Ncl>cutGeoNcrNclFractionNcl
fCutOutDistortedRegionTPC(kFALSE),
//
fCutMaxChi2PerClusterTPC(0),
fCutMaxChi2PerClusterITS(0),
fCutMaxChi2TPCConstrainedVsGlobal(0),
fCutMaxChi2TPCConstrainedVsGlobalVertexType(kVertexTracks | kVertexSPD),
fCutMaxMissingITSPoints(0),
fCutMaxC11(0),
fCutMaxC22(0),
fCutMaxC33(0),
fCutMaxC44(0),
fCutMaxC55(0),
fCutMaxRel1PtUncertainty(0),
fCutMaxRel1PtUncertaintyPtDep(""),
f1CutMaxRel1PtUncertaintyPtDep(0x0),
fCutAcceptKinkDaughters(0),
fCutAcceptSharedTPCClusters(0),
fCutMaxFractionSharedTPCClusters(0),
fCutRequireTPCRefit(0),
fCutRequireTPCStandAlone(0),
fCutRequireITSRefit(0),
fCutRequireITSPid(0),
fCutRequireITSStandAlone(0),
fCutRequireITSpureSA(0),
fCutNsigmaToVertex(0),
fCutSigmaToVertexRequired(0),
fCutMaxDCAToVertexXY(0),
fCutMaxDCAToVertexZ(0),
fCutMinDCAToVertexXY(0),
fCutMinDCAToVertexZ(0),
fCutMaxDCAToVertexXYPtDep(""),
fCutMaxDCAToVertexZPtDep(""),
fCutMinDCAToVertexXYPtDep(""),
fCutMinDCAToVertexZPtDep(""),
f1CutMaxDCAToVertexXYPtDep(0x0),
f1CutMaxDCAToVertexZPtDep(0x0),
f1CutMinDCAToVertexXYPtDep(0x0),
f1CutMinDCAToVertexZPtDep(0x0),
fCutDCAToVertex2D(0),
fPMin(0),
fPMax(0),
fPtMin(0),
fPtMax(0),
fPxMin(0),
fPxMax(0),
fPyMin(0),
fPyMax(0),
fPzMin(0),
fPzMax(0),
fEtaMin(0),
fEtaMax(0),
fRapMin(0),
fRapMax(0),
fCutRequireTOFout(kFALSE),
fFlagCutTOFdistance(kFALSE),
fCutTOFdistance(3.),
fHistogramsOn(0),
ffDTheoretical(0),
fhCutStatistics(0),
fhCutCorrelation(0)
{
/// copy constructor
((AliESDtrackCuts &) c).Copy(*this);
}
AliESDtrackCuts::~AliESDtrackCuts()
{
/// destructor
for (Int_t i=0; i<2; i++) {
if (fhNClustersITS[i])
delete fhNClustersITS[i];
if (fhNClustersTPC[i])
delete fhNClustersTPC[i];
if (fhNSharedClustersTPC[i])
delete fhNSharedClustersTPC[i];
if (fhNCrossedRowsTPC[i])
delete fhNCrossedRowsTPC[i];
if (fhRatioCrossedRowsOverFindableClustersTPC[i])
delete fhRatioCrossedRowsOverFindableClustersTPC[i];
if (fhChi2PerClusterITS[i])
delete fhChi2PerClusterITS[i];
if (fhChi2PerClusterTPC[i])
delete fhChi2PerClusterTPC[i];
if (fhChi2TPCConstrainedVsGlobal[i])
delete fhChi2TPCConstrainedVsGlobal[i];
if(fhNClustersForITSPID[i])
delete fhNClustersForITSPID[i];
if(fhNMissingITSPoints[i])
delete fhNMissingITSPoints[i];
if (fhC11[i])
delete fhC11[i];
if (fhC22[i])
delete fhC22[i];
if (fhC33[i])
delete fhC33[i];
if (fhC44[i])
delete fhC44[i];
if (fhC55[i])
delete fhC55[i];
if (fhRel1PtUncertainty[i])
delete fhRel1PtUncertainty[i];
if (fhDXY[i])
delete fhDXY[i];
if (fhDZ[i])
delete fhDZ[i];
if (fhDXYDZ[i])
delete fhDXYDZ[i];
if (fhDXYvsDZ[i])
delete fhDXYvsDZ[i];
if (fhDXYNormalized[i])
delete fhDXYNormalized[i];
if (fhDZNormalized[i])
delete fhDZNormalized[i];
if (fhDXYvsDZNormalized[i])
delete fhDXYvsDZNormalized[i];
if (fhNSigmaToVertex[i])
delete fhNSigmaToVertex[i];
if (fhPt[i])
delete fhPt[i];
if (fhEta[i])
delete fhEta[i];
if (fhTOFdistance[i])
delete fhTOFdistance[i];
}
if(f1CutMaxRel1PtUncertaintyPtDep)delete f1CutMaxRel1PtUncertaintyPtDep;
f1CutMaxRel1PtUncertaintyPtDep = 0;
if(f1CutMaxDCAToVertexXYPtDep)delete f1CutMaxDCAToVertexXYPtDep;
f1CutMaxDCAToVertexXYPtDep = 0;
if( f1CutMaxDCAToVertexZPtDep) delete f1CutMaxDCAToVertexZPtDep;
f1CutMaxDCAToVertexZPtDep = 0;
if( f1CutMinDCAToVertexXYPtDep)delete f1CutMinDCAToVertexXYPtDep;
f1CutMinDCAToVertexXYPtDep = 0;
if(f1CutMinDCAToVertexZPtDep)delete f1CutMinDCAToVertexZPtDep;
f1CutMinDCAToVertexZPtDep = 0;
if (ffDTheoretical)
delete ffDTheoretical;
if (fhCutStatistics)
delete fhCutStatistics;
if (fhCutCorrelation)
delete fhCutCorrelation;
if(f1CutMinNClustersTPCPtDep)
delete f1CutMinNClustersTPCPtDep;
}
void AliESDtrackCuts::Init()
{
/// sets everything to zero
fCutMinNClusterTPC = 0;
fCutMinNClusterITS = 0;
fCutMaxChi2PerClusterTPC = 0;
fCutMaxChi2PerClusterITS = 0;
fCutMaxChi2TPCConstrainedVsGlobal = 0;
fCutMaxChi2TPCConstrainedVsGlobalVertexType = kVertexTracks | kVertexSPD;
fCutMaxMissingITSPoints = 0;
for (Int_t i = 0; i < 3; i++)
fCutClusterRequirementITS[i] = kOff;
fCutMaxC11 = 0;
fCutMaxC22 = 0;
fCutMaxC33 = 0;
fCutMaxC44 = 0;
fCutMaxC55 = 0;
fCutMaxRel1PtUncertainty = 0;
fCutMaxRel1PtUncertaintyPtDep = "";
if(f1CutMaxRel1PtUncertaintyPtDep)delete f1CutMaxRel1PtUncertaintyPtDep;
f1CutMaxRel1PtUncertaintyPtDep = 0;
fCutAcceptKinkDaughters = 0;
fCutAcceptSharedTPCClusters = 0;
fCutMaxFractionSharedTPCClusters = 0;
fCutRequireTPCRefit = 0;
fCutRequireTPCStandAlone = 0;
fCutRequireITSRefit = 0;
fCutRequireITSPid = 0;
fCutRequireITSStandAlone = 0;
fCutRequireITSpureSA = 0;
fCutNsigmaToVertex = 0;
fCutSigmaToVertexRequired = 0;
fCutMaxDCAToVertexXY = 0;
fCutMaxDCAToVertexZ = 0;
fCutDCAToVertex2D = 0;
fCutMinDCAToVertexXY = 0;
fCutMinDCAToVertexZ = 0;
fCutMaxDCAToVertexXYPtDep = "";
fCutMaxDCAToVertexZPtDep = "";
fCutMinDCAToVertexXYPtDep = "";
fCutMinDCAToVertexZPtDep = "";
if(f1CutMaxDCAToVertexXYPtDep)delete f1CutMaxDCAToVertexXYPtDep;
f1CutMaxDCAToVertexXYPtDep = 0;
if( f1CutMaxDCAToVertexXYPtDep) delete f1CutMaxDCAToVertexXYPtDep;
f1CutMaxDCAToVertexXYPtDep = 0;
if( f1CutMaxDCAToVertexZPtDep) delete f1CutMaxDCAToVertexZPtDep;
f1CutMaxDCAToVertexZPtDep = 0;
if( f1CutMinDCAToVertexXYPtDep)delete f1CutMinDCAToVertexXYPtDep;
f1CutMinDCAToVertexXYPtDep = 0;
if(f1CutMinDCAToVertexZPtDep)delete f1CutMinDCAToVertexZPtDep;
f1CutMinDCAToVertexZPtDep = 0;
fPMin = 0;
fPMax = 0;
fPtMin = 0;
fPtMax = 0;
fPxMin = 0;
fPxMax = 0;
fPyMin = 0;
fPyMax = 0;
fPzMin = 0;
fPzMax = 0;
fEtaMin = 0;
fEtaMax = 0;
fRapMin = 0;
fRapMax = 0;
fHistogramsOn = kFALSE;
for (Int_t i=0; i<2; ++i)
{
fhNClustersITS[i] = 0;
fhNClustersTPC[i] = 0;
fhNSharedClustersTPC[i] = 0;
fhNCrossedRowsTPC[i] = 0;
fhRatioCrossedRowsOverFindableClustersTPC[i] = 0;
fhChi2PerClusterITS[i] = 0;
fhChi2PerClusterTPC[i] = 0;
fhChi2TPCConstrainedVsGlobal[i] = 0;
fhNClustersForITSPID[i] = 0;
fhNMissingITSPoints[i] = 0;
fhC11[i] = 0;
fhC22[i] = 0;
fhC33[i] = 0;
fhC44[i] = 0;
fhC55[i] = 0;
fhRel1PtUncertainty[i] = 0;
fhDXY[i] = 0;
fhDZ[i] = 0;
fhDXYDZ[i] = 0;
fhDXYvsDZ[i] = 0;
fhDXYNormalized[i] = 0;
fhDZNormalized[i] = 0;
fhDXYvsDZNormalized[i] = 0;
fhNSigmaToVertex[i] = 0;
fhPt[i] = 0;
fhEta[i] = 0;
fhTOFdistance[i] = 0;
}
ffDTheoretical = 0;
fhCutStatistics = 0;
fhCutCorrelation = 0;
}
//_____________________________________________________________________________
AliESDtrackCuts &AliESDtrackCuts::operator=(const AliESDtrackCuts &c)
{
/// Assignment operator
if (this != &c) ((AliESDtrackCuts &) c).Copy(*this);
return *this;
}
//_____________________________________________________________________________
void AliESDtrackCuts::Copy(TObject &c) const
{
/// Copy function
AliESDtrackCuts& target = (AliESDtrackCuts &) c;
target.Init();
target.fCutMinNClusterTPC = fCutMinNClusterTPC;
target.fCutMinNClusterITS = fCutMinNClusterITS;
target.fCutMinNCrossedRowsTPC = fCutMinNCrossedRowsTPC;
target.fCutMinRatioCrossedRowsOverFindableClustersTPC = fCutMinRatioCrossedRowsOverFindableClustersTPC;
if(f1CutMinNClustersTPCPtDep){
target.f1CutMinNClustersTPCPtDep = (TFormula*) f1CutMinNClustersTPCPtDep->Clone("f1CutMinNClustersTPCPtDep");
}
target.fCutMaxPtDepNClustersTPC = fCutMaxPtDepNClustersTPC;
target.fCutMinLengthActiveVolumeTPC = fCutMinLengthActiveVolumeTPC;
target.fDeadZoneWidth=fDeadZoneWidth; // width of the TPC dead zone (missing pads + PRF +ExB)
target.fCutGeoNcrNclLength=fCutGeoNcrNclLength; // cut on the geometical length condition Ngeom(cm)>cutGeoNcrNclLength default=130
target.fCutGeoNcrNclGeom1Pt=fCutGeoNcrNclGeom1Pt; // 1/pt dependence slope cutGeoNcrNclLength:=fCutGeoNcrNclLength-abs(1/pt)^fCutGeoNcrNclGeom1Pt
target.fCutGeoNcrNclFractionNcr=fCutGeoNcrNclFractionNcr; // relative fraction cut Ncr condition Ncr>cutGeoNcrNclFractionNcr*fCutGeoNcrNclLength
target.fCutGeoNcrNclFractionNcl=fCutGeoNcrNclFractionNcl; // relative fraction cut Ncr condition Ncl>cutGeoNcrNclFractionNcl
target.fCutOutDistortedRegionTPC=fCutOutDistortedRegionTPC;
target.fCutMaxChi2PerClusterTPC = fCutMaxChi2PerClusterTPC;
target.fCutMaxChi2PerClusterITS = fCutMaxChi2PerClusterITS;
target.fCutMaxChi2TPCConstrainedVsGlobal = fCutMaxChi2TPCConstrainedVsGlobal;
target.fCutMaxChi2TPCConstrainedVsGlobalVertexType = fCutMaxChi2TPCConstrainedVsGlobalVertexType;
target.fCutMaxMissingITSPoints = fCutMaxMissingITSPoints;
for (Int_t i = 0; i < 3; i++)
target.fCutClusterRequirementITS[i] = fCutClusterRequirementITS[i];
target.fCutMaxC11 = fCutMaxC11;
target.fCutMaxC22 = fCutMaxC22;
target.fCutMaxC33 = fCutMaxC33;
target.fCutMaxC44 = fCutMaxC44;
target.fCutMaxC55 = fCutMaxC55;
target.fCutMaxRel1PtUncertainty = fCutMaxRel1PtUncertainty;
target.fCutMaxRel1PtUncertaintyPtDep = fCutMaxRel1PtUncertaintyPtDep;
if(fCutMaxRel1PtUncertaintyPtDep.Length()>0)target.SetMaxRel1PtUncertaintyPtDep(fCutMaxRel1PtUncertaintyPtDep.Data());
if(f1CutMaxRel1PtUncertaintyPtDep){
target.f1CutMaxRel1PtUncertaintyPtDep = (TFormula*) f1CutMaxRel1PtUncertaintyPtDep->Clone("f1CutMaxRel1PtUncertaintyPtDep");
}
target.fCutAcceptKinkDaughters = fCutAcceptKinkDaughters;
target.fCutAcceptSharedTPCClusters = fCutAcceptSharedTPCClusters;
target.fCutMaxFractionSharedTPCClusters = fCutMaxFractionSharedTPCClusters;
target.fCutRequireTPCRefit = fCutRequireTPCRefit;
target.fCutRequireTPCStandAlone = fCutRequireTPCStandAlone;
target.fCutRequireITSRefit = fCutRequireITSRefit;
target.fCutRequireITSPid = fCutRequireITSPid;
target.fCutRequireITSStandAlone = fCutRequireITSStandAlone;
target.fCutRequireITSpureSA = fCutRequireITSpureSA;
target.fCutNsigmaToVertex = fCutNsigmaToVertex;
target.fCutSigmaToVertexRequired = fCutSigmaToVertexRequired;
target.fCutMaxDCAToVertexXY = fCutMaxDCAToVertexXY;
target.fCutMaxDCAToVertexZ = fCutMaxDCAToVertexZ;
target.fCutDCAToVertex2D = fCutDCAToVertex2D;
target.fCutMinDCAToVertexXY = fCutMinDCAToVertexXY;
target.fCutMinDCAToVertexZ = fCutMinDCAToVertexZ;
target.fCutMaxDCAToVertexXYPtDep = fCutMaxDCAToVertexXYPtDep;
if(fCutMaxDCAToVertexXYPtDep.Length()>0)target.SetMaxDCAToVertexXYPtDep(fCutMaxDCAToVertexXYPtDep.Data());
target.fCutMaxDCAToVertexZPtDep = fCutMaxDCAToVertexZPtDep;
if(fCutMaxDCAToVertexZPtDep.Length()>0)target.SetMaxDCAToVertexZPtDep(fCutMaxDCAToVertexZPtDep.Data());
target.fCutMinDCAToVertexXYPtDep = fCutMinDCAToVertexXYPtDep;
if(fCutMinDCAToVertexXYPtDep.Length()>0)target.SetMinDCAToVertexXYPtDep(fCutMinDCAToVertexXYPtDep.Data());
target.fCutMinDCAToVertexZPtDep = fCutMinDCAToVertexZPtDep;
if(fCutMinDCAToVertexZPtDep.Length()>0)target.SetMinDCAToVertexZPtDep(fCutMinDCAToVertexZPtDep.Data());
target.fPMin = fPMin;
target.fPMax = fPMax;
target.fPtMin = fPtMin;
target.fPtMax = fPtMax;
target.fPxMin = fPxMin;
target.fPxMax = fPxMax;
target.fPyMin = fPyMin;
target.fPyMax = fPyMax;
target.fPzMin = fPzMin;
target.fPzMax = fPzMax;
target.fEtaMin = fEtaMin;
target.fEtaMax = fEtaMax;
target.fRapMin = fRapMin;
target.fRapMax = fRapMax;
target.fFlagCutTOFdistance = fFlagCutTOFdistance;
target.fCutTOFdistance = fCutTOFdistance;
target.fCutRequireTOFout = fCutRequireTOFout;
target.fHistogramsOn = fHistogramsOn;
for (Int_t i=0; i<2; ++i)
{
if (fhNClustersITS[i]) target.fhNClustersITS[i] = (TH1F*) fhNClustersITS[i]->Clone();
if (fhNClustersTPC[i]) target.fhNClustersTPC[i] = (TH1F*) fhNClustersTPC[i]->Clone();
if (fhNSharedClustersTPC[i]) target.fhNSharedClustersTPC[i] = (TH1F*) fhNSharedClustersTPC[i]->Clone();
if (fhNCrossedRowsTPC[i]) target.fhNCrossedRowsTPC[i] = (TH1F*) fhNCrossedRowsTPC[i]->Clone();
if (fhRatioCrossedRowsOverFindableClustersTPC[i]) target.fhRatioCrossedRowsOverFindableClustersTPC[i] = (TH1F*) fhRatioCrossedRowsOverFindableClustersTPC[i]->Clone();
if (fhChi2PerClusterITS[i]) target.fhChi2PerClusterITS[i] = (TH1F*) fhChi2PerClusterITS[i]->Clone();
if (fhChi2PerClusterTPC[i]) target.fhChi2PerClusterTPC[i] = (TH1F*) fhChi2PerClusterTPC[i]->Clone();
if (fhChi2TPCConstrainedVsGlobal[i]) target.fhChi2TPCConstrainedVsGlobal[i] = (TH1F*) fhChi2TPCConstrainedVsGlobal[i]->Clone();
if (fhNClustersForITSPID[i]) target.fhNClustersForITSPID[i] = (TH1F*) fhNClustersForITSPID[i]->Clone();
if (fhNMissingITSPoints[i]) target.fhNMissingITSPoints[i] = (TH1F*) fhNMissingITSPoints[i]->Clone();
if (fhC11[i]) target.fhC11[i] = (TH1F*) fhC11[i]->Clone();
if (fhC22[i]) target.fhC22[i] = (TH1F*) fhC22[i]->Clone();
if (fhC33[i]) target.fhC33[i] = (TH1F*) fhC33[i]->Clone();
if (fhC44[i]) target.fhC44[i] = (TH1F*) fhC44[i]->Clone();
if (fhC55[i]) target.fhC55[i] = (TH1F*) fhC55[i]->Clone();
if (fhRel1PtUncertainty[i]) target.fhRel1PtUncertainty[i] = (TH1F*) fhRel1PtUncertainty[i]->Clone();
if (fhDXY[i]) target.fhDXY[i] = (TH1F*) fhDXY[i]->Clone();
if (fhDZ[i]) target.fhDZ[i] = (TH1F*) fhDZ[i]->Clone();
if (fhDXYDZ[i]) target.fhDXYDZ[i] = (TH1F*) fhDXYDZ[i]->Clone();
if (fhDXYvsDZ[i]) target.fhDXYvsDZ[i] = (TH2F*) fhDXYvsDZ[i]->Clone();
if (fhDXYNormalized[i]) target.fhDXYNormalized[i] = (TH1F*) fhDXYNormalized[i]->Clone();
if (fhDZNormalized[i]) target.fhDZNormalized[i] = (TH1F*) fhDZNormalized[i]->Clone();
if (fhDXYvsDZNormalized[i]) target.fhDXYvsDZNormalized[i] = (TH2F*) fhDXYvsDZNormalized[i]->Clone();
if (fhNSigmaToVertex[i]) target.fhNSigmaToVertex[i] = (TH1F*) fhNSigmaToVertex[i]->Clone();
if (fhPt[i]) target.fhPt[i] = (TH1F*) fhPt[i]->Clone();
if (fhEta[i]) target.fhEta[i] = (TH1F*) fhEta[i]->Clone();
if (fhTOFdistance[i]) target.fhTOFdistance[i] = (TH2F*) fhTOFdistance[i]->Clone();
}
if (ffDTheoretical) target.ffDTheoretical = (TF1*) ffDTheoretical->Clone();
if (fhCutStatistics) target.fhCutStatistics = (TH1F*) fhCutStatistics->Clone();
if (fhCutCorrelation) target.fhCutCorrelation = (TH2F*) fhCutCorrelation->Clone();
TNamed::Copy(c);
}
//_____________________________________________________________________________
Long64_t AliESDtrackCuts::Merge(TCollection* list) {
/// Merge a list of AliESDtrackCuts objects with this (needed for PROOF)
/// Returns the number of merged objects (including this)
if (!list)
return 0;
if (list->IsEmpty())
return 1;
if (!fHistogramsOn)
return 0;
TIterator* iter = list->MakeIterator();
TObject* obj;
// collection of measured and generated histograms
Int_t count = 0;
while ((obj = iter->Next())) {
AliESDtrackCuts* entry = dynamic_cast<AliESDtrackCuts*>(obj);
if (entry == 0)
continue;
if (!entry->fHistogramsOn)
continue;
for (Int_t i=0; i<2; i++) {
fhNClustersITS[i] ->Add(entry->fhNClustersITS[i] );
fhNClustersTPC[i] ->Add(entry->fhNClustersTPC[i] );
if (fhNSharedClustersTPC[i])
fhNSharedClustersTPC[i] ->Add(entry->fhNSharedClustersTPC[i] );
if (fhNCrossedRowsTPC[i])
fhNCrossedRowsTPC[i] ->Add(entry->fhNCrossedRowsTPC[i] );
if (fhRatioCrossedRowsOverFindableClustersTPC[i])
fhRatioCrossedRowsOverFindableClustersTPC[i] ->Add(entry->fhRatioCrossedRowsOverFindableClustersTPC[i] );
fhChi2PerClusterITS[i] ->Add(entry->fhChi2PerClusterITS[i]);
fhChi2PerClusterTPC[i] ->Add(entry->fhChi2PerClusterTPC[i]);
if (fhChi2TPCConstrainedVsGlobal[i])
fhChi2TPCConstrainedVsGlobal[i]->Add(entry->fhChi2TPCConstrainedVsGlobal[i]);
if (fhNClustersForITSPID[i])
fhNClustersForITSPID[i]->Add(entry->fhNClustersForITSPID[i]);
if (fhNMissingITSPoints[i])
fhNMissingITSPoints[i] ->Add(entry->fhNMissingITSPoints[i]);
fhC11[i] ->Add(entry->fhC11[i] );
fhC22[i] ->Add(entry->fhC22[i] );
fhC33[i] ->Add(entry->fhC33[i] );
fhC44[i] ->Add(entry->fhC44[i] );
fhC55[i] ->Add(entry->fhC55[i] );
fhRel1PtUncertainty[i] ->Add(entry->fhRel1PtUncertainty[i]);
fhDXY[i] ->Add(entry->fhDXY[i] );
fhDZ[i] ->Add(entry->fhDZ[i] );
fhDXYDZ[i] ->Add(entry->fhDXYDZ[i] );
fhDXYvsDZ[i] ->Add(entry->fhDXYvsDZ[i] );
fhDXYNormalized[i] ->Add(entry->fhDXYNormalized[i] );
fhDZNormalized[i] ->Add(entry->fhDZNormalized[i] );
fhDXYvsDZNormalized[i] ->Add(entry->fhDXYvsDZNormalized[i]);
fhNSigmaToVertex[i] ->Add(entry->fhNSigmaToVertex[i]);
fhPt[i] ->Add(entry->fhPt[i]);
fhEta[i] ->Add(entry->fhEta[i]);
fhTOFdistance[i] ->Add(entry->fhTOFdistance[i]);
}
fhCutStatistics ->Add(entry->fhCutStatistics);
fhCutCorrelation ->Add(entry->fhCutCorrelation);
count++;
}
return count+1;
}
Bool_t AliESDtrackCuts::IsSelected(TObject *o) {
if(o->IsA() == AliESDtrack::Class()) return AcceptTrack(static_cast<AliESDtrack *>(o));
else if(o->InheritsFrom(AliVTrack::Class())) return AcceptVTrack(static_cast<AliVTrack *>(o));
return false; // Type unsupported - do not select the object;
}
void AliESDtrackCuts::SetMinNClustersTPCPtDep(TFormula *f1, Float_t ptmax)
{
/// Sets the pT dependent NClustersTPC cut
if(f1){
delete f1CutMinNClustersTPCPtDep;
f1CutMinNClustersTPCPtDep = (TFormula*)f1->Clone("f1CutMinNClustersTPCPtDep");
}
fCutMaxPtDepNClustersTPC=ptmax;
}
void AliESDtrackCuts::SetCutGeoNcrNcl(Float_t deadZoneWidth,Float_t cutGeoNcrNclLength, Float_t cutGeoNcrNclGeom1Pt, Float_t cutGeoNcrNclFractionNcr, Float_t cutGeoNcrNclFractionNcl){
/// Set combination of the TPC geometrical cut, cut on number of crossed rows and cut on the clusters
/// The goal of cut is to avoid of the dead zone regions
/// - pointer to WIKI to put here
/// - JIRA discussion and links to presenttions - https://alice.its.cern.ch/jira/browse/ATO-233
/// Cut to be used for measurement where the homogenous coverage are not required
/// In case good momentum resolution and description of the matching efficiency needed, also for analysis reuiring homogenous phi coverage - this cut to be condered
/// Note this is repalcemnt of single cut
fDeadZoneWidth=deadZoneWidth;
fCutGeoNcrNclLength=cutGeoNcrNclLength;
fCutGeoNcrNclGeom1Pt=cutGeoNcrNclGeom1Pt;
fCutGeoNcrNclFractionNcr=cutGeoNcrNclFractionNcr;
fCutGeoNcrNclFractionNcl=cutGeoNcrNclFractionNcl;
}
//____________________________________________________________________
AliESDtrackCuts* AliESDtrackCuts::GetStandardTPCOnlyTrackCuts()
{
/// creates an AliESDtrackCuts object and fills it with standard (pre data-taking) values for TPC-only cuts
AliInfoClass("Creating track cuts for TPC-only.");
AliESDtrackCuts* esdTrackCuts = new AliESDtrackCuts;
esdTrackCuts->SetMinNClustersTPC(50);
esdTrackCuts->SetMaxChi2PerClusterTPC(4);
esdTrackCuts->SetAcceptKinkDaughters(kFALSE);
esdTrackCuts->SetMaxDCAToVertexZ(3.2);
esdTrackCuts->SetMaxDCAToVertexXY(2.4);
esdTrackCuts->SetDCAToVertex2D(kTRUE);
return esdTrackCuts;
}
//____________________________________________________________________
AliESDtrackCuts* AliESDtrackCuts::GetStandardITSTPCTrackCuts2009(Bool_t selPrimaries)
{
/// creates an AliESDtrackCuts object and fills it with standard values for ITS-TPC cuts for pp 2009 data
AliInfoClass("Creating track cuts for ITS+TPC (2009 definition).");
AliESDtrackCuts* esdTrackCuts = new AliESDtrackCuts;
// TPC
esdTrackCuts->SetRequireTPCStandAlone(kTRUE); // to get chi2 and ncls of kTPCin
esdTrackCuts->SetMinNClustersTPC(70);
esdTrackCuts->SetMaxChi2PerClusterTPC(4);
esdTrackCuts->SetAcceptKinkDaughters(kFALSE);
esdTrackCuts->SetRequireTPCRefit(kTRUE);
// ITS
esdTrackCuts->SetRequireITSRefit(kTRUE);
esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,
AliESDtrackCuts::kAny);
if(selPrimaries) {
// 7*(0.0050+0.0060/pt^0.9)
esdTrackCuts->SetMaxDCAToVertexXYPtDep("0.0350+0.0420/pt^0.9");
esdTrackCuts->SetMaxChi2TPCConstrainedGlobal(36);
}
esdTrackCuts->SetMaxDCAToVertexZ(1.e6);
esdTrackCuts->SetDCAToVertex2D(kFALSE);
esdTrackCuts->SetRequireSigmaToVertex(kFALSE);
//esdTrackCuts->SetEtaRange(-0.8,+0.8);
esdTrackCuts->SetMaxChi2PerClusterITS(36);
return esdTrackCuts;
}
//____________________________________________________________________
AliESDtrackCuts* AliESDtrackCuts::GetStandardITSTPCTrackCuts2011(Bool_t selPrimaries, Int_t clusterCut)
{
/// creates an AliESDtrackCuts object and fills it with standard values for ITS-TPC cuts for pp 2011 data
/// if clusterCut = 1, the cut on the number of clusters is replaced by
/// a cut on the number of crossed rows and on the ration crossed
/// rows/findable clusters
AliInfoClass("Creating track cuts for ITS+TPC (2011 definition).");
AliESDtrackCuts* esdTrackCuts = new AliESDtrackCuts;
// TPC
if(clusterCut == 0) esdTrackCuts->SetMinNClustersTPC(50);
else if (clusterCut == 1) {
esdTrackCuts->SetMinNCrossedRowsTPC(70);
esdTrackCuts->SetMinRatioCrossedRowsOverFindableClustersTPC(0.8);
}
else {
AliWarningClass(Form("Wrong value of the clusterCut parameter (%d), using cut on Nclusters",clusterCut));
esdTrackCuts->SetMinNClustersTPC(50);
}
esdTrackCuts->SetMaxChi2PerClusterTPC(4);
esdTrackCuts->SetAcceptKinkDaughters(kFALSE);
esdTrackCuts->SetRequireTPCRefit(kTRUE);
// ITS
esdTrackCuts->SetRequireITSRefit(kTRUE);
esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,
AliESDtrackCuts::kAny);
if(selPrimaries) {
// 7*(0.0015+0.0050/pt^1.1)
esdTrackCuts->SetMaxDCAToVertexXYPtDep("0.0105+0.0350/pt^1.1");
esdTrackCuts->SetMaxChi2TPCConstrainedGlobal(36);
}
esdTrackCuts->SetMaxDCAToVertexZ(2);
esdTrackCuts->SetDCAToVertex2D(kFALSE);
esdTrackCuts->SetRequireSigmaToVertex(kFALSE);
esdTrackCuts->SetMaxChi2PerClusterITS(36);
return esdTrackCuts;
}
//______________________________________________________________________
AliESDtrackCuts* AliESDtrackCuts::GetStandardITSTPCTrackCuts2011TighterChi2(Bool_t selPrimaries, Int_t clusterCut)
{
// In 2020 the error parametrisation in the TPC was improved resulting in a narrower chi2/cls distribution.
// Therefore all newer reconstructions require a tighter cut on this variable to remove outlier tracks.
// In particular this change affects the fowllowing periods (and corresponding MCs):
// LHC18qr_pass3, LHC15o_pass2, LHC16rsqt_pass2 (and all newer reconstructions).
AliESDtrackCuts* esdTrackCuts = GetStandardITSTPCTrackCuts2011(selPrimaries, clusterCut);
esdTrackCuts->SetMaxChi2PerClusterTPC(2.5);
AliInfoClass("Applying tighter chi2/ncl cut for reconstruction with improved error parametrisation.");
return esdTrackCuts;
}
//____________________________________________________________________
AliESDtrackCuts* AliESDtrackCuts::GetStandardITSTPCTrackCuts2015PbPb(Bool_t selPrimaries/*=kTRUE*/, Int_t clusterCut/*=1*/, Bool_t cutAcceptanceEdges/*=kTRUE*/, Bool_t removeDistortedRegions/*=kFALSE*/) {
/// creates an AliESDtrackCuts object and fills it with standard values for ITS-TPC cuts for PbPb 2015 data
/// if clusterCut = 1, the cut on the number of clusters is replaced by
/// a cut on the number of crossed rows and on the ration crossed
/// rows/findable clusters
AliInfoClass("Creating track cuts for ITS+TPC (2015 Pb-Pb run definition).");
AliWarningClass("THIS TRACK-CUT SET HAS NOT YET BEEN VALIDATED AND IS NOT YET FROZEN. TO BE USED FOR TESTING PURPOSES ONLY.");
//
AliESDtrackCuts* esdTrackCuts = new AliESDtrackCuts;
// TPC
if(clusterCut == 0) esdTrackCuts->SetMinNClustersTPC(50);
else if (clusterCut == 1) {
esdTrackCuts->SetMinNCrossedRowsTPC(70);
esdTrackCuts->SetMinRatioCrossedRowsOverFindableClustersTPC(0.8);
}
else {
AliWarningClass(Form("Wrong value of the clusterCut parameter (%d), using cut on Nclusters",clusterCut));
esdTrackCuts->SetMinNClustersTPC(50);
}
//
if (cutAcceptanceEdges) esdTrackCuts->SetCutGeoNcrNcl(2., 130., 1.5, 0.0, 0.0); // only dead zone and not clusters per length
if (removeDistortedRegions) esdTrackCuts->SetCutOutDistortedRegionsTPC(kTRUE);
//
esdTrackCuts->SetMaxChi2PerClusterTPC(4);
esdTrackCuts->SetAcceptKinkDaughters(kFALSE);
esdTrackCuts->SetRequireTPCRefit(kTRUE);
// ITS
esdTrackCuts->SetRequireITSRefit(kTRUE);
esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,
AliESDtrackCuts::kAny);
if(selPrimaries) {
// 7*(0.0015+0.0050/pt^1.1)
esdTrackCuts->SetMaxDCAToVertexXYPtDep("0.0105+0.0350/pt^1.1");
esdTrackCuts->SetMaxChi2TPCConstrainedGlobal(36);
}
esdTrackCuts->SetMaxDCAToVertexZ(2);
esdTrackCuts->SetDCAToVertex2D(kFALSE);
esdTrackCuts->SetRequireSigmaToVertex(kFALSE);
esdTrackCuts->SetMaxChi2PerClusterITS(36);
return esdTrackCuts;
}
//______________________________________________________________________
AliESDtrackCuts* AliESDtrackCuts::GetStandardITSTPCTrackCuts2015PbPbTighterChi2(Bool_t selPrimaries/*=kTRUE*/, Int_t clusterCut/*=1*/, Bool_t cutAcceptanceEdges/*=kTRUE*/, Bool_t removeDistortedRegions/*=kFALSE*/)
{
// In 2020 the error parametrisation in the TPC was improved resulting in a narrower chi2/cls distribution.
// Therefore all newer reconstructions require a tighter cut on this variable to remove outlier tracks.
// In particular this change affects the fowllowing periods (and corresponding MCs):
// LHC18qr_pass3, LHC15o_pass2, LHC16rsqt_pass2 (and all newer reconstructions).
AliESDtrackCuts* esdTrackCuts = GetStandardITSTPCTrackCuts2015PbPb(selPrimaries, clusterCut, cutAcceptanceEdges, removeDistortedRegions);
esdTrackCuts->SetMaxChi2PerClusterTPC(2.5);
AliInfoClass("Applying tighter chi2/ncl cut for reconstruction with improved error parametrisation.");
return esdTrackCuts;
}
//____________________________________________________________________
AliESDtrackCuts* AliESDtrackCuts::GetStandardITSTPCTrackCuts2010(Bool_t selPrimaries,Int_t clusterCut)
{
/// creates an AliESDtrackCuts object and fills it with standard values for ITS-TPC cuts for pp 2010 data
/// if clusterCut = 1, the cut on the number of clusters is replaced by
/// a cut on the number of crossed rows and on the ration crossed
/// rows/findable clusters
AliInfoClass("Creating track cuts for ITS+TPC (2010 definition).");
AliESDtrackCuts* esdTrackCuts = new AliESDtrackCuts;
// TPC
if(clusterCut == 0) esdTrackCuts->SetMinNClustersTPC(70);
else if (clusterCut == 1) {
esdTrackCuts->SetMinNCrossedRowsTPC(70);
esdTrackCuts->SetMinRatioCrossedRowsOverFindableClustersTPC(0.8);
}
else {
AliWarningClass(Form("Wrong value of the clusterCut parameter (%d), using cut on Nclusters",clusterCut));
esdTrackCuts->SetMinNClustersTPC(70);
}
esdTrackCuts->SetMaxChi2PerClusterTPC(4);
esdTrackCuts->SetAcceptKinkDaughters(kFALSE);
esdTrackCuts->SetRequireTPCRefit(kTRUE);
// ITS
esdTrackCuts->SetRequireITSRefit(kTRUE);
esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,
AliESDtrackCuts::kAny);
if(selPrimaries) {
// 7*(0.0026+0.0050/pt^1.01)
esdTrackCuts->SetMaxDCAToVertexXYPtDep("0.0182+0.0350/pt^1.01");
esdTrackCuts->SetMaxChi2TPCConstrainedGlobal(36);
}
esdTrackCuts->SetMaxDCAToVertexZ(2);
esdTrackCuts->SetDCAToVertex2D(kFALSE);
esdTrackCuts->SetRequireSigmaToVertex(kFALSE);
esdTrackCuts->SetMaxChi2PerClusterITS(36);
return esdTrackCuts;
}
//____________________________________________________________________
AliESDtrackCuts* AliESDtrackCuts::GetStandardITSPureSATrackCuts2009(Bool_t selPrimaries, Bool_t useForPid)
{
/// creates an AliESDtrackCuts object and fills it with standard values for ITS pure SA tracks
AliESDtrackCuts* esdTrackCuts = new AliESDtrackCuts;
esdTrackCuts->SetRequireITSPureStandAlone(kTRUE);
esdTrackCuts->SetRequireITSRefit(kTRUE);
esdTrackCuts->SetMinNClustersITS(4);
esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,
AliESDtrackCuts::kAny);
esdTrackCuts->SetMaxChi2PerClusterITS(1.);
if(selPrimaries) {
// 7*(0.0085+0.0026/pt^1.55)
esdTrackCuts->SetMaxDCAToVertexXYPtDep("0.0595+0.0182/pt^1.55");
}
if(useForPid){