]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliAODInputHandler.cxx
First V0 MC Analysis from H.Ricaud
[u/mrichter/AliRoot.git] / STEER / AliAODInputHandler.cxx
CommitLineData
397596ed 1/**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/* $Id$ */
17
18//-------------------------------------------------------------------------
19// Event handler for AOD input
20// Author: Andreas Morsch, CERN
21//-------------------------------------------------------------------------
22
933fd60f 23#include <TTree.h>
397596ed 24
25#include "AliAODInputHandler.h"
26#include "AliAODEvent.h"
27
28ClassImp(AliAODInputHandler)
29
30//______________________________________________________________________________
31AliAODInputHandler::AliAODInputHandler() :
32 AliInputEventHandler()
33{
34 // default constructor
35}
36
37//______________________________________________________________________________
38AliAODInputHandler::~AliAODInputHandler()
39{
40// destructor
41}
42
43//______________________________________________________________________________
44AliAODInputHandler::AliAODInputHandler(const char* name, const char* title):
45 AliInputEventHandler(name, title)
46{
47}
48
49Bool_t AliAODInputHandler::InitIO(Option_t* /*opt*/)
50{
51 // Get pointer to AOD event
52 fEvent = new AliAODEvent();
933fd60f 53 fEvent->ReadFromTree(fTree);
397596ed 54 return kTRUE;
55}
56