]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/AliCentralMCMultiplicityTask.h
977bb594b16e29f2cc047f01e9056611e35d41c7
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliCentralMCMultiplicityTask.h
1 // 
2 // Base class for classes that calculate the multiplicity in the
3 // SPD clusters event-by-event
4 // 
5 #ifndef ALICENTRALMCMULTIPLICITYTASK_H
6 #define ALICENTRALMCMULTIPLICITYTASK_H
7 /**
8  * @file   AliCentralMCMultiplicityTask.h
9  * @author Hans Hjersing Dalsgaard
10  * @date   Wed Mar 23 14:00:03 2011
11  * 
12  * @brief  
13  * 
14  * @ingroup pwg2_forward_aod
15  * 
16  */
17 #include "AliCentralMultiplicityTask.h"
18 #include "AliSPDMCTrackDensity.h"
19 //class AliForwardCorrectionManager;
20 class AliESDEvent;
21 class AliMCEvent;
22
23 /** 
24  * Class that calculates the multiplicity in the
25  * central region event-by-event
26  * 
27  * @par Inputs: 
28  *   - AliESDEvent 
29  *
30  * @par Outputs: 
31  *   - 2 AliAODCentralMult (one from data and one from MC)
32  * 
33  * @par Histograms 
34  *   
35  * @par Corrections used 
36  * 
37  * @ingroup pwg2_forward_tasks
38  * @ingroup pwg2_forward_aod
39  * 
40  */
41 class AliCentralMCMultiplicityTask : public AliCentralMultiplicityTask
42 {
43 public:
44   /** 
45    * @{ 
46    * @name Interface methods 
47    */
48    /** 
49    * Constructor 
50    * 
51    * @param name Name of task 
52    */
53   AliCentralMCMultiplicityTask(const char* name); 
54   /** 
55    * Constructor 
56    *
57    * Reserved for ROOT's I/O system - do not use
58    */
59   AliCentralMCMultiplicityTask();
60   /** 
61    * Copy constructor 
62    * 
63    * @param o Object to copy from 
64    */
65   AliCentralMCMultiplicityTask(const AliCentralMCMultiplicityTask& o);
66   /** 
67    * Assignment operator 
68    * 
69    * @param o Object to assign from 
70    * 
71    * @return Reference to this object 
72    */
73   AliCentralMCMultiplicityTask& operator=(const AliCentralMCMultiplicityTask&o);
74   /** 
75    * Create output objects 
76    * 
77    */
78   virtual void UserCreateOutputObjects();
79   /** 
80    * Process each event 
81    *
82    * @param option Not used
83    */  
84   virtual void UserExec(Option_t* option);
85   /** 
86    * End of job
87    * 
88    * @param option Not used 
89    */
90   virtual void Terminate(Option_t* option);
91   /** 
92    * Print information 
93    * 
94    * @param option Not used
95    */
96   virtual void Print(Option_t* option="") const;
97
98 protected: 
99   AliSPDMCTrackDensity   fTrackDensity;     // Calculate N_ch,incl
100                                             // from MC
101   AliAODCentralMult      fAODMCCentral;     // Output object
102   ClassDef(AliCentralMCMultiplicityTask,1)  // Forward multiplicity class
103 };
104
105 #endif
106 // Local Variables:
107 //  mode: C++
108 // End:
109