X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliDigitizer.cxx;h=7b60c40c80694f7b609be8641c9c643101bd6ada;hb=c4d11b15e3ffacc1e24219d230b432b2e7bd4127;hp=196a79aed8cd912d5d5d5a086a1427afe80edb95;hpb=b9d0a01d7a0723a09071b0b56200d72f59a9c2b6;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliDigitizer.cxx b/STEER/AliDigitizer.cxx index 196a79aed8c..7b60c40c806 100644 --- a/STEER/AliDigitizer.cxx +++ b/STEER/AliDigitizer.cxx @@ -13,35 +13,16 @@ * 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.3.6.1 2002/07/24 10:08:13 alibrary -Updating VirtualMC - -Revision 1.4 2002/07/17 07:29:53 jchudoba -Add private method GetNInputStreams(). Do not use it, it's just a temporary fix the PHOS and EMCAL code. - -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 +#include // ROOT includes @@ -51,35 +32,59 @@ ABC for detector digits merging/digitization 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 +{ + Fatal("Copy","Not yet implemented\n"); +} + +//_______________________________________________________________________ +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 -// + // + // return number of input streams + // Int_t nInputStreams = 0 ; if (fManager) nInputStreams = fManager->GetNinputs() ;