]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FORWARD/analysis2/AliForwarddNdetaTask.h
Refactoring for dN/deta tasks, more diagnostics histograms in event selector
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / AliForwarddNdetaTask.h
1 //
2 // Task to analyse the AOD for for dN/deta in the forward regions 
3 //
4 #ifndef ALIFORWARDDNDETATASK_H
5 #define ALIFORWARDDNDETATASK_H
6 #include <AliBasedNdetaTask.h>
7 class TList;
8 class TH2D;
9 class TH1D;
10
11 /**
12  * Task to determine the 
13  */
14 class AliForwarddNdetaTask : public AliBasedNdetaTask
15 {
16 public:
17   /** 
18    * Constructor 
19    * 
20    */
21   AliForwarddNdetaTask();
22   /** 
23    * Constructor
24    * 
25    * @param name    Name of task 
26    * @param maxVtx  Set @f$v_z@f$ range
27    */
28   AliForwarddNdetaTask(const char* name);
29   /**
30    * Destructor
31    * 
32    */
33   virtual ~AliForwarddNdetaTask() {}
34   /** 
35    * Called at end of event processing.. 
36    *
37    * This is called once in the master 
38    * 
39    * @param option Not used 
40    */
41   virtual void Terminate(Option_t* option);
42 protected:
43   /** 
44    * Copy constructor 
45    */
46   AliForwarddNdetaTask(const AliForwarddNdetaTask& o);
47   /** 
48    * Assigmement operator
49    * 
50    * @return Reference to this
51    */
52   AliForwarddNdetaTask& operator=(const AliForwarddNdetaTask&) { return *this; }
53
54   /** 
55    * Retrieve the histogram 
56    * 
57    * @param aod AOD event 
58    * @param mc  Whether to get the MC histogram or not
59    * 
60    * @return Retrieved histogram or null
61    */
62   TH2D* GetHistogram(AliAODEvent* aod, Bool_t mc);
63   TH2D*           fSumPrimary;    //  Sum of primary histograms
64   TNamed*         fSNNString;     // 
65   TNamed*         fSysString;     // 
66
67   ClassDef(AliForwarddNdetaTask,1); // Determine multiplicity in forward region
68 };
69
70 #endif
71 //
72 // Local Variables:
73 //  mode: C++
74 // End:
75 //