LCOV - code coverage report
Current view: top level - PHOS/PHOSbase - AliPHOSRecParticle.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 7 9 77.8 %
Date: 2016-06-14 17:26:59 Functions: 9 25 36.0 %

          Line data    Source code
       1             : #ifndef ALIPHOSRECPARTICLE_H
       2             : #define ALIPHOSRECPARTICLE_H
       3             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       4             :  * See cxx source for full Copyright notice                               */
       5             : 
       6             : /* $Id$ */
       7             : 
       8             : //_________________________________________________________________________
       9             : //  A Reconstructed Particle in PHOS    
      10             : //  To become a general class of AliRoot ?        
      11             : //  why not      
      12             : //*-- Author: Yves Schutz (SUBATECH)
      13             : 
      14             : // --- ROOT system ---
      15             : 
      16             : // --- Standard library ---
      17             : 
      18             : // --- AliRoot header files ---
      19             : 
      20             : #include "AliPHOSFastRecParticle.h"
      21             : 
      22             : class TParticle ;
      23             : #include  "TVector3.h"  
      24             : 
      25             : class AliPHOSRecParticle : public AliPHOSFastRecParticle {
      26             : 
      27             :  public:
      28             :   
      29             :   AliPHOSRecParticle() ; 
      30             :   AliPHOSRecParticle(const AliPHOSRecParticle & rp) ;  // ctor
      31          24 :   virtual ~AliPHOSRecParticle(){  }
      32             : 
      33          20 :   Int_t   GetPHOSTSIndex()const {    return fPHOSTrackSegment ;  }
      34             :   virtual Int_t GetNPrimariesToRecParticles() const ;
      35             :   virtual Int_t GetNPrimaries() const ;
      36          60 :   TVector3 GetPos() const { return fPos ; } 
      37             :   virtual const TParticle * GetPrimary(Int_t index) const ;
      38             :   virtual const TParticle * GetPrimary() const ;
      39             :   Int_t GetPrimaryIndex() const ;
      40          20 :   const Float_t *GetPID() { return fPID ; }
      41           0 :   void    SetDebug() { fDebug = kTRUE ; } 
      42             :   void    SetPID(Int_t type, Float_t weight) ; 
      43          20 :   void    SetPos(TVector3 pos) { fPos.SetXYZ( pos.X(), pos.Y(), pos.Z() ); } 
      44           0 :   void    UnsetDebug() { fDebug = kFALSE ; }
      45          20 :   void    SetTrackSegment(Int_t index){fPHOSTrackSegment = index; }
      46             : 
      47             :   typedef TClonesArray RecParticlesList ; 
      48             :   
      49             : private:
      50             :   AliPHOSRecParticle & operator = (const AliPHOSRecParticle & /*rp*/);
      51             : 
      52             : private:
      53             : 
      54             :   Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS  
      55             :   Bool_t fDebug ; // to steer debug output
      56             :   TVector3 fPos ; // position in the global alice coordinate system 
      57             : 
      58          22 :   ClassDef(AliPHOSRecParticle,3)  // Reconstructed Particle
      59             : };
      60             : 
      61             : #endif // AliPHOSRECPARTICLE_H

Generated by: LCOV version 1.11