Fixes for coverity.
[u/mrichter/AliRoot.git] / STEER / STEER / AliDigitizer.h
CommitLineData
52f74d0c 1#ifndef ALIDIGITIZER_H
2#define ALIDIGITIZER_H
3/* Copyright(c) 1998-2001, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
1edf4fe2 6/* $Id$*/
52f74d0c 7
8////////////////////////////////////////////////////////////////////////
9//
8d5e6345 10// Base Class for Detector specific Merging/Digitization
af7ba10c 11// Detector specific digitization classes derive from this
52f74d0c 12// Author: Jiri Chudoba (CERN)
13//
14////////////////////////////////////////////////////////////////////////
15
f21fc003 16#include "TNamed.h"
17#include "AliDigitizationInput.h"
8d5e6345 18
f21fc003 19class AliDigitizer: public TNamed {
52f74d0c 20
21 public:
3953b63d 22// ctor with name and title
23 AliDigitizer(const Text_t* name="AliDigitizer",
88cb7938 24 const Text_t* title="AliDigitizer");
3953b63d 25// ctor to be used with name and title
f21fc003 26 AliDigitizer(AliDigitizationInput *manager,
88cb7938 27 const Text_t* name="AliDigitizer",
28 const Text_t* title="AliDigitizer");
e2afb3b6 29// Copy ctor needed because there is a pointer
30 AliDigitizer(const AliDigitizer &dig);
af7ba10c 31 AliDigitizer& operator=(const AliDigitizer &dig)
e2afb3b6 32 {dig.Copy(*this);return *this;}
3953b63d 33
52f74d0c 34 virtual ~AliDigitizer();
e36c0870 35 virtual Bool_t Init() {return kTRUE;}
f21fc003 36 virtual void Digitize(Option_t* option) = 0;
37 Bool_t GetRegionOfInterest() const {return fDigInput ? fDigInput->GetRegionOfInterest() : kFALSE;}
52f74d0c 38
e2afb3b6 39protected:
418415f0 40 Int_t GetNInputStreams() const;
6c4904c2 41 void Copy(TObject &dig) const;
418415f0 42
f21fc003 43 AliDigitizationInput *fDigInput; //! Pointer to the Digitizer input
8d5e6345 44
f21fc003 45 ClassDef(AliDigitizer,3) // Base class for detector digitizers
52f74d0c 46};
47
48#endif // ALIDIGITIZER_H
88cb7938 49