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