Pass custom name and title to the TTask base class
authorjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Nov 2001 14:50:33 +0000 (14:50 +0000)
committerjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Nov 2001 14:50:33 +0000 (14:50 +0000)
STEER/AliDigitizer.cxx
STEER/AliDigitizer.h

index 4a1edc44283ca4f6700354f6ab7004ade84ca3e1..1ca5d326ee4501611ecfce525cad7fa2dfdf921a 100644 (file)
@@ -15,7 +15,7 @@
 
 ////////////////////////////////////////////////////////////////////////
 //
-//  Pure Virtual Base Class for Detector specific Merging/Digitization   
+//  Base Class for Detector specific Merging/Digitization   
 //                  
 //  Author: Jiri Chudoba (CERN)
 //
@@ -23,6 +23,9 @@
 
 /*
 $Log$
+Revision 1.2  2001/10/04 15:56:34  jchudoba
+TTask inheritance
+
 Revision 1.1  2001/07/27 13:02:06  jchudoba
 ABC for detector digits merging/digitization
 
@@ -39,17 +42,26 @@ ABC for detector digits merging/digitization
 
 ClassImp(AliDigitizer)
 
-AliDigitizer::AliDigitizer() :TTask("AliDigitizer","")
+AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title)
+  :TTask(name,title) 
 {
-// dummy default ctor
+//
+// dummy default ctor with name and title
+//
   fManager = 0;
 }
 
-AliDigitizer::AliDigitizer(AliRunDigitizer* manager) 
-  :TTask("AliDigitizer","")
+AliDigitizer::AliDigitizer(AliRunDigitizer *manager, 
+                          const Text_t* name, const Text_t* title)
+  :TTask(name,title)
 {
+//
+// ctor with name and title
+//
   fManager = manager;
   manager->AddDigitizer(this);
 }
 
+
+
 AliDigitizer::~AliDigitizer() {;}
index e5a053531c8b6f0b48994263030d1c66df4de3b7..eb90473c0ebf3db2c8db8dc7a14fe3a6d4d24c5e 100644 (file)
@@ -20,8 +20,14 @@ class AliRunDigitizer;
 class AliDigitizer: public TTask {
 
  public:
-    AliDigitizer();                               // default ctor - dummy
-    AliDigitizer(AliRunDigitizer *manager);       // ctor to be used          
+// ctor with name and title
+    AliDigitizer(const Text_t* name="AliDigitizer",
+                const Text_t* title="AliDigitizer");
+// ctor to be used with name and title
+    AliDigitizer(AliRunDigitizer *manager,
+                const Text_t* name="AliDigitizer",
+                const Text_t* title="AliDigitizer");
+      
     virtual ~AliDigitizer();
     virtual Bool_t Init() {return kTRUE;}
 //    virtual void Digitize() = 0;
@@ -29,7 +35,7 @@ class AliDigitizer: public TTask {
  protected:
     AliRunDigitizer *fManager;
     
-    ClassDef(AliDigitizer,1)
+    ClassDef(AliDigitizer,1) // Base class for detector digitizers
 };
 
 #endif // ALIDIGITIZER_H