]>
Commit | Line | Data |
---|---|---|
68ca986e | 1 | #ifndef ALIZDC_H |
2 | #define ALIZDC_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
fe4da5cc | 8 | //////////////////////////////////////////////// |
f901045b | 9 | // Manager and classes for set ZDC // |
fe4da5cc | 10 | //////////////////////////////////////////////// |
359cdddc | 11 | |
35833839 | 12 | #include <TSystem.h> |
13 | ||
fe4da5cc | 14 | #include "AliDetector.h" |
f5543589 | 15 | #include "AliZDCTrigger.h" |
8af17dba | 16 | |
6024ec85 | 17 | class AliZDCPedestals; |
18 | class AliZDCCalib; | |
fe4da5cc | 19 | |
20 | class AliZDC : public AliDetector { | |
21 | ||
22 | public: | |
23 | AliZDC(); | |
24 | AliZDC(const char *name, const char *title); | |
f901045b | 25 | virtual ~AliZDC(); |
cc2abffd | 26 | AliZDC(const AliZDC&); |
27 | // | |
68ca986e | 28 | virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits); |
fe4da5cc | 29 | virtual void CreateGeometry() {} |
30 | virtual void CreateMaterials() {} | |
fe4da5cc | 31 | virtual Int_t IsVersion() const =0; |
cefa66cb | 32 | virtual Float_t ZMin() const; // Minimum overall dimension of the ZDC |
33 | virtual Float_t ZMax() const; // Maximum overall dimension of the ZDC | |
b81c9821 | 34 | virtual void SetTreeAddress(); |
5bc762ca | 35 | virtual void MakeBranch(Option_t* opt); |
359cdddc | 36 | virtual void Hits2SDigits(); |
6de91202 | 37 | virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const; |
38 | virtual void Digits2Raw(); | |
90001c80 | 39 | virtual Bool_t Raw2SDigits(AliRawReader* rawReader); |
40 | Int_t Pedestal(Int_t Detector, Int_t Quadrant, Int_t Res) const; | |
03020943 | 41 | Int_t ADCch2Phe(Int_t Detector, Int_t Quadrant, Int_t ADCVal, Int_t Res) const; |
359cdddc | 42 | virtual void StepManager() {} |
1acbaaa8 | 43 | |
3d0b2c4f | 44 | // Switching off the shower development in ZDCs |
09630792 | 45 | void NoShower(){fNoShower=1;} |
46 | void Shower() {fNoShower=0;} | |
359cdddc | 47 | |
8af17dba | 48 | |
f5543589 | 49 | //Calibration methods |
50 | void SetZDCCalibFName(const char *name); | |
51 | char* GetZDCCalibFName() const {return (char*)fZDCCalibFName.Data();} | |
6024ec85 | 52 | AliZDCPedestals* GetPedCalib() const {return fPedCalib;} |
53 | AliZDCCalib* GetECalibData() const {return fCalibData;} | |
8af17dba | 54 | |
f5543589 | 55 | // Trigger |
56 | virtual AliTriggerDetector* CreateTriggerDetector() const | |
57 | {return new AliZDCTrigger();} | |
8af17dba | 58 | |
a18a0543 | 59 | |
60 | void SetSpectatorsTrack() {fSpectatorTracked=0;} | |
3eb065b3 | 61 | Int_t SpectatorsTracked() const {return fSpectatorTracked;} |
a18a0543 | 62 | |
cc2abffd | 63 | private: |
64 | ||
65 | AliZDC& operator = (const AliZDC&); | |
66 | ||
68ca986e | 67 | protected: |
359cdddc | 68 | |
8a2624cc | 69 | Int_t fNoShower; // Flag to switch off the shower |
8af17dba | 70 | |
f5543589 | 71 | //Calibration data member |
6024ec85 | 72 | AliZDCPedestals* fPedCalib; // Pedestal data for ZDC |
73 | AliZDCCalib* fCalibData; // Energy and equalization data for ZDC | |
7bff3766 | 74 | |
6024ec85 | 75 | TString fZDCCalibFName; // Name of the ZDC calibration data |
a18a0543 | 76 | |
77 | Int_t fSpectatorTracked; // Are spectator tracked by generator? | |
1acbaaa8 | 78 | |
a18a0543 | 79 | ClassDef(AliZDC,8) // Zero Degree Calorimeter base class |
fe4da5cc | 80 | }; |
fe4da5cc | 81 | |
f5543589 | 82 | // Calibration |
35833839 | 83 | //_____________________________________________________________________________ |
84 | inline void AliZDC::SetZDCCalibFName(const char *name) | |
f5543589 | 85 | { |
86 | fZDCCalibFName = name; | |
87 | gSystem->ExpandPathName(fZDCCalibFName); | |
88 | } | |
35833839 | 89 | |
35833839 | 90 | |
fe4da5cc | 91 | #endif |