]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliDigitizer.cxx
Quick fix for bug 71658
[u/mrichter/AliRoot.git] / STEER / AliDigitizer.cxx
index 33f45896e5536db93abf6822af8b7085bd812f4f..a32be6e7ec423e3756ad3bfb7b879d00fd18db09 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-////////////////////////////////////////////////////////////////////////
-//
-//  Pure Virtual Base Class for Detector specific Merging/Digitization   
-//                  
-//  Author: Jiri Chudoba (CERN)
-//
-////////////////////////////////////////////////////////////////////////
+/* $Id$ */
 
-/*
-$Log$
-*/
+//----------------------------------------------------------------------
+//  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() :TNamed("AliDigitizer","")
+//_______________________________________________________________________
+AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title):
+  TTask(name,title),
+  fManager(0),
+  fRegionOfInterest(kTRUE)
 {
-// dummy default ctor
-  ;
+  //
+  // Default ctor with name and title
+  //
 }
 
-AliDigitizer::AliDigitizer(AliRunDigitizer* manager) 
-  :TNamed("AliDigitizer","")
+//_______________________________________________________________________
+AliDigitizer::AliDigitizer(const AliDigitizer &dig):
+  TTask(dig.GetName(),dig.GetTitle()),
+  fManager(0),
+  fRegionOfInterest(kTRUE)
 {
-  manager->AddDigitizer(this);
-  fDebug=1;
+  //
+  // Copy ctor with
+  //
+  dig.Copy(*this);
 }
 
-AliDigitizer::~AliDigitizer() {;}
+//_______________________________________________________________________
+void AliDigitizer::Copy(TObject &) const
+{
+  AliFatal("Not yet implemented");
+}
+
+//_______________________________________________________________________
+AliDigitizer::AliDigitizer(AliRunDigitizer *manager, 
+                           const Text_t* name, const Text_t* title):
+  TTask(name,title),
+  fManager(manager),
+  fRegionOfInterest(kFALSE)
+{
+  //
+  // ctor with name and title
+  //
+  fManager->AddDigitizer(this);
+}
+
+//_______________________________________________________________________
+AliDigitizer::~AliDigitizer() 
+{
+}
+
+//_______________________________________________________________________
+Int_t AliDigitizer::GetNInputStreams() const
+{
+  //
+  // return number of input streams
+  //
+  Int_t nInputStreams = 0 ;
+  if (fManager)
+    nInputStreams = fManager->GetNinputs() ;
+  return nInputStreams ; 
+}