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