3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
9 // Class for PHOS time digitization
11 //*-- Author: Dmitri Peressounko (SUBATECH)
14 // --- ROOT system ---
16 // --- Standard library ---
18 // --- AliRoot header files ---
20 class AliPHOSTick: public TObject {
24 AliPHOSTick(Float_t time, Float_t a, Float_t slope) ;
25 virtual ~AliPHOSTick(){}
27 Int_t Compare(const TObject * obj) const ;
28 Bool_t IsSortable() const { return kTRUE ; }
30 Float_t CrossingTime(Float_t threshold) const
31 //Calculates time, when rizing front of the signal crosses
32 {if(fB) return fTime + (threshold - fA)/fB ;
33 else return 1. ;} //return very big time
35 Float_t GetTime(void){return fTime ;}
37 void operator+=(AliPHOSTick const &rValue) ;
41 Float_t fTime ; //!time of the beginning of this tick
42 Float_t fA ; //!constant
45 ClassDef(AliPHOSTick,1) // description
49 #endif // AliPHOSTICK_H