]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALISTART_H | |
2 | #define ALISTART_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | //////////////////////////////////////////////// | |
7 | // Manager and hits classes for set:START // | |
8 | //////////////////////////////////////////////// | |
9 | ||
10 | #include "AliDetector.h" | |
11 | #include "TTree.h" | |
12 | class TDirectory; | |
13 | class TFile; | |
14 | ||
15 | R__EXTERN TDirectory * gDirectory; | |
16 | ||
17 | ||
18 | ||
19 | class AliSTART : public AliDetector { | |
20 | ||
21 | ||
22 | ||
23 | public: | |
24 | AliSTART(); | |
25 | AliSTART(const char *name, const char *title); | |
26 | virtual ~AliSTART(); | |
27 | virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits); | |
28 | virtual void AddHitPhoton(Int_t track, Int_t *vol, Float_t *hits); | |
29 | virtual void AddDigit(Int_t *tracks, Int_t *digits); | |
30 | virtual void BuildGeometry(); | |
31 | virtual void CreateGeometry(){} | |
32 | virtual void CreateMaterials(){} | |
33 | virtual Int_t DistanceToPrimitive(Int_t px, Int_t py); | |
34 | virtual void DrawDetector(){} | |
35 | virtual Int_t IsVersion()const {return 0;} | |
36 | virtual void Init(); | |
37 | virtual void SetHitsAddressBranch(TBranch *b1,TBranch *b2) | |
38 | {b1->SetAddress(&fHits); b2=0;} | |
39 | void Hit2digit(Int_t iEventNum); | |
40 | void Hit2digit(){return;} | |
41 | virtual void MakeBranch(Option_t *opt=" ", const char *file=0); | |
42 | virtual void StepManager(){} | |
43 | virtual void ResetHits(); | |
44 | virtual void SetTreeAddress(); | |
45 | TClonesArray *Photons() {return fPhotons;} | |
46 | ||
47 | protected: | |
48 | Int_t fIdSens; // Sensetive Cherenkov radiator | |
49 | Int_t fNPhotons; // Number of photons plan to photokatod | |
50 | ||
51 | TClonesArray *fPhotons; // List of photons | |
52 | ||
53 | private: | |
54 | ClassDef(AliSTART,2) //Base class for the T0 aka START detector | |
55 | }; | |
56 | ||
57 | //_____________________________________________________________________________ | |
58 | ||
59 | #endif | |
60 | ||
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 | ||
79 | ||
80 | ||
81 | ||
82 | ||
83 | ||
84 | ||
85 | ||
86 | ||
87 | ||
88 | ||
89 | ||
90 |