New version of FMD code (A.Maevskaia)
[u/mrichter/AliRoot.git] / FMD / AliFMDSDigitizer.h
CommitLineData
963d4d30 1#ifndef ALIFMDSDigitizer_H
2#define ALIFMDSDigitizer_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//_________________________________________________________________________
9// Task Class for making SDigits in FMD
10//
11//-- Author: Alla Maevskaia(INR)
12
13
14// --- ROOT system ---
15#include "TTask.h"
16#include "TString.h"
17#include "AliFMD.h"
18#include "AliDetector.h"
19
20// --- Standard library ---
21
22// --- AliRoot header files ---
23
24class AliFMDSDigitizer: public TTask {
25
26public:
27 AliFMDSDigitizer() ; // ctor
28 AliFMDSDigitizer(char* HeaderFile,char *SdigitsFile = 0) ;
29
30 virtual ~AliFMDSDigitizer() ; // dtor
63a8fec1 31 // Int_t Digitize(Float_t Energy);
963d4d30 32
33 char *GetSDigitsFile()const{return (char*) fSDigitsFile.Data();}
34 virtual void Exec(Option_t *option);
35 void SetNEvents(Int_t Nevents){fNevents = Nevents;}
36 Stat_t GetNEvents(){return fNevents;}
37 void SetSDigitsFile(char * file ) ;
38 virtual void Print(Option_t* option) const ;
37c55dc0 39 TClonesArray *SDigits() const {return fSDigits;}
40 TClonesArray *Hits() const {return fHits;}
41 // Granularity
42 virtual void SetRingsSi1(Int_t ringsSi1);
43 virtual void SetSectorsSi1(Int_t sectorsSi1);
44 virtual void SetRingsSi2(Int_t ringsSi2);
45 virtual void SetSectorsSi2(Int_t sectorsSi2);
46
963d4d30 47
48private:
49 Int_t fNevents ; // Number of events to digitize
50 TString fSDigitsFile ; //output file
37c55dc0 51 TClonesArray *fSDigits ; // List of summable digits
52 TClonesArray *fHits ; // List of summable digits
963d4d30 53 TString fHeadersFile ; //input file
37c55dc0 54 protected:
55 //Granularity
56 Int_t fRingsSi1; // Number of rings
57 Int_t fSectorsSi1; // Number of sectors
58 Int_t fRingsSi2; // Number of rings
59 Int_t fSectorsSi2; // Number of sectors
963d4d30 60
61
37c55dc0 62 ClassDef(AliFMDSDigitizer,1) // description
963d4d30 63
64};
65
66#endif // AliFMDSDigitizer_H