]> git.uio.no Git - u/mrichter/AliRoot.git/blame - START/AliSTART.h
User stepping methods added (E. Futo)
[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;}
9e1a0ddb 41 virtual void MakeBranch(Option_t *opt=" ", const char *file=0);
c345bb4f 42 virtual void StepManager(){}
e73d68f2 43 virtual void ResetHits();
44 virtual void SetTreeAddress();
45 TClonesArray *Photons() {return fPhotons;}
c345bb4f 46
971579f6 47protected:
c345bb4f 48 Int_t fIdSens; // Sensetive Cherenkov radiator
e73d68f2 49 Int_t fNPhotons; // Number of photons plan to photokatod
50
51 TClonesArray *fPhotons; // List of photons
f3ed336b 52
53private:
e73d68f2 54 ClassDef(AliSTART,2) //Base class for the T0 aka START detector
6ca40650 55};
56
c345bb4f 57//_____________________________________________________________________________
58
6ca40650 59#endif
c345bb4f 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