]>
Commit | Line | Data |
---|---|---|
6ca40650 | 1 | #ifndef START_H |
2 | #define START_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
6ca40650 | 8 | //////////////////////////////////////////////// |
9 | // Manager and hits classes for set:START // | |
10 | //////////////////////////////////////////////// | |
11 | ||
12 | #include "AliDetector.h" | |
13 | #include "AliHit.h" | |
971579f6 | 14 | #include "TNamed.h" |
15 | #include "TTree.h" | |
16 | class TDirectory; | |
17 | R__EXTERN TDirectory * gDirectory; | |
18 | ||
6ca40650 | 19 | |
20 | ||
21 | class AliSTART : public AliDetector { | |
22 | ||
23 | public: | |
24 | AliSTART(); | |
25 | AliSTART(const char *name, const char *title); | |
26 | virtual ~AliSTART() {} | |
27 | virtual void AddHit(Int_t, Int_t*, Float_t*); | |
971579f6 | 28 | virtual void AddDigit( Int_t*, Int_t*); |
6ca40650 | 29 | virtual void BuildGeometry(); |
971579f6 | 30 | virtual void CreateGeometry() = 0; |
31 | virtual void CreateMaterials() = 0; | |
6ca40650 | 32 | virtual Int_t DistanceToPrimitive(Int_t px, Int_t py); |
971579f6 | 33 | virtual Int_t IsVersion() const = 0; |
6ca40650 | 34 | virtual void Init(); |
35 | virtual void MakeBranch(Option_t *opt=" "); | |
971579f6 | 36 | virtual void DrawModule() = 0; |
37 | virtual void StepManager() = 0; | |
38 | ||
39 | void Hit2digit(Int_t iEventNum); | |
40 | void Hit2digit(){return;} | |
41 | public: | |
42 | TTree *fTreeD; //tree | |
43 | TTree * GetTree() { return fTreeD;} | |
44 | //return refeence to actual tree | |
45 | Bool_t SetTree(Int_t nevent=0, TDirectory *dir = gDirectory); | |
46 | //map tree from given directory | |
47 | Bool_t MakeTree(Int_t nevent=0); | |
48 | //map tree from given directory | |
49 | protected: | |
6ca40650 | 50 | Int_t fIdSens1; |
51 | ClassDef(AliSTART,1) //Class for the START detector | |
52 | }; | |
53 | ||
971579f6 | 54 | //____________________________________________________________ |
6ca40650 | 55 | |
56 | #endif |