adding a comment on the event-by-event eta-phi histogram for general use
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Jun 2010 11:45:44 +0000 (11:45 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Jun 2010 11:45:44 +0000 (11:45 +0000)
PWG2/FORWARD/analysis/AliFMDAnalysisTaskSE.cxx
PWG2/FORWARD/analysis/AliFMDAnalysisTaskSE.h

index 65556a72bf006065c8a3ecbb74e275a82a7315e8..78ca938135939af8f209ad885bfe8447de7726bb 100644 (file)
@@ -8,8 +8,16 @@
 #include "AliLog.h"
 #include "AliFMDDndeta.h"
 #include "TDirectory.h"
+#include "TProfile2D.h"
 ClassImp(AliFMDAnalysisTaskSE)
-
+//
+// This task controls the running of the FMD analysis. The current version is made for 
+// dN/deta analysis but multiplicity and correlation tasks will be added here as well.
+//
+// To get the dN/detadphi per selected event as a TH2F* object connect to the 
+// output list of this task in the analysis framework and do
+//
+// TH2F* hFMDdNdetadphi = (TH2F*)list->FindObject("dNdetadphiHistogramTrVtx");
 //_____________________________________________________________________
 AliFMDAnalysisTaskSE::AliFMDAnalysisTaskSE():
 AliAnalysisTaskSE(),
@@ -36,6 +44,7 @@ AliFMDAnalysisTaskSE::AliFMDAnalysisTaskSE(const char* name):
 {
   SetParams(AliFMDAnaParameters::Instance());
   DefineOutput(1, TList::Class());
+  // DefineOutput(2, TH2F::Class());
 }
 //_____________________________________________________________________
 void AliFMDAnalysisTaskSE::UserCreateOutputObjects()
@@ -74,8 +83,10 @@ void AliFMDAnalysisTaskSE::UserCreateOutputObjects()
   fBackground.CreateOutputObjects();
   fDndeta.CreateOutputObjects();
   fBFCorrelation.CreateOutputObjects();
   
   PostData(1, fListOfHistos);
+  
 }
 //_____________________________________________________________________
 void AliFMDAnalysisTaskSE::Init()
@@ -88,9 +99,6 @@ void AliFMDAnalysisTaskSE::UserExec(Option_t */*option*/)
   // Execute analysis for current event
   //
   
-  //AliFMDAnaParameters* pars = AliFMDAnaParameters::Instance();
-  
-  
   AliESDEvent* fESD = (AliESDEvent*)InputEvent();
   //std::cout<<fESD->GetBeamEnergy()<<"   "<<fESD->GetBeamType()<<"    "<<fESD->GetCurrentL3()<<std::endl;
   fSharing.SetInputESD(fESD);
@@ -107,11 +115,9 @@ void AliFMDAnalysisTaskSE::UserExec(Option_t */*option*/)
   }
   else return;
   
-  PostData(1, fListOfHistos);
-  
-  //fListOfHistos = fBackground.GetOutputList();
-  
  
+  PostData(1, fListOfHistos);
+     
 }
 //_____________________________________________________________________
 void AliFMDAnalysisTaskSE::Terminate(Option_t */*option*/)
index 990950eeae078d59ee3c4a706fb38adbd90faa15..5d0d4f637ef0a0bc2ccf9c543cd59c1454434c21 100644 (file)
@@ -7,6 +7,7 @@
 #include "AliFMDAnalysisTaskBackgroundCorrection.h"
 #include "AliFMDAnalysisTaskDndeta.h"
 #include "AliFMDAnalysisTaskBFCorrelation.h"
+
 class AliFMDAnaParameters;
 
 /** @defgroup FMD_ana Analysis tasks 
@@ -51,7 +52,8 @@ public:                               //
   virtual void UserExec(Option_t* /*option*/);
   void         Terminate(Option_t */*option*/);
   void         SetParams(AliFMDAnaParameters* p) { fParams = p; }
-  void         Print(Option_t* option="") const;
+  void         Print(Option_t* option="") const ;
+  
 private:
   
   TList*                                 fListOfHistos;  // Output list
@@ -61,7 +63,6 @@ private:
   AliFMDAnalysisTaskDndeta               fDndeta;        // dN/deta task
   AliFMDAnalysisTaskBFCorrelation        fBFCorrelation; // BF correlation task
   AliFMDAnaParameters*                   fParams;        // Analysis parameters
-
   
   ClassDef(AliFMDAnalysisTaskSE, 1);