]> git.uio.no Git - u/mrichter/AliRoot.git/commit - STEER/AliAODInputHandler.cxx
Added method AliInputEventHandler::GetStatistics(Option_t *option) to retrieve the...
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Nov 2010 12:57:01 +0000 (12:57 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Nov 2010 12:57:01 +0000 (12:57 +0000)
commit70908d054cfdc01dae5160ffeb566a65aacadefd
tree9d3fa4da7d862f7ea55ca8db5a2a26a7df747ce2
parente8eba3587f66eececd29ca3d0c55fe405b3e9c61
Added method AliInputEventHandler::GetStatistics(Option_t *option) to retrieve the physics selection histograms in ESD and AOD analysis.
This method will return the statistics TH2F histograms filled by the AliPhysicsSelection in case the task AliPhysicsSelectionTask is used in the ESD train (or used during AOD production).
To use, the user task must call this method during FinishTaskOutput (executed on the worker after all events are processed):

//________________________________________________________________________
void AliAnalysisTaskPt::FinishTaskOutput()
{
// This gets called at the end of the processing on the worker.
  AliAnalysisManager *am = AliAnalysisManager::GetAnalysisManager();
  AliInputEventHandler *inputH = dynamic_cast<AliInputEventHandler*>(am->GetInputEventHandler());
  if (!inputH) return;
  TH2F *histStat = dynamic_cast<TH2F*>(inputH->GetStatistics());
  TH2F *histBin0 = dynamic_cast<TH2F*>(inputH->GetStatistics("BIN0"));
  ...
STEER/AliAODInputHandler.cxx
STEER/AliAODInputHandler.h
STEER/AliESDInputHandler.cxx
STEER/AliESDInputHandler.h
STEER/AliInputEventHandler.cxx
STEER/AliInputEventHandler.h