A simple readme file for all the files stored in this dir.
[u/mrichter/AliRoot.git] / ZDC / AliZDCHit.h
CommitLineData
8e308087 1#ifndef ALIZDCHIT_H
2#define ALIZDCHIT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6////////////////////////////////////////////////
7// Hits classes for set ZDC //
8////////////////////////////////////////////////
9
10#include "AliHit.h"
11
12class AliZDCHit : public AliHit {
13
14public:
cc2abffd 15 AliZDCHit();
8e308087 16 AliZDCHit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
cc2abffd 17 //AliZDCHit(const AliZDCHit* oldhit) {*this=*oldhit;}
18 AliZDCHit(const AliZDCHit &oldhit);
8e308087 19 virtual ~AliZDCHit() {}
20
21 // Getters
3ff116f2 22 virtual Int_t GetVolume(Int_t i) const {return fVolume[i];}
23 virtual Float_t GetPrimKinEn() const {return fPrimKinEn;}
24 virtual Float_t GetXImpact() const {return fXImpact;}
25 virtual Float_t GetYImpact() const {return fYImpact;}
26 virtual Float_t GetSFlag() const {return fSFlag;}
27 virtual Float_t GetLightPMQ() const {return fLightPMQ;}
28 virtual Float_t GetLightPMC() const {return fLightPMC;}
29 virtual Float_t GetEnergy() const {return fEnergy;}
359cdddc 30
31 // Setters
32 virtual void SetLightPMQ(Float_t value) {fLightPMQ=value;}
33 virtual void SetLightPMC(Float_t value) {fLightPMC=value;}
3ff116f2 34 virtual void SetSFlag(Float_t value) {fSFlag=value;}
35 virtual void SetPrimKinEn(Float_t value){fPrimKinEn=value;}
36 virtual void SetXImpact(Float_t value) {fXImpact=value;}
37 virtual void SetYImpact(Float_t value) {fYImpact=value;}
8e308087 38
39 // Operators
cc2abffd 40 Int_t operator == (AliZDCHit &quad){
8e308087 41 Int_t i;
5a881c97 42 if(fTrack!=quad.GetTrack()) return 0;
8e308087 43 for(i=0; i<2; i++) if(fVolume[i]!=quad.GetVolume(i)) return 0;
44 return 1;
45 }
46
cc2abffd 47 virtual AliZDCHit operator + (AliZDCHit &quad){
48 fLightPMQ += quad.GetLightPMQ();
49 fLightPMC += quad.GetLightPMC();
50 fEnergy += quad.GetEnergy();
8e308087 51 return *this;
52 }
53
54 // Print method
8a2624cc 55 void Print(Option_t *) const;
8e308087 56
3ff116f2 57protected:
58 // Data members
59 Int_t fVolume[2]; //Array of volumes
60 Float_t fPrimKinEn; //Primary particle energy
61 Float_t fXImpact; //x-coord. of the impact point over the ZDC
62 Float_t fYImpact; //y-coord. of the impact point over the ZDC
63 Float_t fSFlag; //Secondary flag
64 Float_t fLightPMQ; //Cerenkov light produced in each quadrant
65 Float_t fLightPMC; //Cerenkov light seen by the common PM
66 Float_t fEnergy; //Total energy deposited in eV
67
68
8e308087 69 ClassDef(AliZDCHit,1) // Hits for the Zero Degree Calorimeters
70};
71
72#endif