]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliDigitizer.cxx
Updated code/macros to be compliant with the current HEAD (from Y. Belikov)
[u/mrichter/AliRoot.git] / STEER / AliDigitizer.cxx
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 //
18 //  Base Class for Detector specific Merging/Digitization   
19 //                  
20 //  Author: Jiri Chudoba (CERN)
21 //
22 ////////////////////////////////////////////////////////////////////////
23
24 /*
25 $Log$
26 Revision 1.3  2001/11/14 14:50:33  jchudoba
27 Pass custom name and title to the TTask base class
28
29 Revision 1.2  2001/10/04 15:56:34  jchudoba
30 TTask inheritance
31
32 Revision 1.1  2001/07/27 13:02:06  jchudoba
33 ABC for detector digits merging/digitization
34
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
46 ClassImp(AliDigitizer)
47
48 AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title)
49   :TTask(name,title) 
50 {
51 //
52 // dummy default ctor with name and title
53 //
54   fManager = 0;
55 }
56
57 AliDigitizer::AliDigitizer(AliRunDigitizer *manager, 
58                            const Text_t* name, const Text_t* title)
59   :TTask(name,title)
60 {
61 //
62 // ctor with name and title
63 //
64   fManager = manager;
65   manager->AddDigitizer(this);
66 }
67
68
69
70 AliDigitizer::~AliDigitizer() {;}
71 ////////////////////////////////////////////////////////////////////////
72 Int_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 }