First V0 MC Analysis from H.Ricaud
[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;
18class AliZDCCalib;
19class AliZDCRecParam;
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 BuildGeometry();
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;}
359cdddc 49
8af17dba 50
f5543589 51 //Calibration methods
52 void SetZDCCalibFName(const char *name);
53 char* GetZDCCalibFName() const {return (char*)fZDCCalibFName.Data();}
6024ec85 54 AliZDCPedestals* GetPedCalib() const {return fPedCalib;}
55 AliZDCCalib* GetECalibData() const {return fCalibData;}
56 AliZDCRecParam* GetRecParams() const {return fRecParam;}
8af17dba 57
f5543589 58 // Trigger
59 virtual AliTriggerDetector* CreateTriggerDetector() const
60 {return new AliZDCTrigger();}
8af17dba 61
cc2abffd 62private:
63
64 AliZDC& operator = (const AliZDC&);
65
68ca986e 66protected:
359cdddc 67
8a2624cc 68 Int_t fNoShower; // Flag to switch off the shower
8af17dba 69
f5543589 70 //Calibration data member
6024ec85 71 AliZDCPedestals* fPedCalib; // Pedestal data for ZDC
72 AliZDCCalib* fCalibData; // Energy and equalization data for ZDC
73 AliZDCRecParam* fRecParam; // Parameters for reconstruction for ZDC
74 TString fZDCCalibFName; // Name of the ZDC calibration data
1acbaaa8 75
6024ec85 76 ClassDef(AliZDC,6) // Zero Degree Calorimeter base class
fe4da5cc 77};
fe4da5cc 78
f5543589 79// Calibration
35833839 80//_____________________________________________________________________________
81inline void AliZDC::SetZDCCalibFName(const char *name)
f5543589 82{
83 fZDCCalibFName = name;
84 gSystem->ExpandPathName(fZDCCalibFName);
85}
35833839 86
35833839 87
fe4da5cc 88#endif