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