]>
Commit | Line | Data |
---|---|---|
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 | 12 | class TClonesArray; |
88cb7938 | 13 | class AliFMD : public AliDetector { |
fe4da5cc | 14 | |
15 | public: | |
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() {} |
37c55dc0 | 34 | |
4110645f | 35 | void SetEventNumber(Int_t i) {fEvNrSig = i;} |
88cb7938 | 36 | void Eta2Radius(Float_t, Float_t, Float_t*); |
37 | void Digits2Reco(); | |
38 | ||
b9a2d5e4 | 39 | // Digitisation |
88cb7938 | 40 | TClonesArray *ReconParticles() const {return fReconParticles;} |
41 | virtual void SetHitsAddressBranch(TBranch *b){b->SetAddress(&fHits);} | |
85a5290f | 42 | virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager); |
dc8af42e | 43 | |
d28dcc0d | 44 | protected: |
46501dfb | 45 | //Granularity |
37c55dc0 | 46 | Int_t fRingsSi1; // Number of rings |
47 | Int_t fSectorsSi1; // Number of sectors | |
48 | Int_t fRingsSi2; // Number of rings | |
49 | Int_t fSectorsSi2; // Number of sectors | |
50 | ||
46501dfb | 51 | Int_t fNevents ; // Number of events to digitize |
4110645f | 52 | Int_t fEvNrSig; // signal event number |
37c55dc0 | 53 | |
46501dfb | 54 | |
88cb7938 | 55 | TClonesArray *fReconParticles; |
dc8af42e | 56 | |
ac4ea1ec | 57 | ClassDef(AliFMD,6) //Class for the FMD detector |
fe4da5cc | 58 | }; |
b9a2d5e4 | 59 | #endif // AliFMD_H |
dc8af42e | 60 | |
61 |