Trigger board object base class
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Feb 2006 15:12:00 +0000 (15:12 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Feb 2006 15:12:00 +0000 (15:12 +0000)
(Rachid)

MUON/AliMUONTriggerBoard.cxx [new file with mode: 0644]
MUON/AliMUONTriggerBoard.h [new file with mode: 0644]

diff --git a/MUON/AliMUONTriggerBoard.cxx b/MUON/AliMUONTriggerBoard.cxx
new file mode 100644 (file)
index 0000000..895de1e
--- /dev/null
@@ -0,0 +1,60 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, 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$ */
+
+//*-- Author: Rachid Guernane (LPCCFd)
+
+#include "AliMUONTriggerBoard.h"
+#include "AliLog.h"
+
+//___________________________________________
+AliMUONTriggerBoard::AliMUONTriggerBoard()
+{
+// Default Ctor
+   fSlot  = fResponse = 0;
+}
+
+//___________________________________________
+AliMUONTriggerBoard::AliMUONTriggerBoard(const char *Name, Int_t islot) : TNamed(Name,"Trigger board")
+{
+   fSlot = islot;
+
+   fResponse = 0;
+}
+
+//___________________________________________
+AliMUONTriggerBoard::AliMUONTriggerBoard(const AliMUONTriggerBoard &board) : TNamed(board)
+{
+// Dummy Copy Ctor
+   board.Copy(*this);
+}
+
+//___________________________________________
+AliMUONTriggerBoard& AliMUONTriggerBoard::operator=(const AliMUONTriggerBoard&)
+{
+   AliFatal("Assignment operator not implemented");
+   return *this;
+}
+
+//___________________________________________
+void AliMUONTriggerBoard::Copy(TObject&) const
+{
+   Fatal("Copy","Not implemented!\n");
+}
+
+ClassImp(AliMUONTriggerBoard)
+
+
diff --git a/MUON/AliMUONTriggerBoard.h b/MUON/AliMUONTriggerBoard.h
new file mode 100644 (file)
index 0000000..d890585
--- /dev/null
@@ -0,0 +1,47 @@
+#ifndef ALIMUONTRIGGERBOARD_H
+#define ALIMUONTRIGGERBOARD_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+//*-- Author: Rachid Guernane (LPCCFd)
+
+#include <TNamed.h>
+
+class AliMUONTriggerBoard : public TNamed
+{
+   public:
+      AliMUONTriggerBoard();
+      AliMUONTriggerBoard(const AliMUONTriggerBoard &entry);
+      AliMUONTriggerBoard(const char *name, Int_t islot);
+      virtual ~AliMUONTriggerBoard() {}
+
+      AliMUONTriggerBoard& operator=(const AliMUONTriggerBoard &rhs);
+
+      virtual void Response() = 0;
+
+      virtual void Reset() = 0;
+
+      virtual void Scan(Option_t *option) = 0;
+
+      virtual void Resp(Option_t *option) = 0;
+
+      virtual UShort_t GetResponse() {return fResponse;}
+
+   protected:
+
+      Int_t fSlot; 
+
+      UShort_t fResponse;
+
+      void Copy(TObject&) const;
+
+   private:
+
+
+
+   ClassDef(AliMUONTriggerBoard,1)
+};
+#endif
+