]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliDigitizer.cxx
Merging the VirtualMC branch to the main development branch (HEAD)
[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.6.1  2002/07/24 10:08:13  alibrary
27 Updating VirtualMC
28
29 Revision 1.4  2002/07/17 07:29:53  jchudoba
30 Add private method GetNInputStreams(). Do not use it, it's just a temporary fix the PHOS and EMCAL code.
31
32 Revision 1.3  2001/11/14 14:50:33  jchudoba
33 Pass custom name and title to the TTask base class
34
35 Revision 1.2  2001/10/04 15:56:34  jchudoba
36 TTask inheritance
37
38 Revision 1.1  2001/07/27 13:02:06  jchudoba
39 ABC for detector digits merging/digitization
40
41 */
42
43 // system includes
44 #include <iostream.h>
45
46 // ROOT includes
47
48 // AliROOT includes
49 #include "AliDigitizer.h"
50 #include "AliRunDigitizer.h"
51
52 ClassImp(AliDigitizer)
53
54 AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title)
55   :TTask(name,title) 
56 {
57 //
58 // dummy default ctor with name and title
59 //
60   fManager = 0;
61 }
62
63 AliDigitizer::AliDigitizer(AliRunDigitizer *manager, 
64                            const Text_t* name, const Text_t* title)
65   :TTask(name,title)
66 {
67 //
68 // ctor with name and title
69 //
70   fManager = manager;
71   manager->AddDigitizer(this);
72 }
73
74
75
76 AliDigitizer::~AliDigitizer() {;}
77 ////////////////////////////////////////////////////////////////////////
78 Int_t AliDigitizer::GetNInputStreams() const
79 {
80 //
81 // return number of input streams
82 //
83   Int_t nInputStreams = 0 ;
84   if (fManager)
85     nInputStreams = fManager->GetNinputs() ;
86   return nInputStreams ; 
87 }