added pkg files.
[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
3d44ce66 10#include <AliDetector.h>
11#include <TBranch.h>
12#include <AliLoader.h>
13
ab256e65 14class TClonesArray;
88cb7938 15 class AliFMD : public AliDetector {
fe4da5cc 16
17public:
18 AliFMD();
19 AliFMD(const char *name, const char *title);
d28dcc0d 20 virtual ~AliFMD();
88cb7938 21 virtual void AddHit(Int_t, Int_t*, Float_t*);
22 virtual void AddDigit(Int_t*);
23 virtual void BuildGeometry();
b9a2d5e4 24 virtual void CreateGeometry() {}
d28dcc0d 25 virtual void CreateMaterials()=0;
26 virtual Int_t DistanceToPrimitive(Int_t px, Int_t py);
fe4da5cc 27 virtual Int_t IsVersion() const =0;
28 virtual void Init();
88cb7938 29 virtual void MakeBranch(Option_t *opt=" ");
4110645f 30 virtual void MakeBranchInTreeD(TTree *treeD, const char *file=0);
b9a2d5e4 31 virtual void SetTreeAddress();
32 virtual void ResetHits();
33 virtual void ResetDigits();
d28dcc0d 34 virtual void DrawDetector()=0;
b9a2d5e4 35 virtual void StepManager() {}
37c55dc0 36
4110645f 37 void SetEventNumber(Int_t i) {fEvNrSig = i;}
88cb7938 38 void Eta2Radius(Float_t, Float_t, Float_t*);
3d44ce66 39
88cb7938 40
b9a2d5e4 41 // Digitisation
3d44ce66 42 TClonesArray *ReconParticles() const {return fReconParticles;}
88cb7938 43 virtual void SetHitsAddressBranch(TBranch *b){b->SetAddress(&fHits);}
c92eb8ad 44 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
dc8af42e 45
d28dcc0d 46 protected:
46501dfb 47//Granularity
37c55dc0 48 Int_t fRingsSi1; // Number of rings
49 Int_t fSectorsSi1; // Number of sectors
50 Int_t fRingsSi2; // Number of rings
51 Int_t fSectorsSi2; // Number of sectors
52
3d44ce66 53 Int_t fNevents ; // Number of events to digitize
4110645f 54 Int_t fEvNrSig; // signal event number
37c55dc0 55
46501dfb 56
88cb7938 57 TClonesArray *fReconParticles;
dc8af42e 58
ac4ea1ec 59 ClassDef(AliFMD,6) //Class for the FMD detector
fe4da5cc 60};
b9a2d5e4 61#endif // AliFMD_H
dc8af42e 62
63