]>
Commit | Line | Data |
---|---|---|
ef51244a | 1 | #ifndef ALISTART_H |
2 | #define ALISTART_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6ca40650 | 6 | //////////////////////////////////////////////// |
7 | // Manager and hits classes for set:START // | |
8 | //////////////////////////////////////////////// | |
9 | ||
affef71b | 10 | #include <AliDetector.h> |
11 | #include <TTree.h> | |
12 | #include "AliSTARTvertex.h" | |
13 | ||
971579f6 | 14 | class TDirectory; |
2ab0c725 | 15 | class TFile; |
affef71b | 16 | class AliESD; |
971579f6 | 17 | R__EXTERN TDirectory * gDirectory; |
18 | ||
6ca40650 | 19 | |
20 | ||
21 | class AliSTART : public AliDetector { | |
c345bb4f | 22 | |
c345bb4f | 23 | |
24 | ||
971579f6 | 25 | public: |
c345bb4f | 26 | AliSTART(); |
27 | AliSTART(const char *name, const char *title); | |
bff160c8 | 28 | virtual ~AliSTART(); |
ef51244a | 29 | virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits); |
e73d68f2 | 30 | virtual void AddHitPhoton(Int_t track, Int_t *vol, Float_t *hits); |
ef51244a | 31 | virtual void AddDigit(Int_t *tracks, Int_t *digits); |
c345bb4f | 32 | virtual void BuildGeometry(); |
33 | virtual void CreateGeometry(){} | |
34 | virtual void CreateMaterials(){} | |
35 | virtual Int_t DistanceToPrimitive(Int_t px, Int_t py); | |
36 | virtual void DrawDetector(){} | |
37 | virtual Int_t IsVersion()const {return 0;} | |
38 | virtual void Init(); | |
e73d68f2 | 39 | virtual void SetHitsAddressBranch(TBranch *b1,TBranch *b2) |
40 | {b1->SetAddress(&fHits); b2=0;} | |
88cb7938 | 41 | virtual void MakeBranch(Option_t *opt=" "); |
c345bb4f | 42 | virtual void StepManager(){} |
e73d68f2 | 43 | virtual void ResetHits(); |
44 | virtual void SetTreeAddress(); | |
affef71b | 45 | |
46 | TClonesArray *Photons() {return fPhotons;} | |
47 | ||
c92eb8ad | 48 | virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const; |
affef71b | 49 | // virtual void Reconstruct() const{ AliSTARTvertex reco; reco.Reconstruct();} |
50 | virtual void FillESD(AliESD* pESD) const{ AliSTARTvertex reco; reco.Reconstruct(pESD);} | |
85a5290f | 51 | |
971579f6 | 52 | protected: |
c345bb4f | 53 | Int_t fIdSens; // Sensetive Cherenkov radiator |
88cb7938 | 54 | Int_t fNPhotons; // Number of photons plan to photokatod |
e73d68f2 | 55 | |
88cb7938 | 56 | TClonesArray *fPhotons; //! List of photons |
f3ed336b | 57 | |
58 | private: | |
88cb7938 | 59 | ClassDef(AliSTART,3) //Base class for the T0 aka START detector |
6ca40650 | 60 | }; |
61 | ||
c345bb4f | 62 | //_____________________________________________________________________________ |
63 | ||
6ca40650 | 64 | #endif |
c345bb4f | 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 | ||
91 | ||
92 | ||
93 | ||
94 | ||
95 |