]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROhit.h
Fix for memory leaks in digits TClonesArrays (Matevz)
[u/mrichter/AliRoot.git] / VZERO / AliVZEROhit.h
index 3db4256c052549f9c2caa359108bdb4e66617add..27afa8d5b93e99c36e4328c54a23cd20c20f1e3c 100644 (file)
@@ -1,14 +1,16 @@
-#ifndef VZEROHIT_H
-#define VZEROHIT_H
+#ifndef ALIVZEROHIT_H
+#define ALIVZEROHIT_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+/* $Id$ */
 
 ////////////////////////////////////////////////
+//                                            //
 //  Manager and hits classes for set : VZERO  //
+//                                            //
 ////////////////////////////////////////////////
  
-#include "AliDetector.h"
 #include "AliHit.h"
 #include "TObjArray.h"
 #include "TArrayF.h"
 class AliVZEROhit : public AliHit {
  
 public:
-  AliVZEROhit() {}
+  AliVZEROhit();
   AliVZEROhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
   virtual ~AliVZEROhit() {};
   
-  Int_t Volume()  {return fVolume;};
-  Int_t Copy()    {return fCopy;};
-  Float_t TrackPiD() {return fTrackPiD;};
-  Float_t Tof()   {return fTof;};
-  Float_t Charge() {return fCharge;};
-  Float_t RingNumber() {return fRingNumber;};
-  Float_t Pt()    {return fPt;};
-  Float_t Pmom()  {return fPmom;};
-  Float_t Px()    {return fPx;};
-  Float_t Py()    {return fPy;};
-  Float_t Pz()    {return fPz;};
-  Float_t Vx()    {return fVx;};
-  Float_t Vy()    {return fVy;};
-  Float_t Vz()    {return fVz;};
-  Float_t Eloss() {return fEloss;}
-  Float_t Tleng() {return fTleng;}
+  Int_t   Volume()  const {return fVolume;};
+  Int_t   CopyNumber()    const {return fCopy;};
+  Float_t TrackPiD() const {return fTrackPiD;};
+  Float_t Tof()   const {return fTof;};
+  Float_t Charge() const {return fCharge;};
+  Float_t RingNumber() const {return fRingNumber;};
+  Float_t Pt()    const {return fPt;};
+  Float_t Pmom()  const {return fPmom;};
+  Float_t Px()    const {return fPx;};
+  Float_t Py()    const {return fPy;};
+  Float_t Pz()    const {return fPz;};
+  Float_t Vx()    const {return fVx;};
+  Float_t Vy()    const {return fVy;};
+  Float_t Vz()    const {return fVz;};
+  Float_t Eloss() const {return fEloss;}
+  Float_t Tleng() const {return fTleng;}
+  Int_t   Nphot() const {return fNphot;}
+  Int_t   Cell()  const {return fCell;}
  
 private:
-  Int_t   fVolume;                // Current volume ID
-  Int_t   fCopy;                  // Copy number
-  Float_t fTrackPiD;              // Root particle I
-  Float_t fTof;                   // Time of flight wrt vertex
-  Float_t fCharge;                // Charge of particle
-  Float_t fTheta; 
-  Float_t fPhi;
-  Float_t fRingNumber;
+  Int_t   fVolume;        // Current volume ID
+  Int_t   fCopy;          // Current copy number
+  Float_t fTrackPiD;      // Track Pi
+  Float_t fTof;           // Particle time of flight wrt vertex
+  Float_t fCharge;        // Particle charge
+  Float_t fTheta;         // Incident theta angle in degrees 
+  Float_t fPhi;           // Incident phi angle in degrees
+  Float_t fRingNumber;    // RingNumber
   
-  Float_t fPt;
-  Float_t fPmom;
-  Float_t fPx;
-  Float_t fPy;
-  Float_t fPz;
-  Float_t fVx;
-  Float_t fVy;
-  Float_t fVz;
-  Float_t fEloss;         //  energy loss  in VZERO detector
-  Float_t fTleng;         //  track length in VZERO detector
-  
-    
-  ClassDef(AliVZEROhit,1)  //Hits for detector VZERO
+  Float_t fPt;            // Local transverse momentum of the particle
+  Float_t fPmom;          // Local P momentum of the particle
+  Float_t fPx;            // Local Px momentum of the particle
+  Float_t fPy;            // Local Py momentum of the particle
+  Float_t fPz;            // Local Pz momentum of the particle
+  Float_t fVx;            // Vertex x coordinate  
+  Float_t fVy;            // Vertex y coordinate  
+  Float_t fVz;            // Vertex z coordinate    
+  Float_t fEloss;         // Energy loss  in VZERO detector
+  Float_t fTleng;         // Track length in VZERO detector
+  Int_t   fNphot;         // Number of photons created by current hit 
+  Int_t   fCell;          // Scintillator cell number from 0 to 71 
+
+  ClassDef(AliVZEROhit,2) //  Hits for detector VZERO
 };
 #endif