/************************************************************************* * Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ #include #include "Riostream.h" //needed as include #include "TChain.h" #include "TTree.h" #include "TProfile.h" #include "TFile.h" #include "TList.h" class AliAnalysisTaskSE; #include "AliAnalysisManager.h" #include "AliFlowEventSimple.h" #include "AliAnalysisTaskLYZEventPlane.h" #include "AliFlowCommonHist.h" #include "AliFlowCommonHistResults.h" #include "AliFlowLYZEventPlane.h" #include "AliFlowAnalysisWithLYZEventPlane.h" // AliAnalysisTaskLYZEventPlane: // // analysis task for Lee Yang Zeros Event Plane // // Author: Naomi van der Kolk (kolk@nikhef.nl) using std::cout; using std::endl; ClassImp(AliAnalysisTaskLYZEventPlane) //________________________________________________________________________ AliAnalysisTaskLYZEventPlane::AliAnalysisTaskLYZEventPlane(const char *name) : AliAnalysisTaskSE(name), fEvent(NULL), fLyzEp(NULL), fLyz(NULL), fListHistos(NULL), fSecondRunFile(NULL) { // Constructor cout<<"AliAnalysisTaskLYZEventPlane::AliAnalysisTaskLYZEventPlane(const char *name)"< SetSecondRunList(pSecondRunList); fLyz -> SetSecondRunList(pSecondRunList); } else { cout<<"No Second run List!"< Init(); fLyz-> Init(); if (fLyz->GetHistList()) { fListHistos = fLyz->GetHistList(); //fListHistos->Print(); } else { cout<<"ERROR: Could not retrieve histogram list"<(GetInputData(0)); if (fEvent) { fLyz->Make(fEvent,fLyzEp); } else { cout << "Warning no input data!!!" << endl;} PostData(1,fListHistos); } //________________________________________________________________________ void AliAnalysisTaskLYZEventPlane::Terminate(Option_t *) { // Called once at the end of the query AliFlowAnalysisWithLYZEventPlane* lyzTerm = new AliFlowAnalysisWithLYZEventPlane() ; fListHistos = (TList*)GetOutputData(1); //cout << "histogram list in Terminate" << endl; if (fListHistos) { lyzTerm -> GetOutputHistograms(fListHistos); lyzTerm -> Finish(); PostData(1,fListHistos); //fListHistos->Print(); } else { cout << "histogram list pointer is empty" << endl;} //cout<<".....finished LYZ EventPlane"<