Serves as base class for ESD and AOD input.
--- /dev/null
+/**************************************************************************
+ * Copyright(c) 1998-2007, 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. *
+ **************************************************************************/
+
+/* $Id$ */
+
+//-------------------------------------------------------------------------
+// Event handler for event input
+// Author: Andreas Morsch, CERN
+//-------------------------------------------------------------------------
+
+#include <TChain.h>
+
+#include "AliInputEventHandler.h"
+#include "AliVEvent.h"
+
+ClassImp(AliInputEventHandler)
+
+//______________________________________________________________________________
+AliInputEventHandler::AliInputEventHandler() :
+ AliVEventHandler()
+{
+ // default constructor
+}
+
+//______________________________________________________________________________
+AliInputEventHandler::~AliInputEventHandler()
+{
+// destructor
+}
+
+//______________________________________________________________________________
+AliInputEventHandler::AliInputEventHandler(const char* name, const char* title):
+ AliVEventHandler(name, title)
+{
+}
+
--- /dev/null
+#ifndef ALIINPUTEVENTHANDLER_H
+#define ALIINPUTEVENTHANDLER_H
+/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+//-------------------------------------------------------------------------
+// Input Handler realisation of the AliVEventHandler interface
+// Author: Andreas Morsch, CERN
+//-------------------------------------------------------------------------
+
+#include "AliVEventHandler.h"
+
+class TChain;
+class AliVEvent;
+
+class AliInputEventHandler : public AliVEventHandler {
+
+ public:
+ AliInputEventHandler();
+ AliInputEventHandler(const char* name, const char* title);
+ virtual ~AliInputEventHandler();
+ virtual void SetOutputFileName(char* /*fname*/) {;}
+ virtual char *GetOutputFileName() {return 0;}
+ virtual Bool_t InitIO(Option_t* /*opt*/) {return kTRUE;}
+ virtual Bool_t BeginEvent() {return kTRUE;}
+ virtual Bool_t Notify(const char */*path*/) {return kTRUE;}
+ virtual Bool_t FinishEvent() {return kTRUE;}
+ virtual Bool_t Terminate() {return kTRUE;}
+ virtual Bool_t TerminateIO() {return kTRUE;}
+ // Setters
+ virtual void SetInputChain(TChain* chain) {fChain = chain;}
+ // Getters
+ virtual AliVEvent *GetEvent() const {return fEvent;}
+ virtual TChain *GetChain() const {return fChain;}
+ protected:
+ AliVEvent *fEvent; //! Pointer to the event
+ TChain *fChain; //! Pointer to the chain
+ ClassDef(AliInputEventHandler, 1);
+};
+
+#endif
#pragma link C++ class AliStack+;
#pragma link C++ class AliMCEventHandler+;
+#pragma link C++ class AliInputEventHandler+;
#pragma link C++ class AliTrackReference+;
#pragma link C++ class AliSysInfo+;
AliHeader.cxx AliGenEventHeader.cxx AliDetectorEventHeader.cxx \
AliGenPythiaEventHeader.cxx AliGenCocktailEventHeader.cxx \
AliGenHijingEventHeader.cxx AliCollisionGeometry.cxx \
- AliStack.cxx AliMCEventHandler.cxx \
+ AliStack.cxx AliMCEventHandler.cxx AliInputEventHandler.cxx \
AliTrackReference.cxx AliSysInfo.cxx \
AliMCEvent.cxx AliMCParticle.cxx