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