TTask and TFolder structures implemented
[u/mrichter/AliRoot.git] / TOF / AliTOFDigitizer.h
CommitLineData
68861244 1#ifndef ALITOFDigitizer_H
2#define ALITOFDigitizer_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//_________________________________________________________________________
7// Task Class for making Digits in TOF
8// Comment:
9//
10// -- Author: F. Pierella (Bologna University) pierella@bo.infn.it
11
12
13#include "TTask.h"
14#include "TString.h"
15
16class AliTOFDigitizer: public TTask {
17
18public:
19 AliTOFDigitizer() ; // ctor
20 AliTOFDigitizer(const char* HeaderFile,const char* digitsTitle = 0) ;
21 virtual ~AliTOFDigitizer() ; // dtor
22 virtual void Exec(Option_t* option);
23
24 Float_t GetTimeRes() const {return fTimeRes;}
25 Float_t GetChrgRes() const {return fChrgRes;}
26 char* GetDigitsBranch()const{return (char*) fDigitsTitle.Data();}
27
28 virtual void Print(Option_t* option) const ;
29
30 void SetTimeRes(Float_t timeRes) {fTimeRes = timeRes ;}
31 void SetChrgRes(Float_t chrgRes) {fChrgRes = chrgRes ;}
32 void SetDigitsBranch(const char* title ) ;
33
34 Bool_t operator == (const AliTOFDigitizer & sd) const ;
35
36private:
37 void Init() ;
38 void PrintDigits(Option_t* option) ;
39
40private:
41 Float_t fTimeRes; // Time Resolution
42 Float_t fChrgRes; // ADC parameter
43 Int_t fNevents ; // Number of events to digitize
44 TString fDigitsTitle ; // title of Digits branch
45 TString fHeadersFile ; // input file
46 Bool_t fIsInitialized ; // kTRUE if Digitizer is initialized
47 TClonesArray* fDigits ; // list of Digits
48 TClonesArray* fHits ; // list of Hits
49
50
51 ClassDef(AliTOFDigitizer,1) // Task Class for making Digits in TOF
52
53};
54
55#endif // AliTOFDigitizer_H