]>
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> | |
db173afc | 12 | #include <TClonesArray.h> |
13 | #include "AliSTARTRecPoint.h" | |
14 | #include "AliSTARTdigit.h" | |
affef71b | 15 | |
971579f6 | 16 | class TDirectory; |
2ab0c725 | 17 | class TFile; |
affef71b | 18 | class AliESD; |
971579f6 | 19 | R__EXTERN TDirectory * gDirectory; |
20 | ||
6ca40650 | 21 | |
22 | ||
23 | class AliSTART : public AliDetector { | |
c345bb4f | 24 | |
c345bb4f | 25 | |
26 | ||
971579f6 | 27 | public: |
c345bb4f | 28 | AliSTART(); |
29 | AliSTART(const char *name, const char *title); | |
bff160c8 | 30 | virtual ~AliSTART(); |
ef51244a | 31 | virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits); |
db173afc | 32 | virtual void AddDigit(Int_t besttimeright, Int_t besttimeleft, Int_t meantime, |
33 | Int_t timediff, TArrayI *sumMult, | |
34 | TArrayI *time, TArrayI *adc, TArrayI *timeAmp, TArrayI *adcAmp); | |
c345bb4f | 35 | virtual void BuildGeometry(); |
36 | virtual void CreateGeometry(){} | |
37 | virtual void CreateMaterials(){} | |
38 | virtual Int_t DistanceToPrimitive(Int_t px, Int_t py); | |
39 | virtual void DrawDetector(){} | |
40 | virtual Int_t IsVersion()const {return 0;} | |
41 | virtual void Init(); | |
e4da63c2 | 42 | virtual void SetHitsAddressBranch(TBranch *b1) |
43 | {b1->SetAddress(&fHits);} | |
88cb7938 | 44 | virtual void MakeBranch(Option_t *opt=" "); |
c345bb4f | 45 | virtual void StepManager(){} |
e73d68f2 | 46 | virtual void ResetHits(); |
db173afc | 47 | virtual void ResetDigits(); |
48 | virtual void SetTreeAddress(); | |
49 | virtual void MakeBranchInTreeD(TTree *treeD, const char *file=0); | |
50 | // virtual AliLoader* MakeLoader(const char* topfoldername); | |
c92eb8ad | 51 | virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const; |
e4da63c2 | 52 | void Digits2Raw (); |
85a5290f | 53 | |
971579f6 | 54 | protected: |
db173afc | 55 | Int_t fIdSens; // Sensetive Cherenkov photocathode |
56 | AliSTARTdigit *fDigits; | |
57 | AliSTARTRecPoint *fRecPoints; | |
e4da63c2 | 58 | |
118f308a | 59 | ClassDef(AliSTART,4) //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 |