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