Masking of not calibrated chambers
[u/mrichter/AliRoot.git] / T0 / AliT0.h
CommitLineData
dc7ca31d 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>
dc7ca31d 12#include "AliT0RecPoint.h"
13#include "AliT0digit.h"
14#include "AliT0Trigger.h"
e0bba6cc 15#include "AliT0RawReader.h"
dc7ca31d 16
17class TDirectory;
18class TFile;
19class AliESD;
94249139 20
21
dc7ca31d 22class AliT0 : public AliDetector {
23
24
25
26public:
27 AliT0();
28 AliT0(const char *name, const char *title);
29 virtual ~AliT0();
30 virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits);
31 virtual void AddDigit(Int_t *, Int_t *) {};
32 virtual void AddDigit(Int_t besttimeright, Int_t besttimeleft, Int_t meantime,
740f0839 33 Int_t timediff, Int_t sumMult, Int_t refpoint,
dc7ca31d 34 TArrayI *time, TArrayI *adc, TArrayI *timeAmp, TArrayI *adcAmp);
dc7ca31d 35 virtual void CreateGeometry(){}
36 virtual void CreateMaterials(){}
dc7ca31d 37 virtual Int_t IsVersion()const {return 0;}
38 virtual void Init();
661663fa 39 virtual void DefineOpticalProperties(){}
dc7ca31d 40 virtual void SetHitsAddressBranch(TBranch *b1)
41 {b1->SetAddress(&fHits);}
42 virtual void MakeBranch(Option_t *opt=" ");
43 virtual void StepManager(){}
44 virtual void ResetHits();
45 virtual void ResetDigits();
46 virtual void SetTreeAddress();
47 virtual void MakeBranchInTreeD(TTree *treeD, const char *file=0);
48 // virtual AliLoader* MakeLoader(const char* topfoldername);
f21fc003 49 virtual AliDigitizer* CreateDigitizer(AliDigitizationInput* digInput) const;
dc7ca31d 50 void Digits2Raw ();
e0bba6cc 51 void Raw2Digits (AliRawReader *reader,TTree* digitsTree);
dc7ca31d 52 virtual AliTriggerDetector* CreateTriggerDetector() const
53 { return new AliT0Trigger(); }
740f0839 54
55 virtual void Raw2Digits() {}
dc7ca31d 56
57protected:
94249139 58 Int_t fIdSens; // Sensetive Cherenkov photocathode
59 AliT0digit *fDigits; // pointer to T0digits
60 AliT0RecPoint *fRecPoints; // pointer to T0 RecPoints
dc7ca31d 61
62 private:
63 AliT0(const AliT0&);
64 AliT0& operator=(const AliT0&);
65
66 ClassDef(AliT0,4) //Base class for the T0 aka T0 detector
67};
68
69typedef AliT0 AliSTART; // for backward compatibility
70
71//_____________________________________________________________________________
72
73#endif
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
101
102
103
104