]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliDigitizer.h
Fix for bug #78521: Cmake - recompiling AliRoot when switching to a new ROOT tag
[u/mrichter/AliRoot.git] / 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
8d5e6345 16#include "TTask.h"
17
52f74d0c 18class AliRunDigitizer;
19
8d5e6345 20class AliDigitizer: public TTask {
52f74d0c 21
22 public:
3953b63d 23// ctor with name and title
24 AliDigitizer(const Text_t* name="AliDigitizer",
88cb7938 25 const Text_t* title="AliDigitizer");
3953b63d 26// ctor to be used with name and title
27 AliDigitizer(AliRunDigitizer *manager,
88cb7938 28 const Text_t* name="AliDigitizer",
29 const Text_t* title="AliDigitizer");
e2afb3b6 30// Copy ctor needed because there is a pointer
31 AliDigitizer(const AliDigitizer &dig);
af7ba10c 32 AliDigitizer& operator=(const AliDigitizer &dig)
e2afb3b6 33 {dig.Copy(*this);return *this;}
3953b63d 34
52f74d0c 35 virtual ~AliDigitizer();
e36c0870 36 virtual Bool_t Init() {return kTRUE;}
4df28b43 37 void SetRegionOfInterest(Bool_t flag) {fRegionOfInterest = flag;};
8d5e6345 38// virtual void Digitize() = 0;
52f74d0c 39
e2afb3b6 40protected:
418415f0 41 Int_t GetNInputStreams() const;
6c4904c2 42 void Copy(TObject &dig) const;
418415f0 43
182e22d9 44 AliRunDigitizer *fManager; //! Pointer to the Digitizer manager
4df28b43 45 Bool_t fRegionOfInterest; // Flag for digitization only in region of interest
8d5e6345 46
182e22d9 47 ClassDef(AliDigitizer,2) // Base class for detector digitizers
52f74d0c 48};
49
50#endif // ALIDIGITIZER_H
88cb7938 51