]> git.uio.no Git - u/mrichter/AliRoot.git/commit - ANALYSIS/AliAnalysisTask.cxx
This method has to be called INSIDE the user redefined CreateOutputObjects
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 May 2007 11:52:02 +0000 (11:52 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 May 2007 11:52:02 +0000 (11:52 +0000)
commitc5a87c56d074f75bc8015664b7606834585d47f4
tree097652eefab33e74c8b3659a69c64c97b5eed4cf
parent21404e0871acdb0afc42dc5efcff012a2c105528
 This method has to be called INSIDE the user redefined CreateOutputObjects
method, before creating each object corresponding to the output containers
that are to be written to a file. This need to be done in general for the big output
objects that may not fit memory during processing.
- 'option' is the file opening option.
========================================================================
NOTE !: The method call will be ignored in PROOF mode, in which case the
results have to be streamed back to the client and written just before Terminate()
========================================================================

Example:

void MyAnaTask::CreateOutputObjects() {
   OpenFile(0);   // Will open the file for the object to be written at output #0
   fAOD = new TTree("AOD for D0toKPi");
   OpenFile(1);
   // now some histos that should go in the file of the second output container
   fHist1 = new TH1F("my quality check hist1",...);
   fHist2 = new TH2F("my quality check hist2",...);
}
ANALYSIS/AliAnalysisDataContainer.cxx
ANALYSIS/AliAnalysisDataContainer.h
ANALYSIS/AliAnalysisManager.cxx
ANALYSIS/AliAnalysisTask.cxx
ANALYSIS/AliAnalysisTask.h