Important bugfix. Missing reset of the equipment header data. It was causing a wrong...
[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
17class AliZDCCalibData;
fe4da5cc 18
19class AliZDC : public AliDetector {
20
21public:
22 AliZDC();
23 AliZDC(const char *name, const char *title);
f901045b 24 virtual ~AliZDC();
68ca986e 25 virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits);
fe4da5cc 26 virtual void BuildGeometry();
27 virtual void CreateGeometry() {}
28 virtual void CreateMaterials() {}
fe4da5cc 29 virtual Int_t IsVersion() const =0;
cefa66cb 30 virtual Float_t ZMin() const; // Minimum overall dimension of the ZDC
31 virtual Float_t ZMax() const; // Maximum overall dimension of the ZDC
b81c9821 32 virtual void SetTreeAddress();
5bc762ca 33 virtual void MakeBranch(Option_t* opt);
359cdddc 34 virtual void Hits2SDigits();
6de91202 35 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
36 virtual void Digits2Raw();
359cdddc 37 virtual void StepManager() {}
1acbaaa8 38
3d0b2c4f 39 // Switching off the shower development in ZDCs
09630792 40 void NoShower(){fNoShower=1;}
41 void Shower() {fNoShower=0;}
359cdddc 42
8af17dba 43
f5543589 44 //Calibration methods
45 void SetZDCCalibFName(const char *name);
46 char* GetZDCCalibFName() const {return (char*)fZDCCalibFName.Data();}
35833839 47
48 void CreateCalibData();
49 void WriteCalibData(Int_t option=TObject::kOverwrite);
50 void LoadCalibData();
51 void SetCalibData(AliZDCCalibData* data) {fCalibData = data;}
8af17dba 52 AliZDCCalibData* GetCalibData() const {return fCalibData;}
8af17dba 53
f5543589 54 // Trigger
55 virtual AliTriggerDetector* CreateTriggerDetector() const
56 {return new AliZDCTrigger();}
8af17dba 57
68ca986e 58protected:
359cdddc 59
8a2624cc 60 Int_t fNoShower; // Flag to switch off the shower
8af17dba 61
f5543589 62 //Calibration data member
35833839 63 AliZDCCalibData* fCalibData; // Calibration data for ZDC
64 TString fZDCCalibFName; // Name of the ZDC calibration data
1acbaaa8 65
f5543589 66 ClassDef(AliZDC,5) // Zero Degree Calorimeter base class
fe4da5cc 67};
fe4da5cc 68
f5543589 69// Calibration
35833839 70//_____________________________________________________________________________
71inline void AliZDC::SetZDCCalibFName(const char *name)
f5543589 72{
73 fZDCCalibFName = name;
74 gSystem->ExpandPathName(fZDCCalibFName);
75}
35833839 76
35833839 77
fe4da5cc 78#endif