Correct syntax error.
[u/mrichter/AliRoot.git] / STEER / AliModule.h
CommitLineData
8494b010 1#ifndef AliModule_H
2#define AliModule_H
3#include <TNamed.h>
4#include <TClonesArray.h>
5#include <TBrowser.h>
6#include <TAttLine.h>
7#include <TAttMarker.h>
8#include <TArrayI.h>
9//#include <Gtypes.h>
10#include <AliHit.h>
11
12class AliModule : public TNamed , public TAttLine, public TAttMarker {
13
14 // Data members
15protected:
16
17 TString fEuclidMaterial; //Name of the Euclid file for materials (if any)
18 TString fEuclidGeometry; //Name of the Euclid file for geometry (if any)
19
20 TArrayI *fIdtmed; //List of tracking medium numbers
21 TArrayI *fIdmate; //List of material numbers
22 Int_t fLoMedium; //Minimum tracking medium ID for this Module
23 Int_t fHiMedium; //Maximum tracking medium ID for this Module
24
25 Bool_t fActive; //Detector activity flag
26 TList *fHistograms; //List of histograms
27 TList *fNodes; //List of geometry nodes
28
29public:
30
31 // Creators - distructors
32 AliModule(const char* name, const char *title);
33 AliModule();
34 virtual ~AliModule();
35
36 // Inline functions
37 virtual inline int GetNdigits() {return 0;}
38 virtual inline int GetNhits() {return 0;}
39 virtual inline TList *Histograms() {return fHistograms;}
40 virtual inline TList *Nodes() {return fNodes;}
41 virtual inline TClonesArray *Digits() {return 0;}
42 virtual inline TClonesArray *Hits() {return 0;}
43 virtual inline TObjArray *Points() {return 0;}
44 virtual inline Int_t GetIshunt() {return 0;}
45 virtual inline void SetIshunt(Int_t) {}
46 virtual inline Bool_t IsActive() {return fActive;}
47 virtual inline Bool_t IsFolder() {return kTRUE;}
48 virtual inline Int_t& LoMedium() {return fLoMedium;}
49 virtual inline Int_t& HiMedium() {return fHiMedium;}
50
51 // Module composition
52 virtual void AliMaterial(Int_t, const char*, Float_t, Float_t, Float_t, Float_t,
53 Float_t, Float_t* buf=0, Int_t nwbuf=0) const;
54 virtual void AliMixture(Int_t, const char*, Float_t*, Float_t*, Float_t, Int_t, Float_t*) const;
55 virtual void AliMedium(Int_t, const char*, Int_t, Int_t, Int_t, Float_t, Float_t,
56 Float_t, Float_t, Float_t, Float_t, Float_t* ubuf=0, Int_t nbuf=0) const;
57 virtual void AliMatrix(Int_t&, Float_t, Float_t, Float_t, Float_t, Float_t, Float_t) const;
58
59 // Virtual methods
60 virtual void BuildGeometry() {};
61 virtual Int_t IsVersion() const =0;
62
63 // Other methods
64 virtual void AddDigit(Int_t*, Int_t*){}
65 virtual void AddHit(Int_t, Int_t*, Float_t *) {}
66 virtual void Browse(TBrowser *b) {}
67 virtual void CreateGeometry() {}
68 virtual void CreateMaterials() {}
69 virtual void Disable();
70 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
71 virtual void Enable();
72 virtual inline void PreTrack(){}
73 virtual inline void PostTrack(){}
74 virtual inline void FinishEvent() {}
75 virtual void FinishRun() {}
76 virtual void Hits2Digits() {}
77 virtual void Init() {}
78 virtual void LoadPoints(Int_t ) {}
79 virtual void MakeBranch(Option_t *) {}
80 virtual void Paint(Option_t *) {}
81 virtual void ResetDigits() {}
82 virtual void ResetHits() {}
83 virtual void ResetPoints() {}
84 virtual void SetTreeAddress() {}
85 virtual void SetTimeGate(Float_t) {}
86 virtual Float_t GetTimeGate() {return 1.e10;}
87 virtual void StepManager() {}
88 virtual AliHit* FirstHit(Int_t) {return 0;}
89 virtual AliHit* NextHit() {return 0;}
90 virtual void SetBufferSize(Int_t) {}
91 virtual void SetEuclidFile(char*,char*geometry=0);
92
93 ClassDef(AliModule,1) //Base class for ALICE Modules
94};
95#endif