1 /**************************************************************************
2 * Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //----------------------------------------------------------------------
19 // Base Class for Detector specific Merging/Digitization
20 // Collaborates with AliRunDigitizer class
21 // Author: Jiri Chudoba (CERN)
22 //----------------------------------------------------------------------
25 #include <Riostream.h>
30 #include "AliDigitizer.h"
31 #include "AliRunDigitizer.h"
33 ClassImp(AliDigitizer)
35 //_______________________________________________________________________
36 AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title):
39 fRegionOfInterest(kTRUE)
42 // Default ctor with name and title
46 //_______________________________________________________________________
47 AliDigitizer::AliDigitizer(const AliDigitizer &dig):
48 TTask(dig.GetName(),dig.GetTitle()),
50 fRegionOfInterest(kTRUE)
58 //_______________________________________________________________________
59 void AliDigitizer::Copy(TObject &) const
61 Fatal("Copy","Not yet implemented\n");
64 //_______________________________________________________________________
65 AliDigitizer::AliDigitizer(AliRunDigitizer *manager,
66 const Text_t* name, const Text_t* title):
69 fRegionOfInterest(kFALSE)
72 // ctor with name and title
74 fManager->AddDigitizer(this);
77 //_______________________________________________________________________
78 AliDigitizer::~AliDigitizer()
82 //_______________________________________________________________________
83 Int_t AliDigitizer::GetNInputStreams() const
86 // return number of input streams
88 Int_t nInputStreams = 0 ;
90 nInputStreams = fManager->GetNinputs() ;
91 return nInputStreams ;