]>
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" |
1acbcff0 | 16 | #include "AliZDCChMap.h" |
8af17dba | 17 | |
6024ec85 | 18 | class AliZDCPedestals; |
73bc3a3f | 19 | class AliZDCEnCalib; |
20 | class AliZDCTowCalib; | |
fe4da5cc | 21 | |
22 | class AliZDC : public AliDetector { | |
23 | ||
24 | public: | |
25 | AliZDC(); | |
26 | AliZDC(const char *name, const char *title); | |
f901045b | 27 | virtual ~AliZDC(); |
cc2abffd | 28 | AliZDC(const AliZDC&); |
29 | // | |
68ca986e | 30 | virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits); |
fe4da5cc | 31 | virtual void CreateGeometry() {} |
32 | virtual void CreateMaterials() {} | |
fe4da5cc | 33 | virtual Int_t IsVersion() const =0; |
cefa66cb | 34 | virtual Float_t ZMin() const; // Minimum overall dimension of the ZDC |
35 | virtual Float_t ZMax() const; // Maximum overall dimension of the ZDC | |
b81c9821 | 36 | virtual void SetTreeAddress(); |
5bc762ca | 37 | virtual void MakeBranch(Option_t* opt); |
359cdddc | 38 | virtual void Hits2SDigits(); |
6de91202 | 39 | virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const; |
40 | virtual void Digits2Raw(); | |
90001c80 | 41 | virtual Bool_t Raw2SDigits(AliRawReader* rawReader); |
42 | Int_t Pedestal(Int_t Detector, Int_t Quadrant, Int_t Res) const; | |
03020943 | 43 | Int_t ADCch2Phe(Int_t Detector, Int_t Quadrant, Int_t ADCVal, Int_t Res) const; |
359cdddc | 44 | virtual void StepManager() {} |
1acbaaa8 | 45 | |
3d0b2c4f | 46 | // Switching off the shower development in ZDCs |
09630792 | 47 | void NoShower(){fNoShower=1;} |
48 | void Shower() {fNoShower=0;} | |
925008a9 | 49 | |
50 | virtual void SetVCollAperture(Float_t /*aperture*/) {} | |
30f5a47b | 51 | virtual void SetVCollCentre(Float_t /*centre*/) {} |
52 | virtual void SetLumiLength(Float_t /*length*/) {} | |
8af17dba | 53 | |
f5543589 | 54 | //Calibration methods |
55 | void SetZDCCalibFName(const char *name); | |
56 | char* GetZDCCalibFName() const {return (char*)fZDCCalibFName.Data();} | |
6024ec85 | 57 | AliZDCPedestals* GetPedCalib() const {return fPedCalib;} |
73bc3a3f | 58 | AliZDCEnCalib* GetECalibData() const {return fEnCalibData;} |
1acbcff0 | 59 | |
60 | // Map from OCDB | |
61 | AliZDCChMap* GetChMap() const; | |
8af17dba | 62 | |
f5543589 | 63 | // Trigger |
64 | virtual AliTriggerDetector* CreateTriggerDetector() const | |
65 | {return new AliZDCTrigger();} | |
8af17dba | 66 | |
a18a0543 | 67 | |
68 | void SetSpectatorsTrack() {fSpectatorTracked=0;} | |
3eb065b3 | 69 | Int_t SpectatorsTracked() const {return fSpectatorTracked;} |
a18a0543 | 70 | |
cc2abffd | 71 | private: |
72 | ||
73 | AliZDC& operator = (const AliZDC&); | |
74 | ||
68ca986e | 75 | protected: |
359cdddc | 76 | |
8a2624cc | 77 | Int_t fNoShower; // Flag to switch off the shower |
8af17dba | 78 | |
f5543589 | 79 | //Calibration data member |
73bc3a3f | 80 | AliZDCPedestals* fPedCalib; //! Pedestal data for ZDC |
81 | AliZDCEnCalib* fEnCalibData; //! Energy data for ZDC | |
82 | AliZDCTowCalib* fTowCalibData; //! Equalization data for ZDC | |
7bff3766 | 83 | |
6024ec85 | 84 | TString fZDCCalibFName; // Name of the ZDC calibration data |
a18a0543 | 85 | |
86 | Int_t fSpectatorTracked; // Are spectator tracked by generator? | |
1acbaaa8 | 87 | |
1acbcff0 | 88 | ClassDef(AliZDC,10) // Zero Degree Calorimeter base class |
fe4da5cc | 89 | }; |
fe4da5cc | 90 | |
f5543589 | 91 | // Calibration |
35833839 | 92 | //_____________________________________________________________________________ |
93 | inline void AliZDC::SetZDCCalibFName(const char *name) | |
f5543589 | 94 | { |
95 | fZDCCalibFName = name; | |
96 | gSystem->ExpandPathName(fZDCCalibFName); | |
97 | } | |
35833839 | 98 | |
35833839 | 99 | |
fe4da5cc | 100 | #endif |