]>
Commit | Line | Data |
---|---|---|
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 | 20 | class TFile; |
68861244 | 21 | class TDirectory; |
22 | class TString ; | |
23 | class TTask ; | |
24 | class TFolder ; | |
517b7f8f | 25 | class AliTOFMerger; |
68861244 | 26 | |
27 | #include "TObject.h" | |
28 | #include "TTree.h" | |
fe4da5cc | 29 | #include "AliDetector.h" |
f8014e68 | 30 | #include <Riostream.h> |
517b7f8f | 31 | #include "AliTOFMerger.h" |
32 | #include "AliTOFSDigitizer.h" | |
0f4a7374 | 33 | #include "AliTOFGeometry.h" |
517b7f8f | 34 | |
2cef3cb2 | 35 | |
fe4da5cc | 36 | class AliTOF : public AliDetector { |
fe4da5cc | 37 | public: |
68861244 | 38 | AliTOF(); |
d599d913 | 39 | AliTOF(const char *name, const char *title, Option_t *option="noTimeZero"); |
68861244 | 40 | virtual ~AliTOF() ; |
b94fa26c | 41 | // getters for AliTOF object status |
42 | Int_t GetNStripA() const {return fNStripA;} | |
43 | Int_t GetNStripB() const {return fNStripB;} | |
44 | Int_t GetNStripC() const {return fNStripC;} | |
45 | Int_t GetNpadX() const {return fNpadX;} | |
46 | Int_t GetNpadZ() const {return fNpadZ;} | |
47 | Int_t GetPadXStr() const {return fPadXStr;} | |
517b7f8f | 48 | Float_t GetTimeRes() const {return fTimeRes;} |
49 | Float_t GetChrgRes() const {return fChrgRes;} | |
b94fa26c | 50 | |
517b7f8f | 51 | virtual void SetTreeAddress(); |
2cef3cb2 | 52 | virtual void AddHit(Int_t track, Int_t* vol, Float_t* hits); |
d599d913 | 53 | virtual void AddT0Hit(Int_t track, Int_t* vol, Float_t* hits); |
b94fa26c | 54 | virtual void AddDigit(Int_t* tracks, Int_t* vol, Float_t* digits); |
5919c40c | 55 | virtual void AddSDigit(Int_t tracknum, Int_t* vol, Float_t* digits); |
fe4da5cc | 56 | virtual void CreateGeometry(); |
57 | virtual void CreateMaterials(); | |
58 | virtual void Init(); | |
517b7f8f | 59 | // virtual void MakeBranch(Option_t* option, const char *file=0); |
88cb7938 | 60 | virtual void MakeBranch(Option_t *opt=" "); |
68861244 | 61 | virtual void Makehits(Bool_t hits=1); |
2cef3cb2 | 62 | virtual void FinishEvent(); |
fe4da5cc | 63 | virtual Int_t IsVersion() const =0; |
68861244 | 64 | Int_t DistancetoPrimitive(Int_t px, Int_t py) const; |
fe4da5cc | 65 | virtual void StepManager()=0; |
5c016a7b | 66 | virtual void TOFpc(Float_t /*xtof*/, Float_t /*ytof*/, Float_t /*zlenC*/, |
67 | Float_t /*zlenB*/, Float_t /*zlenA*/, Float_t /*ztof0*/){} | |
68861244 | 68 | virtual void DrawModule() const; |
517b7f8f | 69 | virtual void DrawDetectorModules()=0; |
70 | virtual void DrawDetectorStrips()=0; | |
71 | // virtual void DrawDetectorModulesinFrame()=0; | |
72 | // virtual void DrawDetectorStripsinFrame()=0; | |
68861244 | 73 | void CreateTOFFolders(); |
517b7f8f | 74 | Bool_t CheckOverlap(Int_t* vol, Float_t* digit, Int_t Track); |
2ab0c725 | 75 | virtual void SDigits2Digits(); |
517b7f8f | 76 | virtual void SetMerger(AliTOFMerger* merger); |
77 | virtual AliTOFMerger* Merger(); | |
78 | // virtual void Hits2Digits(); | |
517b7f8f | 79 | virtual void Hits2SDigits(); |
d61f73d9 | 80 | virtual void Hits2SDigits(Int_t evNumber1, Int_t evNumber2); |
c92eb8ad | 81 | virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const; |
68861244 | 82 | virtual void Digits2Reco() {cout << "AliTOF::Digits2Reco() dummy function called" << endl;} |
2cef3cb2 | 83 | void Digits2Raw (Int_t evNumber=0); |
84 | void Raw2Digits (Int_t evNumber=0); | |
517b7f8f | 85 | virtual void ResetHits(); |
86 | virtual void ResetDigits(); | |
d61f73d9 | 87 | virtual void ResetSDigits(); |
517b7f8f | 88 | TClonesArray *SDigits() const {return fSDigits;} |
89 | TClonesArray *ReconParticles() const {return fReconParticles;} | |
55991c8b | 90 | void RecreateSDigitsArray(); |
91 | void CreateSDigitsArray(); | |
0f4a7374 | 92 | AliTOFGeometry *GetGeometry() const { return fTOFGeometry; }; |
55991c8b | 93 | |
596a855f | 94 | virtual AliTracker* CreateTracker() const; |
95 | ||
517b7f8f | 96 | Int_t fNevents ; // Number of events to digitize |
b94fa26c | 97 | |
98 | protected: | |
68861244 | 99 | TFolder* fFGeom ; // Folder that holds the Geometry definition |
100 | TTask* fDTask ; // TOF Digitizer container | |
101 | TTask* fReTask; // TOF Reconstructioner container | |
8e72349e | 102 | TClonesArray* fSDigits; //! List of summable digits |
103 | Int_t fNSDigits; //! Number of sdigits | |
517b7f8f | 104 | TClonesArray* fReconParticles; // List of reconstructed particles |
105 | AliTOFMerger *fMerger; // ! pointer to merger | |
b94fa26c | 106 | Int_t fNTof; // number of TOF sectors |
107 | Float_t fRmax; // upper bound for radial extension of TOF detector | |
108 | Float_t fRmin; // lower bound for radial extension of TOF detector | |
109 | Float_t fZlenA; // length along z-axis of type A module | |
110 | Float_t fZlenB; // length along z-axis of type B module | |
111 | Float_t fZlenC; // length along z-axis of type C module | |
112 | Float_t fZtof; // total semi-length of TOF detector | |
b94fa26c | 113 | Float_t fStripLn; // Strip Length |
114 | Float_t fSpace; // Space Beetween the strip and the bottom of the plate | |
115 | Float_t fDeadBndZ; // Dead Boundaries of a Strip along Z direction (width) | |
116 | Float_t fDeadBndX; // Dead Boundaries of a Strip along X direction (length) | |
117 | Float_t fXpad; // X size of a pad | |
118 | Float_t fZpad; // Z size of a pad | |
119 | Float_t fGapA; // Gap beetween tilted strip in A-type plate | |
120 | Float_t fGapB; // Gap beetween tilted strip in B-type plate | |
121 | Float_t fOverSpc; // Space available for sensitive layers in radial direction | |
122 | Int_t fNpadX; // Number of pads in a strip along the X direction | |
123 | Int_t fNpadZ; // Number of pads in a strip along the Z direction | |
124 | Int_t fPadXStr; // Number of pads per strip | |
b94fa26c | 125 | Int_t fNStripA; // number of strips in A type module |
126 | Int_t fNStripB; // number of strips in B type module | |
127 | Int_t fNStripC; // number of strips in C type module | |
b94fa26c | 128 | Float_t fTimeRes; // time resolution of the TOF |
129 | Float_t fChrgRes; // charge resolution of ADC | |
b94fa26c | 130 | Int_t fPadXSector; // number of pads per sector |
131 | Int_t fNRoc; // number of ROC | |
132 | Int_t fNFec; // number of FEC | |
133 | Int_t fNTdc; // number of TDC | |
134 | Int_t fNPadXRoc; // number of pads for each ROC | |
0f4a7374 | 135 | Int_t fIdSens; // the unique identifier for sensitive volume FPAD |
88cb7938 | 136 | Bool_t fTZero; // flag indicating if T0 is used |
0f4a7374 | 137 | AliTOFGeometry *fTOFGeometry; //The TOF Geometry parameters |
138 | ||
2cef3cb2 | 139 | private: |
2cef3cb2 | 140 | |
88cb7938 | 141 | ClassDef(AliTOF,6) // Time Of Flight base class |
fe4da5cc | 142 | }; |
143 | ||
b94fa26c | 144 | #endif /* ALITOF_H */ |