Updated version of TOF digitization, N^2 problem solved (J.Chudoba)
[u/mrichter/AliRoot.git] / TOF / AliTOFSDigitizer.h
CommitLineData
517b7f8f 1#ifndef ALITOFSDigitizer_H
2#define ALITOFSDigitizer_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6
7//_________________________________________________________________________
8// Task Class for making SDigits in TOF
9//
10//-- Author: F. Pierella
11
12
13#include "TTask.h"
14#include "TString.h"
15#include "AliTOF.h"
16#include "AliDetector.h"
17
18class AliTOFSDigitizer: public TTask {
19
20public:
21 AliTOFSDigitizer() ; // ctor
5919c40c 22 AliTOFSDigitizer(char* HeaderFile, char *SdigitsFile = 0) ;
517b7f8f 23
24 virtual ~AliTOFSDigitizer() ; // dtor
25 // Int_t Digitize(Float_t Energy);
26
5919c40c 27// char *GetSDigitsFile() const {return const_cast<char*>(fSDigitsFile.Data());}
28 const char *GetSDigitsFile() const {return fSDigitsFile.Data();}
517b7f8f 29 virtual void Exec(Option_t *option);
5919c40c 30 void SetNEvents(Int_t Nevents) {fNevents = Nevents;}
31 Int_t GetNEvents() const {return fNevents;}
517b7f8f 32 void SetSDigitsFile(char * file ) ;
33 virtual void Print(Option_t* option) const ;
34 TClonesArray *SDigits() const {return fSDigits;}
35 TClonesArray *Hits() const {return fHits;}
36
37
38
39private:
5919c40c 40 Int_t fNevents; // Number of events to digitize
41 TString fSDigitsFile; // output file
42 TClonesArray *fSDigits; // array of summable digits
43 TClonesArray *fHits; // array of summable digits
44 TString fHeadersFile; // input file
517b7f8f 45
46 protected:
47
48
5919c40c 49 ClassDef(AliTOFSDigitizer,1) // creates TOF SDigits
517b7f8f 50
51};
52
53#endif // AliTOFSDigitizer_H