Additional protection
[u/mrichter/AliRoot.git] / FMD / AliFMD.h
CommitLineData
d28dcc0d 1#ifndef ALIFMD_H
2#define ALIFMD_H
4347b38f 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4 * reserved.
5 *
6 * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
7 *
8 * See cxx source for full Copyright notice
9 */
3da30618 10
37c4363a 11//____________________________________________________________________
12//
13// Manager class for the FMD - Base class.
14//
4347b38f 15#ifndef ALIDETECTOR_H
16# include <AliDetector.h>
17#endif
4347b38f 18#ifndef ROOT_TBranch
19# include <TBranch.h>
20#endif
1a1fdef7 21class TBranch;
22class TClonesArray;
23class TBrowser;
24class AliDigitizer;
25class AliFMDSimulator;
4347b38f 26
27//____________________________________________________________________
28class AliFMD : public AliDetector
29{
fe4da5cc 30public:
31 AliFMD();
1a1fdef7 32 AliFMD(const char *name, const char *title);
56b1929b 33 AliFMD(const AliFMD& other);
4347b38f 34 virtual ~AliFMD();
56b1929b 35 AliFMD& operator=(const AliFMD& other);
4ac75127 36 // Use old implementation
37 void UseOld(Bool_t use=kTRUE) { fUseOld = use; }
38 void UseDivided(Bool_t use=kTRUE) { fUseDivided = use; }
39 void UseAssembly(Bool_t use=kTRUE) { fUseAssembly = use; }
40 void UseGeo(Bool_t use=kTRUE) { fUseGeo = use; }
41
42
4347b38f 43 // GEometry ANd Tracking (GEANT :-)
44 virtual void CreateGeometry();
45 virtual void CreateMaterials();
fe4da5cc 46 virtual void Init();
4347b38f 47 virtual void StepManager() = 0;
58d6a713 48
4347b38f 49 // Graphics and event display
50 virtual void BuildGeometry();
51 virtual void DrawDetector();
17323043 52 virtual Int_t DistanceToPrimitive(Int_t px, Int_t py);
3d44ce66 53
4347b38f 54 // Hit and digit management
55 virtual void MakeBranch(Option_t *opt=" ");
56 virtual void SetHitsAddressBranch(TBranch *b);
57 virtual void SetTreeAddress();
58 virtual TClonesArray* SDigits() { return fSDigits; }
59 virtual void ResetSDigits();
60 virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits);
69b696b9 61 virtual void AddHitByFields(Int_t track,
62 UShort_t detector,
63 Char_t ring,
64 UShort_t sector,
65 UShort_t strip,
66 Float_t x=0,
67 Float_t y=0,
68 Float_t z=0,
69 Float_t px=0,
70 Float_t py=0,
71 Float_t pz=0,
72 Float_t edep=0,
73 Int_t pdg=0,
74 Float_t t=0);
75 virtual void AddDigit(Int_t *digits, Int_t* notused=0);
76 virtual void AddDigitByFields(UShort_t detector=0,
77 Char_t ring='\0',
78 UShort_t sector=0,
79 UShort_t strip=0,
80 UShort_t count1=0,
81 Short_t count2=-1,
82 Short_t count3=-1);
4347b38f 83 virtual void AddSDigit(Int_t *digits);
69b696b9 84 virtual void AddSDigitByFields(UShort_t detector=0,
85 Char_t ring='\0',
86 UShort_t sector=0,
87 UShort_t strip=0,
88 Float_t edep=0,
89 UShort_t count1=0,
90 Short_t count2=-1,
91 Short_t count3=-1);
4347b38f 92
93 // Digitisation
c92eb8ad 94 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
4347b38f 95 virtual void Hits2Digits();
96 virtual void Hits2SDigits();
97
98 // Raw data
99 virtual void Digits2Raw();
100
4347b38f 101 // Utility
102 void Browse(TBrowser* b);
4347b38f 103protected:
56b1929b 104 TClonesArray* HitsArray();
105 TClonesArray* DigitsArray();
106 TClonesArray* SDigitsArray();
107
56b1929b 108 TClonesArray* fSDigits; // Summable digits
109 Int_t fNsdigits; // Number of digits
1a1fdef7 110 Bool_t fDetailed; // Use detailed geometry
4ac75127 111 Bool_t fUseOld; // Use old approx geometry
112 Bool_t fUseDivided; // Use divided volumes
113 Bool_t fUseAssembly; // Use divided volumes
114 Bool_t fUseGeo; // Allow use of TGeo impl.
1a1fdef7 115
116 AliFMDSimulator* fSimulator; // Simulator task
117
118 ClassDef(AliFMD,10) // Base class FMD entry point
fe4da5cc 119};
dc8af42e 120
4347b38f 121#endif
122//____________________________________________________________________
123//
0d0e6995 124// Local Variables:
125// mode: C++
126// End:
127//
4347b38f 128// EOF
129//