]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Realisation of VEventHandler for input events.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Oct 2007 14:52:57 +0000 (14:52 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Oct 2007 14:52:57 +0000 (14:52 +0000)
Serves as base class for ESD and AOD input.

STEER/AliInputEventHandler.cxx [new file with mode: 0644]
STEER/AliInputEventHandler.h [new file with mode: 0644]
STEER/STEERBaseLinkDef.h
STEER/libSTEERBase.pkg

diff --git a/STEER/AliInputEventHandler.cxx b/STEER/AliInputEventHandler.cxx
new file mode 100644 (file)
index 0000000..c9f72fb
--- /dev/null
@@ -0,0 +1,48 @@
+/**************************************************************************
+ * 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)
+{
+}
+
diff --git a/STEER/AliInputEventHandler.h b/STEER/AliInputEventHandler.h
new file mode 100644 (file)
index 0000000..c330d47
--- /dev/null
@@ -0,0 +1,43 @@
+#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
index 39b398425978bc5fb8b858d6095ec023e7f27b6b..ea2b72f4bbf7f1501e3211b748f8acf77a127eec 100644 (file)
@@ -40,6 +40,7 @@
 
 #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+;
index 84b65fa2675ea19b59f0e4c12f7200423c321f98..ca67c9de8ec10d9585f848b4e6bd0de5e92afda2 100644 (file)
@@ -10,7 +10,7 @@ SRCS = AliVParticle.cxx \
        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