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