1 /**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //-------------------------------------------------------------------------
19 // Event handler for AOD input
20 // Author: Andreas Morsch, CERN
21 //-------------------------------------------------------------------------
25 #include "AliAODInputHandler.h"
26 #include "AliAODEvent.h"
28 ClassImp(AliAODInputHandler)
30 //______________________________________________________________________________
31 AliAODInputHandler::AliAODInputHandler() :
32 AliInputEventHandler()
34 // default constructor
37 //______________________________________________________________________________
38 AliAODInputHandler::~AliAODInputHandler()
43 //______________________________________________________________________________
44 AliAODInputHandler::AliAODInputHandler(const char* name, const char* title):
45 AliInputEventHandler(name, title)
49 Bool_t AliAODInputHandler::InitIO(Option_t* /*opt*/)
51 // Get pointer to AOD event
52 fEvent = new AliAODEvent();
53 fEvent->ReadFromTree(fTree);