ABC for detector digits merging/digitization
authorjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Jul 2001 13:02:12 +0000 (13:02 +0000)
committerjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Jul 2001 13:02:12 +0000 (13:02 +0000)
STEER/AliDigitizer.cxx [new file with mode: 0644]
STEER/AliDigitizer.h [new file with mode: 0644]

diff --git a/STEER/AliDigitizer.cxx b/STEER/AliDigitizer.cxx
new file mode 100644 (file)
index 0000000..33f4589
--- /dev/null
@@ -0,0 +1,52 @@
+/**************************************************************************
+ * Copyright(c) 1998-2000, 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.                  *
+ **************************************************************************/
+
+////////////////////////////////////////////////////////////////////////
+//
+//  Pure Virtual Base Class for Detector specific Merging/Digitization   
+//                  
+//  Author: Jiri Chudoba (CERN)
+//
+////////////////////////////////////////////////////////////////////////
+
+/*
+$Log$
+*/
+
+// system includes
+#include <iostream.h>
+
+// ROOT includes
+
+// AliROOT includes
+#include "AliDigitizer.h"
+#include "AliRunDigitizer.h"
+
+ClassImp(AliDigitizer)
+
+AliDigitizer::AliDigitizer() :TNamed("AliDigitizer","")
+{
+// dummy default ctor
+  ;
+}
+
+AliDigitizer::AliDigitizer(AliRunDigitizer* manager) 
+  :TNamed("AliDigitizer","")
+{
+  manager->AddDigitizer(this);
+  fDebug=1;
+}
+
+AliDigitizer::~AliDigitizer() {;}
diff --git a/STEER/AliDigitizer.h b/STEER/AliDigitizer.h
new file mode 100644 (file)
index 0000000..6224c17
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef ALIDIGITIZER_H
+#define ALIDIGITIZER_H
+/* Copyright(c) 1998-2001, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id */
+
+////////////////////////////////////////////////////////////////////////
+//
+//  Pure Virtual Base Class for Detector specific Merging/Digitization   
+//                  
+//  Author: Jiri Chudoba (CERN)
+//
+////////////////////////////////////////////////////////////////////////
+
+#include "TNamed.h"
+class AliRunDigitizer;
+
+class AliDigitizer: public TNamed {
+
+ public:
+    AliDigitizer();                               // default ctor - dummy
+    AliDigitizer(AliRunDigitizer *manager);       // ctor to be used          
+    virtual ~AliDigitizer();
+    virtual Bool_t Init() = 0;
+    virtual void Digitize() = 0;
+    Int_t GetDebug() {return fDebug;}             // get debug level
+    void SetDebug(Int_t level){fDebug = level;}   // set debug level
+    
+private:
+
+    Int_t fDebug;                                 // debug level
+
+    ClassDef(AliDigitizer,1)
+};
+
+#endif // ALIDIGITIZER_H