Changes for #82873: Module debugging broken (Christian)
[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"
ed70db17 23#include "AliTOFDDLRawData.h"
3da30618 24
68861244 25class TDirectory;
0e46b9ae 26class TFile;
27class TFolder ;
68861244 28class TString ;
29class TTask ;
43f77f2d 30
0e46b9ae 31class AliTOFGeometry;
517b7f8f 32
fe4da5cc 33class AliTOF : public AliDetector {
fe4da5cc 34public:
68861244 35 AliTOF();
d599d913 36 AliTOF(const char *name, const char *title, Option_t *option="noTimeZero");
7aeeaf38 37
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*/) {};
bf33f8f0 47 virtual void AddDigit(Int_t* tracks, Int_t* vol, Int_t* digits);
48 virtual void AddSDigit(Int_t tracknum, Int_t* vol, Int_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;
fe4da5cc 57 virtual void StepManager()=0;
5c016a7b 58 virtual void TOFpc(Float_t /*xtof*/, Float_t /*ytof*/, Float_t /*zlenC*/,
d3c7bfac 59 Float_t /*zlenB*/, Float_t /*zlenA*/, Float_t /*ztof0*/){};
60 virtual void TOFpc(Float_t /*xtof*/, Float_t /*ytof*/, Float_t /*zlenA*/,
61 Float_t /*zlenB*/){};
dfef1a15 62 virtual void TOFpc(Float_t /*xtof*/, Float_t /*ytof*/, Float_t /*zlenA*/){};
68861244 63 void CreateTOFFolders();
389bd337 64 Bool_t CheckOverlap(const Int_t * const vol, Int_t* digit, Int_t Track);
7e6dce66 65 //virtual void Hits2Digits();
517b7f8f 66 virtual void Hits2SDigits();
d61f73d9 67 virtual void Hits2SDigits(Int_t evNumber1, Int_t evNumber2);
c92eb8ad 68 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
f472295e 69 virtual void Digits2Reco () {};
70 void Digits2Raw ();
71 void Raw2Digits () {};
72 void Raw2Digits (AliRawReader* rawReader);
73 Bool_t Raw2SDigits (AliRawReader* rawReader);
74 virtual void ResetHits ();
75 virtual void ResetDigits ();
d61f73d9 76 virtual void ResetSDigits();
517b7f8f 77 TClonesArray *SDigits() const {return fSDigits;}
78 TClonesArray *ReconParticles() const {return fReconParticles;}
55991c8b 79 void RecreateSDigitsArray();
80 void CreateSDigitsArray();
389bd337 81 virtual void SetTOFSectors(Int_t * const sectors);
06e24a91 82 virtual void GetTOFSectors(Int_t *sectors) const;
4f283355 83 virtual void SetTOFHoles(Bool_t holes) { fTOFHoles = holes; };
84 virtual Bool_t GetTOFHoles() const { return fTOFHoles; };
0f4a7374 85 AliTOFGeometry *GetGeometry() const { return fTOFGeometry; };
55991c8b 86
cd82ed2f 87 // Trigger
88 virtual AliTriggerDetector* CreateTriggerDetector() const
89 {return new AliTOFTrigger();}
90
b94fa26c 91protected:
68861244 92 TFolder* fFGeom ; // Folder that holds the Geometry definition
93 TTask* fDTask ; // TOF Digitizer container
94 TTask* fReTask; // TOF Reconstructioner container
7e6dce66 95 TClonesArray* fSDigits; //! List of summable digits
96 Int_t fNSDigits; //! Number of sdigits
517b7f8f 97 TClonesArray* fReconParticles; // List of reconstructed particles
7e6dce66 98
99 //Float_t fGapA; // Gap beetween tilted strip in A-type plate
100 //Float_t fGapB; // Gap beetween tilted strip in B-type plate
101
102 //Float_t fTimeRes; // Time resolution of the TOF
103 //Float_t fChrgRes; // Charge resolution of ADC
104
105 Int_t fIdSens; // The unique identifier for sensitive volume FPAD
106
107 Bool_t fTZero; // Flag indicating if T0 is used
06e24a91 108 Int_t fTOFSectors[18]; // Selecting TOF Sectors to be simulated
4f283355 109 Bool_t fTOFHoles; // Selecting geometry with and w/o holes
0f4a7374 110 AliTOFGeometry *fTOFGeometry; //The TOF Geometry parameters
ed70db17 111
112 AliTOFDDLRawData fTOFRawWriter; // AliTOFDDLRawData variable
0f4a7374 113
2cef3cb2 114private:
8a190ba2 115 AliTOF(const AliTOF &source); // copy constructor
116 AliTOF& operator=(const AliTOF &source); // ass. op.
2cef3cb2 117
ed70db17 118 ClassDef(AliTOF,11) // Time Of Flight base class
fe4da5cc 119};
120
b94fa26c 121#endif /* ALITOF_H */