The deletion of TOF folders temporarily commented out
[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
0efc163f 16class AliTOFDigitizer ;
17
68861244 18class AliTOFDigitizer: public TTask {
19
20public:
21 AliTOFDigitizer() ; // ctor
22 AliTOFDigitizer(const char* HeaderFile,const char* digitsTitle = 0) ;
23 virtual ~AliTOFDigitizer() ; // dtor
24 virtual void Exec(Option_t* option);
25
26 Float_t GetTimeRes() const {return fTimeRes;}
27 Float_t GetChrgRes() const {return fChrgRes;}
28 char* GetDigitsBranch()const{return (char*) fDigitsTitle.Data();}
29
30 virtual void Print(Option_t* option) const ;
31
32 void SetTimeRes(Float_t timeRes) {fTimeRes = timeRes ;}
33 void SetChrgRes(Float_t chrgRes) {fChrgRes = chrgRes ;}
34 void SetDigitsBranch(const char* title ) ;
35
36 Bool_t operator == (const AliTOFDigitizer & sd) const ;
37
38private:
39 void Init() ;
40 void PrintDigits(Option_t* option) ;
41
42private:
43 Float_t fTimeRes; // Time Resolution
44 Float_t fChrgRes; // ADC parameter
45 Int_t fNevents ; // Number of events to digitize
46 TString fDigitsTitle ; // title of Digits branch
47 TString fHeadersFile ; // input file
48 Bool_t fIsInitialized ; // kTRUE if Digitizer is initialized
49 TClonesArray* fDigits ; // list of Digits
50 TClonesArray* fHits ; // list of Hits
51
52
53 ClassDef(AliTOFDigitizer,1) // Task Class for making Digits in TOF
54
55};
56
57#endif // AliTOFDigitizer_H