Corrected name for the FMD digits
[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);
58d6a713 20 AliFMD(const AliFMD& FMD):AliDetector(FMD) {;} //copy ctor
d28dcc0d 21 virtual ~AliFMD();
58d6a713 22 AliFMD& operator=(const AliFMD&) {return *this;}
23 virtual void AddHit(Int_t track, Int_t * vol, Float_t * hits);
24 virtual void AddDigit(Int_t* digits);
88cb7938 25 virtual void BuildGeometry();
b9a2d5e4 26 virtual void CreateGeometry() {}
d28dcc0d 27 virtual void CreateMaterials()=0;
58d6a713 28 virtual const 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;}
58d6a713 40
3d44ce66 41
88cb7938 42
b9a2d5e4 43 // Digitisation
58d6a713 44 virtual const void SetHitsAddressBranch(TBranch *b){b->SetAddress(&fHits);}
c92eb8ad 45 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
dc8af42e 46
d28dcc0d 47 protected:
46501dfb 48//Granularity
37c55dc0 49 Int_t fRingsSi1; // Number of rings
50 Int_t fSectorsSi1; // Number of sectors
51 Int_t fRingsSi2; // Number of rings
52 Int_t fSectorsSi2; // Number of sectors
53
3d44ce66 54 Int_t fNevents ; // Number of events to digitize
4110645f 55 Int_t fEvNrSig; // signal event number
37c55dc0 56
44cc5e44 57 ClassDef(AliFMD,7) //Class for the FMD detector
fe4da5cc 58};
b9a2d5e4 59#endif // AliFMD_H
dc8af42e 60
61