X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliDigitizer.cxx;h=a32be6e7ec423e3756ad3bfb7b879d00fd18db09;hb=94a600a1ad534d006cfda3dbc9816502a7d6fa2f;hp=1ca5d326ee4501611ecfce525cad7fa2dfdf921a;hpb=3953b63d4a0a6e8c1054a0251c75bc0e15b2155e;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliDigitizer.cxx b/STEER/AliDigitizer.cxx index 1ca5d326ee4..a32be6e7ec4 100644 --- a/STEER/AliDigitizer.cxx +++ b/STEER/AliDigitizer.cxx @@ -13,55 +13,81 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -//////////////////////////////////////////////////////////////////////// -// +/* $Id$ */ + +//---------------------------------------------------------------------- // Base Class for Detector specific Merging/Digitization -// +// Collaborates with AliRunDigitizer class // Author: Jiri Chudoba (CERN) -// -//////////////////////////////////////////////////////////////////////// - -/* -$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 - -*/ +//---------------------------------------------------------------------- // system includes -#include +#include // ROOT includes // AliROOT includes +#include "AliLog.h" #include "AliDigitizer.h" #include "AliRunDigitizer.h" 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), + fRegionOfInterest(kTRUE) { -// -// 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), + fRegionOfInterest(kTRUE) { -// -// ctor with name and title -// - fManager = manager; - manager->AddDigitizer(this); + // + // Copy ctor with + // + dig.Copy(*this); } +//_______________________________________________________________________ +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() {;} +//_______________________________________________________________________ +AliDigitizer::~AliDigitizer() +{ +} + +//_______________________________________________________________________ +Int_t AliDigitizer::GetNInputStreams() const +{ + // + // return number of input streams + // + Int_t nInputStreams = 0 ; + if (fManager) + nInputStreams = fManager->GetNinputs() ; + return nInputStreams ; +}