* provided "as is" without express or implied warranty. *
**************************************************************************/
-////////////////////////////////////////////////////////////////////////
-//
-// Pure Virtual Base Class for Detector specific Merging/Digitization
-//
-// Author: Jiri Chudoba (CERN)
-//
-////////////////////////////////////////////////////////////////////////
-
-/*
-$Log$
-Revision 1.1 2001/07/27 13:02:06 jchudoba
-ABC for detector digits merging/digitization
+/* $Id$ */
-*/
+//----------------------------------------------------------------------
+// Base Class for Detector specific Merging/Digitization
+// Collaborates with AliRunDigitizer class
+// Author: Jiri Chudoba (CERN)
+//----------------------------------------------------------------------
// system includes
-#include <iostream.h>
+#include <Riostream.h>
// ROOT includes
// AliROOT includes
+#include "AliLog.h"
#include "AliDigitizer.h"
#include "AliRunDigitizer.h"
ClassImp(AliDigitizer)
-AliDigitizer::AliDigitizer() :TTask("AliDigitizer","")
+//_______________________________________________________________________
+AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title):
+ TTask(name,title),
+ fManager(0),
+ fRegionOfInterest(kTRUE)
+{
+ //
+ // Default ctor with name and title
+ //
+}
+
+//_______________________________________________________________________
+AliDigitizer::AliDigitizer(const AliDigitizer &dig):
+ TTask(dig.GetName(),dig.GetTitle()),
+ fManager(0),
+ fRegionOfInterest(kTRUE)
+{
+ //
+ // Copy ctor with
+ //
+ dig.Copy(*this);
+}
+
+//_______________________________________________________________________
+void AliDigitizer::Copy(TObject &) const
{
-// dummy default ctor
- fManager = 0;
+ AliFatal("Not yet implemented");
}
-AliDigitizer::AliDigitizer(AliRunDigitizer* manager)
- :TTask("AliDigitizer","")
+//_______________________________________________________________________
+AliDigitizer::AliDigitizer(AliRunDigitizer *manager,
+ const Text_t* name, const Text_t* title):
+ TTask(name,title),
+ fManager(manager),
+ fRegionOfInterest(kFALSE)
{
- fManager = manager;
- manager->AddDigitizer(this);
+ //
+ // ctor with name and title
+ //
+ fManager->AddDigitizer(this);
}
-AliDigitizer::~AliDigitizer() {;}
+//_______________________________________________________________________
+AliDigitizer::~AliDigitizer()
+{
+}
+
+//_______________________________________________________________________
+Int_t AliDigitizer::GetNInputStreams() const
+{
+ //
+ // return number of input streams
+ //
+ Int_t nInputStreams = 0 ;
+ if (fManager)
+ nInputStreams = fManager->GetNinputs() ;
+ return nInputStreams ;
+}