]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RICH/AliRICHHit.h
Added track cut method, warning for q<0, profiles for qmax vs pad row and qtot vs...
[u/mrichter/AliRoot.git] / RICH / AliRICHHit.h
index 9be73d1e4116329aacac0c6ff0454f34675e99bb..2ad639233ed515c913404537441f744c65eca40f 100644 (file)
@@ -1,35 +1,35 @@
-#ifndef ALIRICHHIT_H
-#define ALIRICHHIT_H
-
-
+#ifndef AliRICHHit_h
+#define AliRICHHit_h
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/* $Id$ */
-
-
-#include "AliHit.h"
+#include <AliHit.h>           //base class
+#include <TVector3.h>         //ctor
 
-class AliRICHHit : public AliHit {
- public:
-    Int_t     fChamber;       // Chamber number
-    Float_t   fParticle;      // Geant3 particle type
-    Float_t   fTheta ;        // Incident theta angle in degrees      
-    Float_t   fPhi   ;        // Incident phi angle in degrees
-    Float_t   fTlength;       // Track length inside the chamber
-    Float_t   fEloss;         // ionisation energy loss in gas   
-    Float_t   fPHfirst;       // first padhit
-    Float_t   fPHlast;        // last padhit
-    Float_t   fLoss;          // did it hit the freon?
-    Float_t   fMomX;            // Local Momentum
-    Float_t   fMomY;            // Local Momentum
-    Float_t   fMomZ;            // Local Momentum
-    Float_t   fNPads;           // Pads hit
- public:
-    AliRICHHit() {}
-    AliRICHHit(Int_t fIshunt, Int_t track, Int_t *vol, Float_t *hits);
-    virtual ~AliRICHHit() {}
+class AliRICHHit : public AliHit //   TObject-AliHit-AliRICHHit
+{
+public:
+  AliRICHHit(                                                                             ):AliHit(     ),fCh(-1),fPid(-1 ),fE(-1),fLorsX(-1),fLorsY(-1) {} //default ctor
+  AliRICHHit(Int_t c,Float_t e,Int_t pid,Int_t tid,Float_t xl,Float_t yl,const TVector3 &p):AliHit(0,tid),fCh(c ),fPid(pid),fE(e ),fLorsX(xl),fLorsY(yl) {fX=p.X();fY=p.Y();fZ=p.Z();}           
+  AliRICHHit(Int_t c,Float_t e,Int_t pid,Int_t tid,Float_t xl,Float_t yl                  ):              fCh(c ),fPid(pid),fE(e ),fLorsX(xl),fLorsY(yl) {fTrack=tid;}           
+  virtual ~AliRICHHit()                                                                                                {}
+//framework part
+  void     Print(Option_t *option="")const;                                    //from TObject to print current status
+//private part  
+  Int_t   Ch    ()const{return fCh;                                    }       //Chamber
+  Float_t E     ()const{return fE;                                     }       //Eloss for MIP hit or Etot for photon hit, [GeV]
+  Float_t LorsX ()const{return fLorsX;                                 }       //hit X position in LORS, [cm]
+  Float_t LorsY ()const{return fLorsY;                                 }       //hit Y position in LORS, [cm]
+  Int_t   Pid   ()const{return fPid;                                   }       //PID
+  Int_t   Tid   ()const{return fTrack;                                 }       //TID
+         
+protected:                                                                     //AliHit has fTid,fX,fY,fZ 
+  Int_t    fCh;                                                                //Chamber
+  Int_t    fPid;                                                               //PID
+  Float_t  fE;                                                                 //Eloss for MIP or Etot for photon [GeV]
+  Float_t  fLorsX;                                                             //hit X position in chamber LORS, [cm]
+  Float_t  fLorsY;                                                             //hit Y position in chamber LORS, [cm]
+  ClassDef(AliRICHHit,4)                                                       //RICH hit class 
+};//class AliRICHhit
     
-    ClassDef(AliRICHHit,1)  //Hits object for set:RICH
-};
 #endif