Andreas's improvement of support
[u/mrichter/AliRoot.git] / START / AliSTART.h
CommitLineData
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
10#include "AliDetector.h"
971579f6 11#include "TTree.h"
12class TDirectory;
2ab0c725 13class TFile;
14
971579f6 15R__EXTERN TDirectory * gDirectory;
16
6ca40650 17
18
19class AliSTART : public AliDetector {
c345bb4f 20
c345bb4f 21
22
971579f6 23public:
c345bb4f 24 AliSTART();
25 AliSTART(const char *name, const char *title);
bff160c8 26 virtual ~AliSTART();
ef51244a 27 virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits);
e73d68f2 28 virtual void AddHitPhoton(Int_t track, Int_t *vol, Float_t *hits);
ef51244a 29 virtual void AddDigit(Int_t *tracks, Int_t *digits);
c345bb4f 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();
e73d68f2 37 virtual void SetHitsAddressBranch(TBranch *b1,TBranch *b2)
38 {b1->SetAddress(&fHits); b2=0;}
c345bb4f 39 void Hit2digit(Int_t iEventNum);
40 void Hit2digit(){return;}
88cb7938 41 virtual void MakeBranch(Option_t *opt=" ");
c345bb4f 42 virtual void StepManager(){}
e73d68f2 43 virtual void ResetHits();
44 virtual void SetTreeAddress();
45 TClonesArray *Photons() {return fPhotons;}
c345bb4f 46
c92eb8ad 47 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
85a5290f 48
971579f6 49protected:
c345bb4f 50 Int_t fIdSens; // Sensetive Cherenkov radiator
88cb7938 51 Int_t fNPhotons; // Number of photons plan to photokatod
e73d68f2 52
88cb7938 53 TClonesArray *fPhotons; //! List of photons
f3ed336b 54
55private:
88cb7938 56 ClassDef(AliSTART,3) //Base class for the T0 aka START detector
6ca40650 57};
58
c345bb4f 59//_____________________________________________________________________________
60
6ca40650 61#endif
c345bb4f 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
91
92