]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix for the cumulants to use cuts from the CORRFW
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Nov 2008 13:34:25 +0000 (13:34 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Nov 2008 13:34:25 +0000 (13:34 +0000)
PWG2/FLOW/AliAnalysisTaskCumulants.cxx
PWG2/FLOW/AliAnalysisTaskQCumulants.cxx

index c33b80db40f15fb82f0db007c58876dce448aa83..c0496949fc2bde4e92b4d207777ddc7ce47b182d 100644 (file)
@@ -76,13 +76,20 @@ AliAnalysisTaskCumulants::AliAnalysisTaskCumulants(const char *name, Bool_t on):
  fQADiff(NULL),
  fQA(on)
 {
- //constructor
- cout<<"AliAnalysisTaskCumulants::AliAnalysisTaskCumulants(const char *name)"<<endl;
- //input and output slots:
- //input slot #0 works with a TChain
+//constructor
+ cout<<"AliAnalysisTaskQCumulants::AliAnalysisTaskQCumulants(const char *name)"<<endl;
+ // Define input and output slots here
+ // Input slot #0 works with a TChain
  DefineInput(0, TChain::Class());
- //output slot #0 writes into a TList container
+  
+ // Output slot #0 writes into a TList container
  DefineOutput(0, TList::Class());  
+ if(on) 
+ {
+  DefineOutput(1, TList::Class());
+  DefineOutput(2, TList::Class()); 
+ }  
 }
 
 AliAnalysisTaskCumulants::AliAnalysisTaskCumulants(): 
@@ -232,7 +239,7 @@ void AliAnalysisTaskCumulants::Exec(Option_t *)
     Printf("There are %d tracks in this event", fESD->GetNumberOfTracks());
     
     //cumulant analysis 
-    AliFlowEventSimple* fEvent = fEventMaker->FillTracks(fESD);
+    AliFlowEventSimple* fEvent = fEventMaker->FillTracks(fESD,fCFManager1,fCFManager2);
     fCA->Make(fEvent);
     delete fEvent;
   }
index 8009563e7d8d608082675047ef8fda28e1c4a443..5b716dc580c3ff6e771bb7e077911552f9197803 100644 (file)
@@ -240,7 +240,7 @@ void AliAnalysisTaskQCumulants::Exec(Option_t *)
     Printf("There are %d tracks in this event", fESD->GetNumberOfTracks());
     
     //Q-cumulant analysis 
-    AliFlowEventSimple* fEvent = fEventMaker->FillTracks(fESD);
+    AliFlowEventSimple* fEvent = fEventMaker->FillTracks(fESD,fCFManager1,fCFManager2);
     fQCA->Make(fEvent);
     delete fEvent;
   }