Adding makefile for Darwin and XLC compiler
[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
88cb7938 24class AliRunLoader;
25
963d4d30 26class AliFMDSDigitizer: public TTask {
27
28public:
29 AliFMDSDigitizer() ; // ctor
85a5290f 30 AliFMDSDigitizer(const char* HeaderFile,char *SdigitsFile = 0) ;
963d4d30 31
32 virtual ~AliFMDSDigitizer() ; // dtor
63a8fec1 33 // Int_t Digitize(Float_t Energy);
963d4d30 34
35 char *GetSDigitsFile()const{return (char*) fSDigitsFile.Data();}
36 virtual void Exec(Option_t *option);
37 void SetNEvents(Int_t Nevents){fNevents = Nevents;}
38 Stat_t GetNEvents(){return fNevents;}
39 void SetSDigitsFile(char * file ) ;
40 virtual void Print(Option_t* option) const ;
37c55dc0 41 TClonesArray *SDigits() const {return fSDigits;}
42 TClonesArray *Hits() const {return fHits;}
43 // Granularity
44 virtual void SetRingsSi1(Int_t ringsSi1);
45 virtual void SetSectorsSi1(Int_t sectorsSi1);
46 virtual void SetRingsSi2(Int_t ringsSi2);
47 virtual void SetSectorsSi2(Int_t sectorsSi2);
48
963d4d30 49
50private:
51 Int_t fNevents ; // Number of events to digitize
52 TString fSDigitsFile ; //output file
37c55dc0 53 TClonesArray *fSDigits ; // List of summable digits
54 TClonesArray *fHits ; // List of summable digits
963d4d30 55 TString fHeadersFile ; //input file
88cb7938 56
57 AliRunLoader *fRunLoader;//!Run Loader
58
37c55dc0 59 protected:
60 //Granularity
61 Int_t fRingsSi1; // Number of rings
62 Int_t fSectorsSi1; // Number of sectors
63 Int_t fRingsSi2; // Number of rings
64 Int_t fSectorsSi2; // Number of sectors
88cb7938 65
963d4d30 66
37c55dc0 67 ClassDef(AliFMDSDigitizer,1) // description
963d4d30 68
69};
70
71#endif // AliFMDSDigitizer_H