]>
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 | ||
fb17acd4 | 16 | /* $Header$ */ |
17 | ||
52f74d0c | 18 | //////////////////////////////////////////////////////////////////////// |
19 | // | |
3953b63d | 20 | // Base Class for Detector specific Merging/Digitization |
52f74d0c | 21 | // |
22 | // Author: Jiri Chudoba (CERN) | |
23 | // | |
24 | //////////////////////////////////////////////////////////////////////// | |
25 | ||
52f74d0c | 26 | |
27 | // system includes | |
b16a1b1e | 28 | #include <Riostream.h> |
52f74d0c | 29 | |
30 | // ROOT includes | |
31 | ||
32 | // AliROOT includes | |
33 | #include "AliDigitizer.h" | |
34 | #include "AliRunDigitizer.h" | |
35 | ||
36 | ClassImp(AliDigitizer) | |
37 | ||
e2afb3b6 | 38 | //_______________________________________________________________________ |
39 | AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title): | |
40 | TTask(name,title), | |
41 | fManager(0) | |
42 | ||
52f74d0c | 43 | { |
e2afb3b6 | 44 | // |
45 | // Default ctor with name and title | |
46 | // | |
52f74d0c | 47 | } |
48 | ||
e2afb3b6 | 49 | //_______________________________________________________________________ |
50 | AliDigitizer::AliDigitizer(const AliDigitizer &dig): | |
51 | TTask(dig.GetName(),dig.GetTitle()), | |
52 | fManager(0) | |
52f74d0c | 53 | { |
e2afb3b6 | 54 | // |
55 | // Copy ctor with | |
56 | // | |
57 | dig.Copy(*this); | |
58 | } | |
59 | ||
60 | //_______________________________________________________________________ | |
61 | void AliDigitizer::Copy(AliDigitizer &) const | |
62 | { | |
63 | Fatal("Copy","Not yet implemented\n"); | |
52f74d0c | 64 | } |
65 | ||
e2afb3b6 | 66 | //_______________________________________________________________________ |
67 | AliDigitizer::AliDigitizer(AliRunDigitizer *manager, | |
68 | const Text_t* name, const Text_t* title): | |
69 | TTask(name,title), | |
70 | fManager(manager) | |
71 | { | |
72 | // | |
73 | // ctor with name and title | |
74 | // | |
75 | fManager->AddDigitizer(this); | |
76 | } | |
3953b63d | 77 | |
e2afb3b6 | 78 | //_______________________________________________________________________ |
79 | AliDigitizer::~AliDigitizer() | |
80 | { | |
81 | delete fManager; | |
82 | } | |
3953b63d | 83 | |
e2afb3b6 | 84 | //_______________________________________________________________________ |
418415f0 | 85 | Int_t AliDigitizer::GetNInputStreams() const |
86 | { | |
e2afb3b6 | 87 | // |
88 | // return number of input streams | |
89 | // | |
418415f0 | 90 | Int_t nInputStreams = 0 ; |
91 | if (fManager) | |
92 | nInputStreams = fManager->GetNinputs() ; | |
93 | return nInputStreams ; | |
94 | } |