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