]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/AliBasedNdetaTask.h
Fixed references from PWG2 -> PWGLF - very efficiently done using ETags.
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliBasedNdetaTask.h
1 //
2 // Task to analyse the AOD for for dN/deta in the base regions 
3 //
4 #ifndef ALIBASEDNDETATASK_H
5 #define ALIBASEDNDETATASK_H
6 /**
7  * @file   AliBasedNdetaTask.h
8  * @author Christian Holm Christensen <cholm@dalsgaard.hehi.nbi.dk>
9  * @date   Wed Mar 23 13:58:12 2011
10  * 
11  * @brief  
12  * 
13  * @ingroup pwglf_forward_dndeta
14  * 
15  */
16 #include <AliAnalysisTaskSE.h>
17 class TAxis;
18 class TList;
19 class TH2D;
20 class TH1D;
21 class TH1I;
22 class AliAODEvent;
23 class AliAODForwardMult;
24 class TObjArray;
25
26 /** 
27  * @defgroup pwglf_forward_tasks_dndeta dN/deta tasks 
28  * @ingroup pwglf_forward_tasks 
29  */
30 /**
31  * @defgroup pwglf_forward_dndeta dN/deta
32  *
33  * @f$ dN/d\eta@f$ code 
34  *
35  * @ingroup pwglf_forward_topical
36  */
37 /**
38  * Base class for tasks to determine @f$ dN/d\eta@f$ 
39  *
40  * @ingroup pwglf_forward_tasks_dndeta
41  * @ingroup pwglf_forward_dndeta
42  */
43 class AliBasedNdetaTask : public AliAnalysisTaskSE
44 {
45 public:
46   /** 
47    * Bit mask values of the normalisation scheme 
48    */
49   enum {
50     /** Only normalize to accepted events */
51     kNone = 0,
52     /** 
53      * Do the full normalisation 
54      * @f[ 
55      *   N = \frac{1}{\epsilon_X}(N_A-N_A/N_V(N_T-N_V)) = 
56      *       \frac{1}{\epsilon_X}\frac{1}{\epsilon_V}N_A
57      * @f]
58      */
59     kEventLevel = 0x1,
60     /** 
61      * Do the shape correction
62      */
63     kShape = 0x2, 
64     /** 
65      * Correct for background events (A+C-E). Not implemented yet
66      */
67     kBackground = 0x4,
68     /**
69      * Correct for the trigger efficiency from MC 
70      */
71     kTriggerEfficiency = 0x8,
72     /** 
73      * Correct using zero-bin efficiency only 
74      */
75     kZeroBin = 0x10,
76     /**
77      * Do the full correction
78      */
79     kFull = kEventLevel | kShape | kBackground | kTriggerEfficiency,
80   };
81   /** 
82    * Constructor 
83    * 
84    */
85   AliBasedNdetaTask();
86   /** 
87    * Constructor
88    * 
89    * @param name    Name of task 
90    */
91   AliBasedNdetaTask(const char* name);
92   /**
93    * Destructor
94    * 
95    */
96   virtual ~AliBasedNdetaTask();
97
98   /** 
99    * @{ 
100    * @name Task configuration 
101    */
102   /** 
103    * Set the vertex range to use 
104    * 
105    * @param min Minimum (in centermeter)
106    * @param max Maximum (in centermeter)
107    */  
108   void SetVertexRange(Double_t min, Double_t max) { fVtxMin=min; fVtxMax=max; }
109   /** 
110    * Set the rebinning factor 
111    * 
112    * @param rebin Rebinning factor 
113    */
114   void SetRebinning(Int_t rebin) { fRebin = rebin; }
115   /** 
116    * Set the trigger maskl 
117    * 
118    * @param mask Trigger mask
119    */
120   void SetTriggerMask(UShort_t mask);
121   /** 
122    * Set the trigger mask 
123    * 
124    * @param mask trigger mask 
125    */
126   void SetTriggerMask(const char* mask);
127   /** 
128    * Set the centrality bins to use. 
129    * 
130    * @code 
131    *   UShort_t bins[] = { 0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };
132    *   task->SetCentralityBins(11, bins);
133    * @endcode 
134    * 
135    * @param n     Number of bins (elements in @a bins minus 1)
136    * @param bins  Bin limits 
137    */
138   void SetCentralityAxis(UShort_t n, Short_t* bins);
139   /** 
140    * Whether to cut edges when merging 
141    * 
142    * @param cut If true, cut edges 
143    */
144   void SetCutEdges(Bool_t cut) {fCutEdges = cut;}
145   /** 
146    * Set whether to correct for empty bins when projecting on the X axis. 
147    * 
148    * @param use Whether to correct for empty bins 
149    */
150   void SetCorrEmpty(Bool_t use) { fCorrEmpty = use; }
151   /** 
152    * Set whether to use the ROOT TH2::ProjectionX method when
153    * projecting on the X axis.
154    * 
155    * @param use Whether to use TH2::ProjectionX
156    */
157   void SetUseROOTProjectX(Bool_t use) { fUseROOTProj = use; }
158   /** 
159    * Trigger efficiency for selected trigger(s)
160    * 
161    * @param e Trigger efficiency 
162    */
163   void SetTriggerEff(Double_t e) { fTriggerEff = e; } 
164   /** 
165    * Set the shape correction (a.k.a., track correction) for selected
166    * trigger(s)
167    * 
168    * @param h Correction
169    */
170   void SetShapeCorrection(const TH1* h);
171   /** 
172    * Setthe normalisation scheme to use 
173    * 
174    * @param scheme Normalisation scheme 
175    */
176   void SetNormalizationScheme(UShort_t scheme);
177   /** 
178    * Space, pipe, or comma separated list of options
179    * 
180    * @param what List of options 
181    */
182   void SetNormalizationScheme(const char* what);
183   /** 
184    * Filename of final MC correction
185    * 
186    * @param filename filename
187    */
188   void SetMCFinalCorrFilename(const char* filename) { 
189     fFinalMCCorrFile.Clear();
190     fFinalMCCorrFile.Append(filename); 
191   }
192   /** 
193    * Load the normalization data - done automatically if not set from outside
194    * 
195    * @param sys system
196    * @param energy energy
197    */
198   void LoadNormalizationData(UShort_t sys, UShort_t energy);  
199   /** @} */
200   /** 
201    * Print information 
202    * 
203    * @param option Not used
204    */
205   void Print(Option_t* option="") const;
206   /** @{ 
207    *  @name Task interface 
208    */
209   /** 
210    * Initialise on master - does nothing
211    * 
212    */
213   virtual void   Init() {}
214   /** 
215    * Create output objects.  
216    *
217    * This is called once per slave process 
218    */
219   virtual void UserCreateOutputObjects();
220   /** 
221    * Process a single event 
222    * 
223    * @param option Not used
224    */
225   virtual void UserExec(Option_t* option);
226   /** 
227    * Called at end of event processing.
228    *
229    * This is called once in the master 
230    * 
231    * @param option Not used 
232    */
233   virtual void Terminate(Option_t* option);
234   /* @} */
235
236   /** 
237    * @{ 
238    * @name Services member functions 
239    */
240   /** 
241    * Make a copy of the input histogram and rebin that histogram
242    * 
243    * @param h         Histogram to rebin
244    * @param rebin     Rebinning factor 
245    * @param cutEdges  Whether to cut edges when rebinning
246    * 
247    * @return New (rebinned) histogram
248    */
249   static TH1D* Rebin(const TH1D* h, Int_t rebin, Bool_t cutEdges=false);
250   /** 
251    * Make an extension of @a h to make it symmetric about 0 
252    * 
253    * @param h Histogram to symmertrice 
254    * 
255    * @return Symmetric extension of @a h 
256    */
257   static TH1* Symmetrice(const TH1* h);
258   /** 
259    * Project onto the X axis 
260    * 
261    * @param h         2D histogram 
262    * @param name      New name 
263    * @param firstbin  First bin to use 
264    * @param lastbin   Last bin to use
265    * @param useROOT   Use TH2::ProjectionX instead of custom code 
266    * @param corr      Whether to do corrections or not 
267    * @param error     Whether to calculate errors
268    * 
269    * @return Newly created histogram or null
270    */
271   static TH1D* ProjectX(const TH2D* h, 
272                         const char* name,
273                         Int_t firstbin, 
274                         Int_t lastbin, 
275                         bool  useROOT=false,
276                         bool  corr=true,
277                         bool  error=true);
278   /** 
279    * Scale the copy of the 2D histogram by coverage in supplied 1D histogram
280    *  
281    * @param copy Data to scale 
282    * @param norm Coverage histogram 
283    */
284   static void ScaleToCoverage(TH2D* copy, const TH1D* norm);
285   /** 
286    * Set histogram graphical options, etc. 
287    * 
288    * @param h       Histogram to modify
289    * @param colour  Marker color 
290    * @param marker  Marker style
291    * @param title   Title of histogram
292    * @param ytitle  Title on y-axis. 
293    */
294   static void SetHistogramAttributes(TH1D* h, Int_t colour, Int_t marker, 
295                                      const char* title, 
296                                      const char* ytitle="#frac{1}{N} #frac{dN_{ch}}{d#eta}");
297   /** @} */
298
299   /**
300    * Marker styles 
301    */
302   enum { 
303     kSolid        = 0x000, 
304     kHollow       = 0x001, 
305     kCircle       = 0x002,
306     kSquare       = 0x004, 
307     kUpTriangle   = 0x006, 
308     kDownTriangle = 0x008, 
309     kDiamond      = 0x00a,
310     kCross        = 0x00c,
311     kStar         = 0x00e
312   };
313   static Int_t GetMarkerStyle(UShort_t bits);
314   static UShort_t GetMarkerBits(Int_t style);
315   static Int_t FlipHollowStyle(Int_t style);
316 protected:
317   /** 
318    * Copy contructor
319    */
320   AliBasedNdetaTask(const AliBasedNdetaTask&);
321   /** 
322    * Assignment operator 
323    * 
324    * 
325    * @return 
326    */
327   AliBasedNdetaTask& operator=(const AliBasedNdetaTask&) { return *this; }
328   // Forward declaration 
329   class CentralityBin;
330
331   /** 
332    * Retrieve the histogram 
333    * 
334    * @param aod AOD event 
335    * @param mc  Whether to get the MC histogram or not
336    * 
337    * @return Retrieved histogram or null
338    */
339   virtual TH2D* GetHistogram(const AliAODEvent* aod, Bool_t mc=false) = 0;
340   /** 
341    * Get the colour to use for markers (only pp - in PbPb we use a rainbow)
342    * 
343    * @return Marker colour 
344    */
345   virtual Int_t GetColor() const { return kBlack; }
346   /** 
347    * Get the marker style 
348    * 
349    * @return Marker style 
350    */
351   virtual Int_t GetMarker() const { return GetMarkerStyle(kCircle); }
352   /** 
353    * Add a centrality bin 
354    * 
355    * @param at   Where in the list to add this bin 
356    * @param low  Low cut
357    * @param high High cut
358    */
359   void AddCentralityBin(UShort_t at, Short_t low, Short_t high);
360   /** 
361    * Make a centrality bin 
362    * 
363    * @param name  Name used for histograms
364    * @param low   Low cut in percent
365    * @param high  High cut in percent
366    * 
367    * @return A newly created centrality bin 
368    */
369   virtual CentralityBin* MakeCentralityBin(const char* name, Short_t low, 
370                                            Short_t high) const;
371   
372   //==================================================================
373   /**
374    * Class that holds the sum of the data - possibly split into 0 or
375    * non-zero bins 
376    * 
377    */
378   struct Sum : public TNamed
379   {
380     TH2D* fSum;     // Sum of non-zero events
381     TH2D* fSum0;    // Sum of zero events 
382     TH1I* fEvents;  // Distribution of events 
383     /** 
384      * I/O Constructor - do not use
385      */    
386     Sum() : fSum(0), fSum0(0), fEvents(0) {}
387     /** 
388      * Constructor 
389      * 
390      * @param name      Name
391      * @param postfix   Possible post-fix 
392      */
393     Sum(const char* name, const char* postfix) 
394       : TNamed(name,postfix), 
395         fSum(0), 
396         fSum0(0), 
397         fEvents(0) 
398     {}
399     /** 
400      * Copy constructor
401      * 
402      * @param o Object to copy from 
403      */
404     Sum(const Sum& o) 
405       : TNamed(o), 
406         fSum(o.fSum), 
407         fSum0(o.fSum0), 
408         fEvents(o.fEvents) 
409     {}
410     /** 
411      * Assignment operator 
412      * 
413      * @param o Object to assign from 
414      * 
415      * @return Reference to this object 
416      */
417     Sum& operator=(const Sum& o) {
418       SetName(o.GetName()); fSum = o.fSum; fSum0 = o.fSum0; fEvents=o.fEvents;
419       return *this;
420     }
421     /** 
422      * Destructor 
423      */
424     ~Sum() {}
425     /** 
426      * Initialise this object.  
427      * 
428      * @param list  List to add histograms to
429      * @param data  Format of data to be cloned here
430      * @param col   Color 
431      */
432     void Init(TList* list, const TH2D* data, Int_t col);
433     /** 
434      * Add an event 
435      * 
436      * @param data    Data to add
437      * @param isZero  If this is zero event
438      */
439     void Add(const TH2D* data, Bool_t isZero=false);
440     /** 
441      * Get the histogram name 
442      * 
443      * @param what Which one 
444      * 
445      * @return Name 
446      */
447     TString GetHistName(Int_t what=0) const;
448     /** 
449      * Get the sum 
450      * 
451      * @param l          List to get histograms from 
452      * @param o          Output list
453      * @param ntotal     On return, the total number of events
454      * @param zeroEff    Zero-bin efficiency
455      * @param otherEff   Non-zero-bin efficiency 
456      * @param marker     Marker to use 
457      * @param rootXproj  Whether to use TH2::ProjectionX
458      * @param corrEmpty  Correct for empty bins 
459      * 
460      * @return The total sum histogram 
461      */
462     TH2D* GetSum(const TList* l, TList* o, Double_t& ntotal,
463                  Double_t zeroEff, Double_t otherEff=1, Int_t marker=20,
464                  Bool_t rootXproj=false, Bool_t corrEmpty=true) const;
465   };
466     
467   //==================================================================
468   /**
469    * Calculations done per centrality 
470    * 
471    */
472   class CentralityBin : public TNamed
473   {
474   public:
475     /** dN
476      * Constructor 
477      */
478     CentralityBin();
479     /** 
480      * Constructor 
481      * 
482      * @param name Name used for histograms (e.g., Forward)
483      * @param low  Lower centrality cut in percent 
484      * @param high Upper centrality cut in percent 
485      */
486     CentralityBin(const char* name, Short_t low, Short_t high);
487     /** 
488      * Copy constructor 
489      * 
490      * @param other Object to copy from 
491      */
492     CentralityBin(const CentralityBin& other);
493     /** 
494      * Destructor 
495      */
496     virtual ~CentralityBin();
497     /** 
498      * Assignment operator 
499      * 
500      * @param other Object to assign from 
501      * 
502      * @return Reference to this 
503      */
504     CentralityBin& operator=(const CentralityBin& other);
505     /** 
506      * Check if this is the 'all' bin 
507      * 
508      * @return true if low and high cuts are both zero
509      */    
510     Bool_t IsAllBin() const { return fLow == 0 && fHigh == 0; }
511     /** 
512      * Get the list name 
513      * 
514      * @return List Name 
515      */
516     const char* GetListName() const;
517     /** 
518      * Create output objects 
519      * 
520      * @param dir   Parent list
521      */
522     virtual void CreateOutputObjects(TList* dir);
523     /** 
524      * Process an event
525      * 
526      * @param forward     Forward data (for trigger, vertex, & centrality)
527      * @param triggerMask Trigger mask 
528      * @param isZero      True if this is a zero bin event 
529      * @param vzMin       Minimum IP z coordinate
530      * @param vzMax       Maximum IP z coordinate
531      * @param data        Data histogram 
532      * @param mc          MC histogram
533      */
534     virtual void ProcessEvent(const AliAODForwardMult* forward, 
535                               Int_t                    triggerMask,
536                               Bool_t                   isZero,
537                               Double_t                 vzMin, 
538                               Double_t                 vzMax, 
539                               const TH2D*              data, 
540                               const TH2D*              mc);
541     /** 
542      * Calculate the Event-Level normalization. 
543      * 
544      * The full event level normalization for trigger @f$X@f$ is given by 
545      * @f{eqnarray*}{
546      *    N &=& \frac{1}{\epsilon_X}
547      *          \left(N_A+\frac{N_A}{N_V}(N_{-V}-\beta)\right)\\
548      *      &=& \frac{1}{\epsilon_X}N_A
549      *          \left(1+\frac{1}{N_V}(N_T-N_V-\beta)\right)\\
550      *      &=& \frac{1}{\epsilon_X}N_A
551      *          \left(1+\frac{N_T}{N_V}-1-\frac{\beta}{N_V}\right)\\
552      *      &=& \frac{1}{\epsilon_X}N_A
553      *          \left(\frac{1}{\epsilon_V}-\frac{\beta}{N_V}\right)
554      * @f}
555      * where 
556      *
557      * - @f$\epsilon_X=\frac{N_{T,X}}{N_X}@f$ is the trigger
558      *   efficiency evaluated in simulation.
559      * - @f$\epsilon_V=\frac{N_V}{N_T}@f$ is the vertex efficiency 
560      *   evaluated from the data 
561      * - @f$N_X@f$ is the Monte-Carlo truth number of events of type 
562      *   @f$X@f$. 
563      * - @f$N_{T,X}@f$ is the Monte-Carlo truth number of events of type 
564      *   @f$X@f$ which was also triggered as such. 
565      * - @f$N_T@f$ is the number of data events that where triggered 
566      *   as type @f$X@f$ and had a collision trigger (CINT1B)
567      * - @f$N_V@f$ is the number of data events that where triggered
568      *   as type @f$X@f$, had a collision trigger (CINT1B), and had 
569      *   a vertex. 
570      * - @f$N_{-V}@f$ is the number of data events that where triggered
571      *   as type @f$X@f$, had a collision trigger (CINT1B), but no
572      *   vertex. 
573      * - @f$N_A@f$ is the number of data events that where triggered
574      *   as type @f$X@f$, had a collision trigger (CINT1B), and had 
575      *   a vertex in the selected range. 
576      * - @f$\beta=N_a+N_c-N_e@f$ is the number of control triggers that 
577      *   were also triggered as type @f$X@f$. 
578      * - @f$N_a@f$ Number of beam-empty events also triggered as type 
579      *   @f$X@f$ events (CINT1-A or CINT1-AC). 
580      * - @f$N_c@f$ Number of empty-beam events also triggered as type 
581      *   @f$X@f$ events (CINT1-C). 
582      * - @f$N_e@f$ Number of empty-empty events also triggered as type 
583      *   @f$X@f$ events (CINT1-E). 
584      * 
585      * Note, that if @f$ \beta \ll N_A@f$ the last term can be ignored, and 
586      * the expression simplyfies to  
587      * @f[
588      *  N = \frac{1}{\epsilon_X}\frac{1}{\epsilon_V}N_A
589      * @f]
590      *
591      * @param t       Histogram of triggers 
592      * @param scheme  Normalisation scheme 
593      * @param trgEff  Trigger efficiency 
594      * @param ntotal  On return, the total number of events to normalise to.
595      * 
596      * @return @f$N_A/N@f$ or negative number in case of errors. 
597      */
598     virtual Double_t Normalization(const TH1I& t, 
599                                    UShort_t    scheme,
600                                    Double_t    trgEff,
601                                    Double_t&   ntotal) const;
602     /** 
603      * Generate the dN/deta result from input 
604      * 
605      * @param sum        Sum of 2D hists 
606      * @param postfix    Post fix on names
607      * @param rootProj   Whether to use ROOT TH2::ProjectionX
608      * @param corrEmpty  Correct for empty bins 
609      * @param shapeCorr  Shape correction to use 
610      * @param scaler     Event-level normalization scaler  
611      * @param symmetrice Whether to make symmetric extensions 
612      * @param rebin      Whether to rebin
613      * @param cutEdges   Whether to cut edges when rebinning 
614      * @param marker     Marker style 
615      * @param color       Color of markers 
616      * @param mclist      List of MC data 
617      * @param truthlist   List of MC truth data 
618      */
619     virtual void MakeResult(const TH2D* sum,  
620                             const char* postfix, 
621                             bool        rootProj, 
622                             bool        corrEmpty,
623                             const TH1*  shapeCorr,
624                             Double_t    scaler,
625                             bool        symmetrice, 
626                             Int_t       rebin, 
627                             bool        cutEdges, 
628                             Int_t       marker,
629                             Int_t       color, 
630                             TList*      mclist,
631                             TList*      truthlist);
632     /** 
633      * End of processing 
634      * 
635      * @param sums        List of sums
636      * @param results     Output list of results
637      * @param scheme      Normalisation scheme options
638      * @param shapeCorr   Shape correction or nil
639      * @param trigEff     Trigger efficiency 
640      * @param symmetrice  Whether to symmetrice the results
641      * @param rebin       Whether to rebin the results
642      * @param rootProj    If true, use TH2::ProjectionX
643      * @param corrEmpty   Whether to correct for empty bins
644      * @param cutEdges    Whether to cut edges when rebinning
645      * @param triggerMask Trigger mask 
646      * @param marker      Marker style 
647      * @param color       Color of markers 
648      * @param mclist      List of MC data 
649      * @param truthlist   List of MC truth data 
650      */
651     virtual void End(TList*      sums, 
652                      TList*      results,
653                      UShort_t    scheme,
654                      const TH1*  shapeCorr, 
655                      Double_t    trigEff,
656                      Bool_t      symmetrice,
657                      Int_t       rebin, 
658                      Bool_t      rootProj,
659                      Bool_t      corrEmpty, 
660                      Bool_t      cutEdges, 
661                      Int_t       triggerMask,
662                      Int_t       marker,
663                      Int_t       color,
664                      TList*      mclist,
665                      TList*      truthlist);
666     /**
667      * @{
668      * @name Access histograms
669      */
670     /** 
671      * Get sum histogram 
672      * 
673      * @param mc If true, return MC histogram 
674      * 
675      * @return Sum histogram
676      */
677     const Sum* GetSum(Bool_t mc=false) const { return mc ? fSumMC : fSum; }
678     /** 
679      * Get sum histogram 
680      * 
681      * @param mc If true, return MC histogram 
682      * 
683      * @return Sum histogram
684      */
685     Sum* GetSum(Bool_t mc=false) { return mc ? fSumMC : fSum; }
686     /** 
687      * Get trigger histogram
688      * 
689      * @return Trigger histogram
690      */
691     const TH1I* GetTriggers() const { return fTriggers; } 
692     /** 
693      * Get trigger histogram
694      * 
695      * @return Trigger histogram 
696      */
697     TH1I* GetTrigggers() { return fTriggers; }
698     /** @} */
699
700     /** 
701      * Get the color of the markers
702      *
703      * @return 
704      */
705     Int_t GetColor(Int_t fallback=kRed+2) const;
706     /** 
707      * Get list of results 
708      * 
709      * 
710      * @return 
711      */
712     TList* GetResults() const { return fOutput; }
713     /** 
714      * Get name of result histogram 
715      * 
716      * @param rebin 
717      * @param sym 
718      * @param postfix 
719      * 
720      * @return 
721      */
722     const char* GetResultName(Int_t rebin, Bool_t sym, 
723                               const char* postfix="") const;
724     /** 
725      * Get a result 
726      * 
727      * @param rebin 
728      * @param sym 
729      * @param postfix 
730      * 
731      * @return 
732      */
733     TH1* GetResult(Int_t rebin, Bool_t sym, 
734                    const char* postfix="") const;
735
736   protected:
737     /** 
738      * Create sum histogram 
739      * 
740      * @param data  Data histogram to clone 
741      * @param mc    (optional) MC histogram to clone 
742      */
743     virtual void CreateSums(const TH2D* data, const TH2D* mc);
744     /** 
745      * Check the trigger, vertex, and centrality
746      * 
747      * @param forward Event input 
748      * @param triggerMask  The used trigger mask 
749      * @param vzMin        Least @f$ v_z@f$
750      * @param vzMax        Largest @f$ v_z@f$
751      * 
752      * @return true if the event is to be used 
753      */
754     virtual Bool_t CheckEvent(const AliAODForwardMult* forward, 
755                               Int_t                    triggerMask,
756                               Double_t                 vzMin, 
757                               Double_t vzMax);
758     TList*   fSums;      // Output list 
759     TList*   fOutput;    // Output list 
760     Sum*     fSum;       // Sum histogram
761     Sum*     fSumMC;     // MC sum histogram
762     TH1I*    fTriggers;  // Trigger histogram 
763     UShort_t fLow;       // Lower limit (inclusive)
764     UShort_t fHigh;      // Upper limit (exclusive)
765     Bool_t   fDoFinalMCCorrection; //Do final MC correction
766     
767     ClassDef(CentralityBin,1); // A centrality bin 
768   };
769   TList*          fSums;         // Container of sums 
770   TList*          fOutput;       // Container of outputs 
771   Double_t        fVtxMin;       // Minimum v_z
772   Double_t        fVtxMax;       // Maximum v_z
773   Int_t           fTriggerMask;  // Trigger mask 
774   Int_t           fRebin;        // Rebinning factor 
775   Bool_t          fCutEdges;     // Whether to cut edges when rebinning
776   Bool_t          fSymmetrice;   // Whether to symmetrice data 
777   Bool_t          fCorrEmpty;    // Correct for empty bins 
778   Bool_t          fUseROOTProj;  // Whether to use ROOT's ProjectionX
779   Double_t        fTriggerEff;   // Trigger efficiency for selected trigger(s)
780   TH1*            fShapeCorr;    // Shape correction 
781   TObjArray*      fListOfCentralities; // Centrality bins 
782   TNamed*         fSNNString;    // sqrt(s_NN) string 
783   TNamed*         fSysString;    // Collision system string 
784   TH1D*           fCent;         // Centrality distribution 
785   TAxis*          fCentAxis;     // Centrality axis
786   UShort_t        fNormalizationScheme; // Normalization scheme
787   TNamed*         fSchemeString;     
788   TNamed*         fTriggerString; 
789   TString         fFinalMCCorrFile; //Filename for final MC corr
790   
791   ClassDef(AliBasedNdetaTask,4); // Determine multiplicity in base area
792 };
793
794 #endif
795 //
796 // Local Variables:
797 //  mode: C++
798 // End:
799 //