Suffix top level Branch names with a dot, to allow switching on/off via SetBranchStat...
[u/mrichter/AliRoot.git] / T0 / AliT0.h
... / ...
CommitLineData
1#ifndef ALIT0_H
2#define ALIT0_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6////////////////////////////////////////////////
7// Manager and hits classes for set:T0 //
8////////////////////////////////////////////////
9
10#include <AliDetector.h>
11#include <TTree.h>
12#include <TClonesArray.h>
13#include "AliT0RecPoint.h"
14#include "AliT0digit.h"
15#include "AliT0Trigger.h"
16#include "AliT0RawReader.h"
17
18class TDirectory;
19class TFile;
20class AliESD;
21R__EXTERN TDirectory * gDirectory;
22
23
24
25class AliT0 : public AliDetector {
26
27
28
29public:
30 AliT0();
31 AliT0(const char *name, const char *title);
32 virtual ~AliT0();
33 virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits);
34 virtual void AddDigit(Int_t *, Int_t *) {};
35 virtual void AddDigit(Int_t besttimeright, Int_t besttimeleft, Int_t meantime,
36 Int_t timediff, Int_t sumMult, Int_t refpoint,
37 TArrayI *time, TArrayI *adc, TArrayI *timeAmp, TArrayI *adcAmp);
38 virtual void BuildGeometry();
39 virtual void CreateGeometry(){}
40 virtual void CreateMaterials(){}
41 virtual Int_t DistanceToPrimitive(Int_t px, Int_t py);
42 virtual void DrawDetector(){}
43 virtual Int_t IsVersion()const {return 0;}
44 virtual void Init();
45 virtual void DefineOpticalProperties(){}
46 virtual void SetHitsAddressBranch(TBranch *b1)
47 {b1->SetAddress(&fHits);}
48 virtual void MakeBranch(Option_t *opt=" ");
49 virtual void StepManager(){}
50 virtual void ResetHits();
51 virtual void ResetDigits();
52 virtual void SetTreeAddress();
53 virtual void MakeBranchInTreeD(TTree *treeD, const char *file=0);
54 // virtual AliLoader* MakeLoader(const char* topfoldername);
55 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
56 void Digits2Raw ();
57 void Raw2Digits (AliRawReader *reader,TTree* digitsTree);
58 virtual AliTriggerDetector* CreateTriggerDetector() const
59 { return new AliT0Trigger(); }
60
61 virtual void Raw2Digits() {}
62
63protected:
64 Int_t fIdSens; // Sensetive Cherenkov photocathode
65 AliT0digit *fDigits;
66 AliT0RecPoint *fRecPoints;
67
68 private:
69 AliT0(const AliT0&);
70 AliT0& operator=(const AliT0&);
71
72 ClassDef(AliT0,4) //Base class for the T0 aka T0 detector
73};
74
75typedef AliT0 AliSTART; // for backward compatibility
76
77//_____________________________________________________________________________
78
79#endif
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110