]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliDigitizer.cxx
Improved cuts for the reconstruction of V0s (M.Ivanov)
[u/mrichter/AliRoot.git] / STEER / AliDigitizer.cxx
CommitLineData
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
30#include "AliDigitizer.h"
31#include "AliRunDigitizer.h"
32
33ClassImp(AliDigitizer)
34
e2afb3b6 35//_______________________________________________________________________
36AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title):
37 TTask(name,title),
4df28b43 38 fManager(0),
39 fRegionOfInterest(kTRUE)
52f74d0c 40{
e2afb3b6 41 //
42 // Default ctor with name and title
43 //
52f74d0c 44}
45
e2afb3b6 46//_______________________________________________________________________
47AliDigitizer::AliDigitizer(const AliDigitizer &dig):
48 TTask(dig.GetName(),dig.GetTitle()),
4df28b43 49 fManager(0),
50 fRegionOfInterest(kTRUE)
52f74d0c 51{
e2afb3b6 52 //
53 // Copy ctor with
54 //
55 dig.Copy(*this);
56}
57
58//_______________________________________________________________________
6c4904c2 59void AliDigitizer::Copy(TObject &) const
e2afb3b6 60{
61 Fatal("Copy","Not yet implemented\n");
52f74d0c 62}
63
e2afb3b6 64//_______________________________________________________________________
65AliDigitizer::AliDigitizer(AliRunDigitizer *manager,
66 const Text_t* name, const Text_t* title):
67 TTask(name,title),
4df28b43 68 fManager(manager),
69 fRegionOfInterest(kFALSE)
e2afb3b6 70{
71 //
72 // ctor with name and title
73 //
74 fManager->AddDigitizer(this);
75}
3953b63d 76
e2afb3b6 77//_______________________________________________________________________
78AliDigitizer::~AliDigitizer()
79{
e2afb3b6 80}
3953b63d 81
e2afb3b6 82//_______________________________________________________________________
418415f0 83Int_t AliDigitizer::GetNInputStreams() const
84{
e2afb3b6 85 //
86 // return number of input streams
87 //
418415f0 88 Int_t nInputStreams = 0 ;
89 if (fManager)
90 nInputStreams = fManager->GetNinputs() ;
91 return nInputStreams ;
92}