Comments updated and merge problems solved.
[u/mrichter/AliRoot.git] / FMD / AliFMD.h
CommitLineData
d28dcc0d 1#ifndef ALIFMD_H
2#define ALIFMD_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
fe4da5cc 6////////////////////////////////////////////////
d28dcc0d 7// Manager and hits classes for set:Si-FMD //
fe4da5cc 8////////////////////////////////////////////////
9
10#include "AliDetector.h"
b9a2d5e4 11#include "TString.h"
dc8af42e 12#include "AliFMDMerger.h"
37c55dc0 13#include "AliFMDSDigitizer.h"
b9a2d5e4 14 class TFile;
15 class TTree;
dc8af42e 16 class AliFMDMerger;
b9a2d5e4 17 class AliFMD : public AliDetector {
fe4da5cc 18
19public:
20 AliFMD();
21 AliFMD(const char *name, const char *title);
d28dcc0d 22 virtual ~AliFMD();
fe4da5cc 23 virtual void AddHit(Int_t, Int_t*, Float_t*);
b9a2d5e4 24 virtual void AddDigit(Int_t*);
37c55dc0 25 virtual void AddSDigit(Int_t*);
fe4da5cc 26 virtual void BuildGeometry();
b9a2d5e4 27 virtual void CreateGeometry() {}
d28dcc0d 28 virtual void CreateMaterials()=0;
29 virtual Int_t DistanceToPrimitive(Int_t px, Int_t py);
fe4da5cc 30 virtual Int_t IsVersion() const =0;
31 virtual void Init();
9e1a0ddb 32 virtual void MakeBranch(Option_t *opt=" ",const char *file=0);
b9a2d5e4 33 virtual void SetTreeAddress();
34 virtual void ResetHits();
35 virtual void ResetDigits();
d28dcc0d 36 virtual void DrawDetector()=0;
b9a2d5e4 37 virtual void StepManager() {}
37c55dc0 38 // Granularity
39 virtual void SetRingsSi1(Int_t ringsSi1);
40 virtual void SetSectorsSi1(Int_t sectorsSi1);
41 virtual void SetRingsSi2(Int_t ringsSi2);
42 virtual void SetSectorsSi2(Int_t sectorsSi2);
43
d28dcc0d 44 void Eta2Radius(Float_t, Float_t, Float_t*);
b9a2d5e4 45 void Hits2SDigits();//
dc8af42e 46 void Digits2Reco();
37c55dc0 47
b9a2d5e4 48 // Digitisation
49 TClonesArray *SDigits() const {return fSDigits;}
50// virtual void SDigits2Digits();
dc8af42e 51 virtual void SDigits2Digits();
52 virtual void SetMerger(AliFMDMerger* merger);
53 virtual AliFMDMerger* Merger();
54 TClonesArray *ReconParticles() const {return fReconParticles;}
55 Int_t fNevents ; // Number of events to digitize
56
d28dcc0d 57 protected:
58 Int_t fIdSens1; //Si sensetive volume
37c55dc0 59 Int_t fIdSens2; //Si sensetive volume
60 Int_t fIdSens3; //Si sensetive volume
61 Int_t fIdSens4; //Si sensetive volume
62 Int_t fIdSens5; //Si sensetive volume
63 //Granularity
64 Int_t fRingsSi1; // Number of rings
65 Int_t fSectorsSi1; // Number of sectors
66 Int_t fRingsSi2; // Number of rings
67 Int_t fSectorsSi2; // Number of sectors
68
69
dc8af42e 70 AliFMDMerger *fMerger; // ! pointer to merger
b9a2d5e4 71 TClonesArray *fSDigits ; // List of summable digits
dc8af42e 72 TClonesArray *fReconParticles;
73
74 ClassDef(AliFMD,3) //Class for the FMD detector
fe4da5cc 75};
b9a2d5e4 76#endif // AliFMD_H
dc8af42e 77
78