Correction of coding violations
[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
2cef3cb2 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);
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();
50 virtual void CreateMaterials();
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;
68861244 57 Int_t DistancetoPrimitive(Int_t px, Int_t py) const;
fe4da5cc 58 virtual void StepManager()=0;
5c016a7b 59 virtual void TOFpc(Float_t /*xtof*/, Float_t /*ytof*/, Float_t /*zlenC*/,
60 Float_t /*zlenB*/, Float_t /*zlenA*/, Float_t /*ztof0*/){}
68861244 61 virtual void DrawModule() const;
517b7f8f 62 virtual void DrawDetectorModules()=0;
63 virtual void DrawDetectorStrips()=0;
7e6dce66 64 //virtual void DrawDetectorModulesinFrame()=0;
65 //virtual void DrawDetectorStripsinFrame()=0;
68861244 66 void CreateTOFFolders();
517b7f8f 67 Bool_t CheckOverlap(Int_t* vol, Float_t* digit, Int_t Track);
7e6dce66 68 //virtual void Hits2Digits();
517b7f8f 69 virtual void Hits2SDigits();
d61f73d9 70 virtual void Hits2SDigits(Int_t evNumber1, Int_t evNumber2);
c92eb8ad 71 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
7e6dce66 72 virtual void Digits2Reco() {};
73 void Digits2Raw ();
74 void Raw2Digits (){};
517b7f8f 75 virtual void ResetHits();
76 virtual void ResetDigits();
d61f73d9 77 virtual void ResetSDigits();
517b7f8f 78 TClonesArray *SDigits() const {return fSDigits;}
79 TClonesArray *ReconParticles() const {return fReconParticles;}
55991c8b 80 void RecreateSDigitsArray();
81 void CreateSDigitsArray();
0f4a7374 82 AliTOFGeometry *GetGeometry() const { return fTOFGeometry; };
55991c8b 83
b94fa26c 84protected:
68861244 85 TFolder* fFGeom ; // Folder that holds the Geometry definition
86 TTask* fDTask ; // TOF Digitizer container
87 TTask* fReTask; // TOF Reconstructioner container
7e6dce66 88 TClonesArray* fSDigits; //! List of summable digits
89 Int_t fNSDigits; //! Number of sdigits
517b7f8f 90 TClonesArray* fReconParticles; // List of reconstructed particles
7e6dce66 91
92 //Float_t fGapA; // Gap beetween tilted strip in A-type plate
93 //Float_t fGapB; // Gap beetween tilted strip in B-type plate
94
95 //Float_t fTimeRes; // Time resolution of the TOF
96 //Float_t fChrgRes; // Charge resolution of ADC
97
98 Int_t fIdSens; // The unique identifier for sensitive volume FPAD
99
100 Bool_t fTZero; // Flag indicating if T0 is used
0f4a7374 101 AliTOFGeometry *fTOFGeometry; //The TOF Geometry parameters
102
2cef3cb2 103private:
2cef3cb2 104
7e6dce66 105 ClassDef(AliTOF,7) // Time Of Flight base class
fe4da5cc 106};
107
b94fa26c 108#endif /* ALITOF_H */