]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOF.h
Removing wrong inline from the implementation file
[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"
cd82ed2f 33#include "AliTOFTrigger.h"
517b7f8f 34
fe4da5cc 35class AliTOF : public AliDetector {
fe4da5cc 36public:
68861244 37 AliTOF();
d599d913 38 AliTOF(const char *name, const char *title, Option_t *option="noTimeZero");
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*/) {};
b94fa26c 48 virtual void AddDigit(Int_t* tracks, Int_t* vol, Float_t* digits);
5919c40c 49 virtual void AddSDigit(Int_t tracknum, Int_t* vol, Float_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;
5d11728f 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*/){};
ba380e33 64 virtual void DrawModule() const;
517b7f8f 65 virtual void DrawDetectorModules()=0;
66 virtual void DrawDetectorStrips()=0;
7e6dce66 67 //virtual void DrawDetectorModulesinFrame()=0;
68 //virtual void DrawDetectorStripsinFrame()=0;
68861244 69 void CreateTOFFolders();
517b7f8f 70 Bool_t CheckOverlap(Int_t* vol, Float_t* digit, Int_t Track);
7e6dce66 71 //virtual void Hits2Digits();
517b7f8f 72 virtual void Hits2SDigits();
d61f73d9 73 virtual void Hits2SDigits(Int_t evNumber1, Int_t evNumber2);
c92eb8ad 74 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
7e6dce66 75 virtual void Digits2Reco() {};
76 void Digits2Raw ();
77 void Raw2Digits (){};
517b7f8f 78 virtual void ResetHits();
79 virtual void ResetDigits();
d61f73d9 80 virtual void ResetSDigits();
517b7f8f 81 TClonesArray *SDigits() const {return fSDigits;}
82 TClonesArray *ReconParticles() const {return fReconParticles;}
55991c8b 83 void RecreateSDigitsArray();
84 void CreateSDigitsArray();
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
0f4a7374 108 AliTOFGeometry *fTOFGeometry; //The TOF Geometry parameters
109
2cef3cb2 110private:
2cef3cb2 111
7e6dce66 112 ClassDef(AliTOF,7) // Time Of Flight base class
fe4da5cc 113};
114
b94fa26c 115#endif /* ALITOF_H */