LCOV - code coverage report
Current view: top level - PHOS/PHOSbase - AliPHOSTick.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 7 14.3 %
Date: 2016-06-14 17:26:59 Functions: 1 14 7.1 %

          Line data    Source code
       1             : #ifndef ALIPHOSTICK_H
       2             : #define ALIPHOSTICK_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             : //  Class for PHOS time digitization
      10             : //                  
      11             : //*-- Author: Dmitri Peressounko (SUBATECH)
      12             : 
      13             : 
      14             : // --- ROOT system ---
      15             : #include "TObject.h"
      16             : // --- Standard library ---
      17             : 
      18             : // --- AliRoot header files ---
      19             : 
      20           0 : class AliPHOSTick: public TObject {
      21             : 
      22             : public:
      23             :   AliPHOSTick() ;          
      24             :   AliPHOSTick(Float_t time, Float_t a, Float_t slope) ;
      25           0 :   virtual ~AliPHOSTick(){}
      26             : 
      27             :   Int_t   Compare(const TObject * obj) const ;  
      28           0 :   Bool_t  IsSortable() const { return kTRUE ; }
      29             : 
      30             :   Float_t CrossingTime(Float_t threshold) const
      31             :     //Calculates time, when rizing front of the signal crosses 
      32           0 :     {if(fB) return fTime + (threshold - fA)/fB ;
      33           0 :     else return 1. ;} //return very big time
      34             : 
      35           0 :   Float_t GetTime(void){return fTime ;}
      36             : 
      37             :   void operator+=(AliPHOSTick const &rValue) ;
      38             : 
      39             : 
      40             : private:
      41             :   Float_t fTime ;     //!time of the beginning of this tick
      42             :   Float_t fA ;        //!constant
      43             :   Float_t fB ;        //!slope        
      44             : 
      45          22 :   ClassDef(AliPHOSTick,1)  // description 
      46             : 
      47             : };
      48             : 
      49             : #endif // AliPHOSTICK_H

Generated by: LCOV version 1.11