]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliDigitizer.cxx
fForceDecay initialized to kAll in constructors
[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 // system includes
25 #include <Riostream.h>
26
27 // ROOT includes
28
29 // AliROOT includes
30 #include "AliDigitizer.h"
31 #include "AliRunDigitizer.h"
32
33 ClassImp(AliDigitizer)
34
35 //_______________________________________________________________________
36 AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title):
37   TTask(name,title),
38   fManager(0)
39 {
40   //
41   // Default ctor with name and title
42   //
43 }
44
45 //_______________________________________________________________________
46 AliDigitizer::AliDigitizer(const AliDigitizer &dig):
47   TTask(dig.GetName(),dig.GetTitle()),
48   fManager(0)
49 {
50   //
51   // Copy ctor with
52   //
53   dig.Copy(*this);
54 }
55
56 //_______________________________________________________________________
57 void AliDigitizer::Copy(TObject &) const
58 {
59   Fatal("Copy","Not yet implemented\n");
60 }
61
62 //_______________________________________________________________________
63 AliDigitizer::AliDigitizer(AliRunDigitizer *manager, 
64                            const Text_t* name, const Text_t* title):
65   TTask(name,title),
66   fManager(manager)
67 {
68   //
69   // ctor with name and title
70   //
71   fManager->AddDigitizer(this);
72 }
73
74 //_______________________________________________________________________
75 AliDigitizer::~AliDigitizer() 
76 {
77   delete fManager;
78 }
79
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 }