GetMedium replaced by CurrentMedium (I.Hrivnacova)
[u/mrichter/AliRoot.git] / TOF / AliTOFDigitizer.h
CommitLineData
8e72349e 1#ifndef ALITOFDIGITIZER_H
2#define ALITOFDIGITIZER_H
3/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
68861244 4 * See cxx source for full Copyright notice */
5
6//_________________________________________________________________________
8e72349e 7// Task Class for making Digits in TOF
8// Class performs digitization of Summable digits (in the TOF case this is just
9// sum of contributions of all signals into a given pad).
10// In addition it performs mixing of summable digits from different events.
11//
12//*-- Author: Fabrizio Pierella (Bologna University)
68861244 13
8e72349e 14#include "AliDigitizer.h"
68861244 15
8e72349e 16class AliRunDigitizer;
17class AliTOFHitMap;
18class AliTOFSDigit;
68861244 19
8e72349e 20class AliTOFDigitizer : public AliDigitizer {
21 public:
68861244 22
8e72349e 23 AliTOFDigitizer();
24 AliTOFDigitizer(AliRunDigitizer * manager);
25 virtual ~AliTOFDigitizer();
26
27 // Do the main work
28 void Exec(Option_t* option=0) ;
29 TClonesArray* SDigits() const {return fSDigitsArray;}
30 void ReadSDigit(Int_t);
6dc9348d 31 void CreateDigits(Option_t *option="");
8e72349e 32
33 private:
34 void CollectSDigit(AliTOFSDigit * sdigit) ;
4c57c771 35 Int_t PutNoise(Int_t /*charge*/){return 0;}; // not yet implemented
8e72349e 36 // due to the low noise expected level
37 TClonesArray *fDigits; //! array with digits
38 TClonesArray *fSDigitsArray ; //! List of summable digits; used as a container for all sdigits to be merged
39 AliTOFHitMap *fhitMap ; //! hit map used to perform the merging
40
41 ClassDef(AliTOFDigitizer,0) // TOF/Merging/Digitization
42};
43#endif