Use gMC and not pMC everywhere
[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>
8494b010 9#include <AliHit.h>
10
11class AliModule : public TNamed , public TAttLine, public TAttMarker {
12
13 // Data members
14protected:
15
16 TString fEuclidMaterial; //Name of the Euclid file for materials (if any)
17 TString fEuclidGeometry; //Name of the Euclid file for geometry (if any)
18
19 TArrayI *fIdtmed; //List of tracking medium numbers
20 TArrayI *fIdmate; //List of material numbers
21 Int_t fLoMedium; //Minimum tracking medium ID for this Module
22 Int_t fHiMedium; //Maximum tracking medium ID for this Module
23
24 Bool_t fActive; //Detector activity flag
25 TList *fHistograms; //List of histograms
26 TList *fNodes; //List of geometry nodes
27
28public:
29
30 // Creators - distructors
31 AliModule(const char* name, const char *title);
32 AliModule();
33 virtual ~AliModule();
34
35 // Inline functions
7103de83 36 virtual int GetNdigits() {return 0;}
37 virtual int GetNhits() {return 0;}
02ca2762 38 virtual TArrayI *GetIdtmed() const {return fIdtmed;}
39 virtual TList *Histograms() const {return fHistograms;}
40 virtual TList *Nodes() const {return fNodes;}
7103de83 41 virtual TClonesArray *Digits() {return 0;}
42 virtual TClonesArray *Hits() {return 0;}
43 virtual TObjArray *Points() {return 0;}
44 virtual Int_t GetIshunt() {return 0;}
45 virtual void SetIshunt(Int_t) {}
02ca2762 46 virtual Bool_t IsActive() const {return fActive;}
7103de83 47 virtual Bool_t IsFolder() {return kTRUE;}
48 virtual Int_t& LoMedium() {return fLoMedium;}
49 virtual Int_t& HiMedium() {return fHiMedium;}
8494b010 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 *) {}
7103de83 66 virtual void Browse(TBrowser *) {}
8494b010 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();
7103de83 72 virtual void PreTrack(){}
73 virtual void PostTrack(){}
74 virtual void FinishEvent() {}
8494b010 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