]>
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$ | |
e2afb3b6 | 26 | Revision 1.6 2002/10/22 15:02:15 alibrary |
27 | Introducing Riostream.h | |
28 | ||
b16a1b1e | 29 | Revision 1.5 2002/10/14 14:57:32 hristov |
30 | Merging the VirtualMC branch to the main development branch (HEAD) | |
31 | ||
b9d0a01d | 32 | Revision 1.3.6.1 2002/07/24 10:08:13 alibrary |
33 | Updating VirtualMC | |
34 | ||
35 | Revision 1.4 2002/07/17 07:29:53 jchudoba | |
36 | Add private method GetNInputStreams(). Do not use it, it's just a temporary fix the PHOS and EMCAL code. | |
37 | ||
418415f0 | 38 | Revision 1.3 2001/11/14 14:50:33 jchudoba |
39 | Pass custom name and title to the TTask base class | |
40 | ||
3953b63d | 41 | Revision 1.2 2001/10/04 15:56:34 jchudoba |
42 | TTask inheritance | |
43 | ||
8d5e6345 | 44 | Revision 1.1 2001/07/27 13:02:06 jchudoba |
45 | ABC for detector digits merging/digitization | |
46 | ||
52f74d0c | 47 | */ |
48 | ||
49 | // system includes | |
b16a1b1e | 50 | #include <Riostream.h> |
52f74d0c | 51 | |
52 | // ROOT includes | |
53 | ||
54 | // AliROOT includes | |
55 | #include "AliDigitizer.h" | |
56 | #include "AliRunDigitizer.h" | |
57 | ||
58 | ClassImp(AliDigitizer) | |
59 | ||
e2afb3b6 | 60 | //_______________________________________________________________________ |
61 | AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title): | |
62 | TTask(name,title), | |
63 | fManager(0) | |
64 | ||
52f74d0c | 65 | { |
e2afb3b6 | 66 | // |
67 | // Default ctor with name and title | |
68 | // | |
52f74d0c | 69 | } |
70 | ||
e2afb3b6 | 71 | //_______________________________________________________________________ |
72 | AliDigitizer::AliDigitizer(const AliDigitizer &dig): | |
73 | TTask(dig.GetName(),dig.GetTitle()), | |
74 | fManager(0) | |
52f74d0c | 75 | { |
e2afb3b6 | 76 | // |
77 | // Copy ctor with | |
78 | // | |
79 | dig.Copy(*this); | |
80 | } | |
81 | ||
82 | //_______________________________________________________________________ | |
83 | void AliDigitizer::Copy(AliDigitizer &) const | |
84 | { | |
85 | Fatal("Copy","Not yet implemented\n"); | |
52f74d0c | 86 | } |
87 | ||
e2afb3b6 | 88 | //_______________________________________________________________________ |
89 | AliDigitizer::AliDigitizer(AliRunDigitizer *manager, | |
90 | const Text_t* name, const Text_t* title): | |
91 | TTask(name,title), | |
92 | fManager(manager) | |
93 | { | |
94 | // | |
95 | // ctor with name and title | |
96 | // | |
97 | fManager->AddDigitizer(this); | |
98 | } | |
3953b63d | 99 | |
e2afb3b6 | 100 | //_______________________________________________________________________ |
101 | AliDigitizer::~AliDigitizer() | |
102 | { | |
103 | delete fManager; | |
104 | } | |
3953b63d | 105 | |
e2afb3b6 | 106 | //_______________________________________________________________________ |
418415f0 | 107 | Int_t AliDigitizer::GetNInputStreams() const |
108 | { | |
e2afb3b6 | 109 | // |
110 | // return number of input streams | |
111 | // | |
418415f0 | 112 | Int_t nInputStreams = 0 ; |
113 | if (fManager) | |
114 | nInputStreams = fManager->GetNinputs() ; | |
115 | return nInputStreams ; | |
116 | } |