]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/dNdetaConfig.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / dNdetaConfig.C
1 /**
2  * @file   ForwarddNdetaConfig.C
3  * @author Christian Holm Christensen <cholm@nbi.dk>
4  * @date   Thu May 15 20:33:03 2014
5  * 
6  * @brief  Configuration file for Forward dN/deta task 
7  * 
8  * 
9  */
10 void dNdetaConfig(AliBasedNdetaTask* task)
11 {
12   // - Whether to correct for empty bins when projecting 
13   // task->SetCorrEmpty(true);
14   task->SetCorrEmpty(false); 
15   // task->IsA()->InheritsFrom(AliCentraldNdetaTask::Class()));
16   // - Whether to use TH2::ProjectionX 
17   task->SetUseROOTProjectX(false);
18
19   // --- Special for Hans' analysis ----------------------------------
20   // - Set the filename of the corresponding MC analysis
21   // const char* mcanalysisfilename = 
22   //    "/home/hehi/alex/work/dispVtxDNdeta/mcCorrectionPos.root"
23   // task->SetMCFinalCorrFilename(mcanalysisfilename);
24
25   // --- Other things we may overwrite -------------------------------
26   // - Set the vertex range to use 
27   // task->SetIpZRange(vzMin, vzMax);
28
29   // - Set the trigger mask to use (INEL,INEL>0,NSD)
30   // task->SetTriggerMask(trig);
31
32   // - Set the trigger efficiency 
33   // task->SetTriggerEff(trigEff); // 0.997535);
34   // task->SetTriggerEff0(trigEff0); 
35
36   // - Set how to normalize. Bit mask of
37   // 
38   //    kNone           Normalise to accepted events 
39   //    kEventLevel     Normalise to all events in selected range 
40   //    kAltEventLevel  Normalise to all events in selected range 
41   //    kBackground     Also correct for background triggers 
42   // 
43   //   kNone, kEventLevel, and kAltEventLevel are mutually exclusive.
44   //   If neither kEventLevel, nor kAltEventLevel is specified, then
45   //   kNone is assumed.  kBackground (when implemented) only makes
46   //   sense with kEventLevel and kAltEventLevel.  Furthermore, there
47   //   are some constants that encode the common cases
48   //     
49   //    kFull    = kEventLevel |  kBackground  
50   //    kAltFull = kAltEventLevel |  kBackground  
51   // 
52   //   Default is kFull
53   // task->SetNormalizationScheme(scheme);
54
55   // - Set which pile-up flags to mask out. Bit mask of 
56   // 
57   //    kPileupNormal   Use the flag from AOD (default)
58   //    kPileupSPD      Check the pile-up flag from SPD 
59   //    kPileupTrk      Check the pileup flag from tracks 
60   //    kPileupBC       Check the out-of-bunch pileup flag 
61   //    kPileupFull     Use the flag from AOD 
62   //    kPileupIgnore   Also accept pileup 
63   //    kPileupUtil     Use AliAnalysisUtils 
64   // 
65   // task->SetPileupMask(AliBasedNdetaTask::kPileupNormal);
66   // 
67   // If the pile-up mask is set to kPileupUtil above, one can do 
68   // AliAnalysisUtils& au = task->GetAnalysisUtils();
69   // - Use 'multi-vertex' pile-up selection.  If true use track
70   //   vertices rather than tracklet vertices
71   // au.SetUseMVPlpSelection(false);
72   // - Use 'out-of-bunch' pile-up selection
73   // au.SetUseOutOfBunchPileUp(false);
74   // - If using track pile-up vertex, check for pile-up from other BC
75   // au.SetCheckPlpFromDifferentBCMV(false);
76   // - Least number of contributors to track pile-up vertex
77   // au.SetMinPlpContribMV(5);
78   // - Largest chi^2/nu of track pile-up vertex
79   // au.SetMaxPlpChi2MV(5);
80   // - Least weighted distance between primary and track pile-up
81   //   vertex (cm)
82   // au.SetMinWDistMV(15.);
83   // - Wether to use an adaptive algorithm for the tracklet pile-up
84   //   flagging. If this is enabled, the parameters MinPlpContribSPD,
85   //   MinPlpZdistSPD, nSigmaPlpZdistSPD, nSigmaPlpDiamXYSPD,
86   //   nSigmaPlpDiamZSPD are not used.  Instead the parameters are set
87   //   according the the number of tracklets (nTrkL):
88   // 
89   //   - nTrkL < 20 MinPlpContribSPD=3, 
90   //   - nTrkL < 50 MinPlpContribSPD=4
91   //   - else       MinPlpContribSPD=5
92   // 
93   //   and MinPlpZdistSPD=0.8, nSigmaZdistSPD=3, nSigmaDiamXYSPD=2,
94   //   nSigmaDiamZSPD=5.
95   // au.SetUseSPDCutInMultBins(false);
96   // - Least number of contributors to tracklet pile-up vertex
97   // au.SetMinPlpContribSPD(5);
98   // - Least distance along Z between primary and tracklet pile-up
99   //   vertex (cm)
100   // au.SetMinPlpZdistSPD(0.8);
101   // - Least distance along Z between primary and tracklet pile-up
102   //   vertex in terms of the errors on the vertices
103   // au.SetnSigmaPlpZdistSPD(3);
104   // - Only consider tracklet vertices within this number of times the
105   //   sigma in the XY-plane of the interaction diamond.
106   // au.SetnSigmaPlpDiamXYSPD(2);
107   // - Only consider tracklet vertices within this number of times the
108   //   sigma along Z of the interaction diamond.
109   // au.SetnSigmaPlpDiamZ(5);
110
111   // - Set whether to check for SPD outliers 
112   // task->SetCheckSPDOutlier(false);
113
114   // - Set the centrality estimator to use 
115   // task->SetCentralityMethod(cent);
116
117   // - Set the centrality bins to use.  These are mutually exclusive.
118   //   Note, that a bin specified as a-b, covers the interval from a,
119   //   inclusive to b exclusive.  An upper bound of 100 is treated
120   //   especially, and the upper bound is inclusive in that case .
121   // Short_t bins[] = { 0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 100 };
122   // task->SetCentralityAxis(10, bins);
123   
124   // - Set satellite vertex flag
125   // task->SetSatelliteVertices(satVtx);
126 }
127 // EOF
128