Fix for raw ctp decoding (Marek)
[u/mrichter/AliRoot.git] / STEER / 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
f21fc003 20// Collaborates with AliDigitizationInput 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"
f21fc003 32#include "AliDigitizationInput.h"
52f74d0c 33
34ClassImp(AliDigitizer)
35
e2afb3b6 36//_______________________________________________________________________
37AliDigitizer::AliDigitizer(const Text_t* name, const Text_t* title):
f21fc003 38 TNamed(name,title),
39 fDigInput(0)
52f74d0c 40{
e2afb3b6 41 //
42 // Default ctor with name and title
43 //
52f74d0c 44}
45
e2afb3b6 46//_______________________________________________________________________
47AliDigitizer::AliDigitizer(const AliDigitizer &dig):
f21fc003 48 TNamed(dig.GetName(),dig.GetTitle()),
49 fDigInput(0)
52f74d0c 50{
e2afb3b6 51 //
52 // Copy ctor with
53 //
54 dig.Copy(*this);
55}
56
57//_______________________________________________________________________
6c4904c2 58void AliDigitizer::Copy(TObject &) const
e2afb3b6 59{
594d8990 60 AliFatal("Not yet implemented");
52f74d0c 61}
62
e2afb3b6 63//_______________________________________________________________________
f21fc003 64AliDigitizer::AliDigitizer(AliDigitizationInput *digInput,
e2afb3b6 65 const Text_t* name, const Text_t* title):
f21fc003 66 TNamed(name,title),
67 fDigInput(digInput)
e2afb3b6 68{
69 //
70 // ctor with name and title
e2afb3b6 71}
3953b63d 72
e2afb3b6 73//_______________________________________________________________________
74AliDigitizer::~AliDigitizer()
75{
e2afb3b6 76}
3953b63d 77
e2afb3b6 78//_______________________________________________________________________
418415f0 79Int_t AliDigitizer::GetNInputStreams() const
80{
e2afb3b6 81 //
82 // return number of input streams
83 //
418415f0 84 Int_t nInputStreams = 0 ;
f21fc003 85 if (fDigInput) nInputStreams = fDigInput->GetNinputs() ;
418415f0 86 return nInputStreams ;
87}