GetMedium replaced by CurrentMedium (I.Hrivnacova)
[u/mrichter/AliRoot.git] / TOF / AliTOF.h
CommitLineData
b94fa26c 1////////////////////////////////////////////////
2// //
68861244 3// Manager classe for TOF //
4// Interface : //
b94fa26c 5// AliTOF //
68861244 6// Associations between TOF related objects //
7// are defined here //
8// -- Authors: Pierella, Seganti, Vicinanza //
9// (Bologna and Salerno University) //
10// //
b94fa26c 11////////////////////////////////////////////////
12
13#ifndef ALITOF_H
14#define ALITOF_H
3da30618 15/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
16 * See cxx source for full Copyright notice */
17
18/* $Id$ */
19
2ab0c725 20class TFile;
68861244 21class TDirectory;
22class TString ;
23class TTask ;
24class TFolder ;
25
26#include "TObject.h"
27#include "TTree.h"
43f77f2d 28
fe4da5cc 29#include "AliDetector.h"
43f77f2d 30
517b7f8f 31#include "AliTOFSDigitizer.h"
0f4a7374 32#include "AliTOFGeometry.h"
517b7f8f 33
fe4da5cc 34class AliTOF : public AliDetector {
fe4da5cc 35public:
68861244 36 AliTOF();
d599d913 37 AliTOF(const char *name, const char *title, Option_t *option="noTimeZero");
68861244 38 virtual ~AliTOF() ;
b94fa26c 39// getters for AliTOF object status
7e6dce66 40 //Float_t GetTimeRes() const {return fTimeRes;};
41 //Float_t GetChrgRes() const {return fChrgRes;};
b94fa26c 42
517b7f8f 43 virtual void SetTreeAddress();
2cef3cb2 44 virtual void AddHit(Int_t track, Int_t* vol, Float_t* hits);
d599d913 45 virtual void AddT0Hit(Int_t track, Int_t* vol, Float_t* hits);
5d11728f 46 virtual void AddDigit(Int_t* /*tracks*/, Int_t* /*vol*/) {};
b94fa26c 47 virtual void AddDigit(Int_t* tracks, Int_t* vol, Float_t* digits);
5919c40c 48 virtual void AddSDigit(Int_t tracknum, Int_t* vol, Float_t* digits);
fe4da5cc 49 virtual void CreateGeometry();
d3c7bfac 50 virtual void CreateMaterials(){};
fe4da5cc 51 virtual void Init();
7e6dce66 52 //virtual void MakeBranch(Option_t* option, const char *file=0);
88cb7938 53 virtual void MakeBranch(Option_t *opt=" ");
68861244 54 virtual void Makehits(Bool_t hits=1);
2cef3cb2 55 virtual void FinishEvent();
fe4da5cc 56 virtual Int_t IsVersion() const =0;
5d11728f 57 Int_t DistancetoPrimitive(Int_t px, Int_t py);
fe4da5cc 58 virtual void StepManager()=0;
5c016a7b 59 virtual void TOFpc(Float_t /*xtof*/, Float_t /*ytof*/, Float_t /*zlenC*/,
d3c7bfac 60 Float_t /*zlenB*/, Float_t /*zlenA*/, Float_t /*ztof0*/){};
61 virtual void TOFpc(Float_t /*xtof*/, Float_t /*ytof*/, Float_t /*zlenA*/,
62 Float_t /*zlenB*/){};
ba380e33 63 virtual void DrawModule() const;
517b7f8f 64 virtual void DrawDetectorModules()=0;
65 virtual void DrawDetectorStrips()=0;
7e6dce66 66 //virtual void DrawDetectorModulesinFrame()=0;
67 //virtual void DrawDetectorStripsinFrame()=0;
68861244 68 void CreateTOFFolders();
517b7f8f 69 Bool_t CheckOverlap(Int_t* vol, Float_t* digit, Int_t Track);
7e6dce66 70 //virtual void Hits2Digits();
517b7f8f 71 virtual void Hits2SDigits();
d61f73d9 72 virtual void Hits2SDigits(Int_t evNumber1, Int_t evNumber2);
c92eb8ad 73 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
7e6dce66 74 virtual void Digits2Reco() {};
75 void Digits2Raw ();
76 void Raw2Digits (){};
517b7f8f 77 virtual void ResetHits();
78 virtual void ResetDigits();
d61f73d9 79 virtual void ResetSDigits();
517b7f8f 80 TClonesArray *SDigits() const {return fSDigits;}
81 TClonesArray *ReconParticles() const {return fReconParticles;}
55991c8b 82 void RecreateSDigitsArray();
83 void CreateSDigitsArray();
0f4a7374 84 AliTOFGeometry *GetGeometry() const { return fTOFGeometry; };
55991c8b 85
b94fa26c 86protected:
68861244 87 TFolder* fFGeom ; // Folder that holds the Geometry definition
88 TTask* fDTask ; // TOF Digitizer container
89 TTask* fReTask; // TOF Reconstructioner container
7e6dce66 90 TClonesArray* fSDigits; //! List of summable digits
91 Int_t fNSDigits; //! Number of sdigits
517b7f8f 92 TClonesArray* fReconParticles; // List of reconstructed particles
7e6dce66 93
94 //Float_t fGapA; // Gap beetween tilted strip in A-type plate
95 //Float_t fGapB; // Gap beetween tilted strip in B-type plate
96
97 //Float_t fTimeRes; // Time resolution of the TOF
98 //Float_t fChrgRes; // Charge resolution of ADC
99
100 Int_t fIdSens; // The unique identifier for sensitive volume FPAD
101
102 Bool_t fTZero; // Flag indicating if T0 is used
0f4a7374 103 AliTOFGeometry *fTOFGeometry; //The TOF Geometry parameters
104
2cef3cb2 105private:
2cef3cb2 106
7e6dce66 107 ClassDef(AliTOF,7) // Time Of Flight base class
fe4da5cc 108};
109
b94fa26c 110#endif /* ALITOF_H */