]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RICH/AliRICHHit.h
Cluster multiplicity offset (Nclus>200) to take into account bkg in PatRec
[u/mrichter/AliRoot.git] / RICH / AliRICHHit.h
index 9be73d1e4116329aacac0c6ff0454f34675e99bb..646931fed9e8c2f6e59fd2463d4de324eb30600c 100644 (file)
@@ -1,35 +1,31 @@
-#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 <TVector3.h>
 
-#include "AliHit.h"
+//RICH hit container
+class AliRICHHit : public AliHit
+{
+public:
+           AliRICHHit()                                                     :AliHit(     ),fChamber(-1),fEloss(-1) {fInX3.SetXYZ(0,0,0);fOutX3.SetXYZ(0,0,0);}
+           AliRICHHit(Int_t c,Int_t tid,TVector3 in,TVector3 out,Double_t e):AliHit(0,tid),fChamber(c ),fEloss(e ) {fInX3=in; fOutX3=out; fX=out.X();fY=out.Y();fZ=out.Z();}
+  virtual ~AliRICHHit()                                                                                            {}
 
-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() {}
-    
-    ClassDef(AliRICHHit,1)  //Hits object for set:RICH
-};
+  Int_t    C()                       const{return fChamber;}              //chamber number 
+  Int_t    Chamber()                 const{return fChamber;}              //chamber number 
+  Float_t  Eloss()                   const{return fEloss;}                //energy lost by track inside amplification gap  
+  TVector3 InX3()                    const{return fInX3;}                 //track position at the faceplane of the gap 
+  TVector3 OutX3()                   const{return fOutX3;}                //track position at the backplane of the gap 
+  Double_t Length()                  const{return (fOutX3-fInX3).Mag();}  //track length inside the amplification gap
+  void     Print(Option_t *option="")const;                               //virtual
+protected:
+  Int_t     fChamber;                      //chamber number
+  Double_t  fEloss;                        //ionisation energy lost in GAP
+  TVector3  fInX3;                         //position at the entrance of the GAP   
+  TVector3  fOutX3;                        //position at the exit of the GAP
+  ClassDef(AliRICHHit,2)                   //RICH hit class
+};//class AliRICHhit
 #endif