Class version incremented
[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
3b9dd884 10#include "TBranch.h"
fe4da5cc 11#include "AliDetector.h"
ab256e65 12
13class TClonesArray;
14class AliFMD : public AliDetector {
fe4da5cc 15
16public:
17 AliFMD();
18 AliFMD(const char *name, const char *title);
d28dcc0d 19 virtual ~AliFMD();
ab256e65 20 virtual void AddHit(Int_t track, Int_t * vol, Float_t * hits);
21 virtual void AddDigit(Int_t* digits);
fe4da5cc 22 virtual void BuildGeometry();
b9a2d5e4 23 virtual void CreateGeometry() {}
d28dcc0d 24 virtual void CreateMaterials()=0;
25 virtual Int_t DistanceToPrimitive(Int_t px, Int_t py);
fe4da5cc 26 virtual Int_t IsVersion() const =0;
27 virtual void Init();
9e1a0ddb 28 virtual void MakeBranch(Option_t *opt=" ",const char *file=0);
4110645f 29 virtual void MakeBranchInTreeD(TTree *treeD, const char *file=0);
b9a2d5e4 30 virtual void SetTreeAddress();
31 virtual void ResetHits();
32 virtual void ResetDigits();
d28dcc0d 33 virtual void DrawDetector()=0;
b9a2d5e4 34 virtual void StepManager() {}
4110645f 35 // Granularity
36 virtual void SetRingsSi1(Int_t ringsSi1=256);
37 virtual void SetSectorsSi1(Int_t sectorsSi1=20);
38 virtual void SetRingsSi2(Int_t ringsSi2=128);
39 virtual void SetSectorsSi2(Int_t sectorsSi2=40);
37c55dc0 40
4110645f 41 void SetEventNumber(Int_t i) {fEvNrSig = i;}
ab256e65 42 void Eta2Radius(Float_t eta, Float_t zDisk, Float_t * radius);
dc8af42e 43 void Digits2Reco();
4110645f 44 virtual void SetHitsAddressBranch(TBranch *b){b->SetAddress(&fHits);}
45
b9a2d5e4 46 // Digitisation
dc8af42e 47 TClonesArray *ReconParticles() const {return fReconParticles;}
dc8af42e 48
d28dcc0d 49 protected:
50 Int_t fIdSens1; //Si sensetive volume
37c55dc0 51 Int_t fIdSens2; //Si sensetive volume
52 Int_t fIdSens3; //Si sensetive volume
53 Int_t fIdSens4; //Si sensetive volume
54 Int_t fIdSens5; //Si sensetive volume
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
60
4110645f 61 Int_t fNevents ; // Number of events to digitize
62 Int_t fEvNrSig; // signal event number
37c55dc0 63
ab256e65 64 TClonesArray *fReconParticles; // list of reconstructed particles
dc8af42e 65
ccfa7576 66 ClassDef(AliFMD,5) //Class for the FMD detector
fe4da5cc 67};
b9a2d5e4 68#endif // AliFMD_H
dc8af42e 69
70