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