typo corrected
[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"
1acbcff0 16#include "AliZDCChMap.h"
8af17dba 17
6024ec85 18class AliZDCPedestals;
73bc3a3f 19class AliZDCEnCalib;
20class AliZDCTowCalib;
fe4da5cc 21
22class AliZDC : public AliDetector {
23
24public:
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();
f21fc003 39 virtual AliDigitizer* CreateDigitizer(AliDigitizationInput* digInput) const;
6de91202 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
f2d7b073 50 virtual void SetVCollSideCAperture(Float_t /*aperture*/) {}
f1e11360 51 virtual void SetVCollSideCApertureNeg(Float_t /*aperture*/) {}
f2d7b073 52 virtual void SetVCollSideCCentre(Float_t /*centre*/) {}
53
54 virtual void SetVCollSideAAperture(Float_t /*aperture*/) {}
f1e11360 55 virtual void SetVCollSideAApertureNeg(Float_t /*aperture*/) {}
f2d7b073 56 virtual void SetVCollSideACentre(Float_t /*centre*/) {}
57
f1e11360 58 virtual void SetTCDDAperturePos(Float_t /*aperture*/) {}
59 virtual void SetTCDDApertureNeg(Float_t /*aperture*/) {}
60
61 virtual void SetTDIAperturePos(Float_t /*aperture*/) {}
62 virtual void SetTDIApertureNeg(Float_t /*aperture*/) {}
63
30f5a47b 64 virtual void SetLumiLength(Float_t /*length*/) {}
ee4788fe 65
66 virtual void SetYZNC(Float_t /*yZNC*/) {}
67 virtual void SetYZNA(Float_t /*yZNA*/) {}
68 virtual void SetYZPC(Float_t /*yZPC*/) {}
69 virtual void SetYZPA(Float_t /*yZPA*/) {}
8af17dba 70
f5543589 71 //Calibration methods
72 void SetZDCCalibFName(const char *name);
73 char* GetZDCCalibFName() const {return (char*)fZDCCalibFName.Data();}
6024ec85 74 AliZDCPedestals* GetPedCalib() const {return fPedCalib;}
73bc3a3f 75 AliZDCEnCalib* GetECalibData() const {return fEnCalibData;}
1acbcff0 76
77 // Map from OCDB
78 AliZDCChMap* GetChMap() const;
8af17dba 79
f5543589 80 // Trigger
81 virtual AliTriggerDetector* CreateTriggerDetector() const
82 {return new AliZDCTrigger();}
8af17dba 83
a18a0543 84
85 void SetSpectatorsTrack() {fSpectatorTracked=0;}
3eb065b3 86 Int_t SpectatorsTracked() const {return fSpectatorTracked;}
5d24ec95 87 void SetBeamEnergy(Float_t beamEnergy) {fBeamEnergy = beamEnergy;}
f2e2aa97 88 void SetpAsystem() {fIspASystem = kTRUE;}
eb37d50e 89 void SetRELDISGenerator() {fIsRELDISgen = kTRUE;}
362fd90e 90
b8aa9154 91 void SetOnlyZEM() {fOnlyZEM=kTRUE;}
92 void SetMotherFinding() {fFindMother=kTRUE;}
f2e2aa97 93
cc2abffd 94private:
95
96 AliZDC& operator = (const AliZDC&);
97
68ca986e 98protected:
359cdddc 99
8a2624cc 100 Int_t fNoShower; // Flag to switch off the shower
8af17dba 101
f5543589 102 //Calibration data member
73bc3a3f 103 AliZDCPedestals* fPedCalib; //! Pedestal data for ZDC
104 AliZDCEnCalib* fEnCalibData; //! Energy data for ZDC
105 AliZDCTowCalib* fTowCalibData; //! Equalization data for ZDC
7bff3766 106
6024ec85 107 TString fZDCCalibFName; // Name of the ZDC calibration data
a18a0543 108
5d24ec95 109 Int_t fSpectatorTracked; // Are spectator tracked by generator? 0=NO
110 Float_t fBeamEnergy; // beam energy from generator (AliGenZDC + RELDIS)
f2e2aa97 111 Bool_t fIspASystem; // Configuring pA collisions (MC only)
5d24ec95 112 Bool_t fIsRELDISgen; // Is RELDIS used as generator
1acbaaa8 113
362fd90e 114 Bool_t fOnlyZEM; // build only ZEM (no had. calorimeters!)
b8aa9154 115 Bool_t fFindMother; // look for particle mothers in the stack in StepManager
362fd90e 116
b8aa9154 117 ClassDef(AliZDC,14) // Zero Degree Calorimeter base class
fe4da5cc 118};
fe4da5cc 119
f5543589 120// Calibration
35833839 121//_____________________________________________________________________________
122inline void AliZDC::SetZDCCalibFName(const char *name)
f5543589 123{
124 fZDCCalibFName = name;
125 gSystem->ExpandPathName(fZDCCalibFName);
126}
35833839 127
35833839 128
fe4da5cc 129#endif