* provided "as is" without express or implied warranty. *
**************************************************************************/
+/* $Header$ */
+
////////////////////////////////////////////////////////////////////////
//
// Base Class for Detector specific Merging/Digitization
//
////////////////////////////////////////////////////////////////////////
-/*
-$Log$
-Revision 1.3 2001/11/14 14:50:33 jchudoba
-Pass custom name and title to the TTask base class
-
-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
-
-*/
// system includes
-#include <iostream.h>
+#include <Riostream.h>
// ROOT includes
ClassImp(AliDigitizer)
-AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title)
- :TTask(name,title)
+//_______________________________________________________________________
+AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title):
+ TTask(name,title),
+ fManager(0)
+
{
-//
-// dummy default ctor with name and title
-//
- fManager = 0;
+ //
+ // Default ctor with name and title
+ //
}
-AliDigitizer::AliDigitizer(AliRunDigitizer *manager,
- const Text_t* name, const Text_t* title)
- :TTask(name,title)
+//_______________________________________________________________________
+AliDigitizer::AliDigitizer(const AliDigitizer &dig):
+ TTask(dig.GetName(),dig.GetTitle()),
+ fManager(0)
{
-//
-// ctor with name and title
-//
- fManager = manager;
- manager->AddDigitizer(this);
+ //
+ // Copy ctor with
+ //
+ dig.Copy(*this);
}
+//_______________________________________________________________________
+void AliDigitizer::Copy(AliDigitizer &) const
+{
+ Fatal("Copy","Not yet implemented\n");
+}
+//_______________________________________________________________________
+AliDigitizer::AliDigitizer(AliRunDigitizer *manager,
+ const Text_t* name, const Text_t* title):
+ TTask(name,title),
+ fManager(manager)
+{
+ //
+ // ctor with name and title
+ //
+ fManager->AddDigitizer(this);
+}
-AliDigitizer::~AliDigitizer() {;}
-////////////////////////////////////////////////////////////////////////
+//_______________________________________________________________________
+AliDigitizer::~AliDigitizer()
+{
+ delete fManager;
+}
+
+//_______________________________________________________________________
Int_t AliDigitizer::GetNInputStreams() const
{
-//
-// return number of input streams
-//
+ //
+ // return number of input streams
+ //
Int_t nInputStreams = 0 ;
if (fManager)
nInputStreams = fManager->GetNinputs() ;