Add private method GetNInputStreams(). Do not use it, it's just a temporary fix the...
[u/mrichter/AliRoot.git] / STEER / AliDigitizer.cxx
CommitLineData
52f74d0c 1/**************************************************************************
2 * Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16////////////////////////////////////////////////////////////////////////
17//
3953b63d 18// Base Class for Detector specific Merging/Digitization
52f74d0c 19//
20// Author: Jiri Chudoba (CERN)
21//
22////////////////////////////////////////////////////////////////////////
23
24/*
25$Log$
418415f0 26Revision 1.3 2001/11/14 14:50:33 jchudoba
27Pass custom name and title to the TTask base class
28
3953b63d 29Revision 1.2 2001/10/04 15:56:34 jchudoba
30TTask inheritance
31
8d5e6345 32Revision 1.1 2001/07/27 13:02:06 jchudoba
33ABC for detector digits merging/digitization
34
52f74d0c 35*/
36
37// system includes
38#include <iostream.h>
39
40// ROOT includes
41
42// AliROOT includes
43#include "AliDigitizer.h"
44#include "AliRunDigitizer.h"
45
46ClassImp(AliDigitizer)
47
3953b63d 48AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title)
49 :TTask(name,title)
52f74d0c 50{
3953b63d 51//
52// dummy default ctor with name and title
53//
8d5e6345 54 fManager = 0;
52f74d0c 55}
56
3953b63d 57AliDigitizer::AliDigitizer(AliRunDigitizer *manager,
58 const Text_t* name, const Text_t* title)
59 :TTask(name,title)
52f74d0c 60{
3953b63d 61//
62// ctor with name and title
63//
8d5e6345 64 fManager = manager;
52f74d0c 65 manager->AddDigitizer(this);
52f74d0c 66}
67
3953b63d 68
69
52f74d0c 70AliDigitizer::~AliDigitizer() {;}
418415f0 71////////////////////////////////////////////////////////////////////////
72Int_t AliDigitizer::GetNInputStreams() const
73{
74//
75// return number of input streams
76//
77 Int_t nInputStreams = 0 ;
78 if (fManager)
79 nInputStreams = fManager->GetNinputs() ;
80 return nInputStreams ;
81}