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