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