3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
9 // Class for EMCAL time digitization
10 // holds info on a single
13 //*-- Author: Dmitri Peressounko (SUBATECH)
16 // --- ROOT system ---
18 // --- Standard library ---
20 // --- AliRoot header files ---
22 class AliEMCALTick: public TObject {
26 AliEMCALTick(Float_t time, Float_t a, Float_t slope) ;
27 virtual ~AliEMCALTick(){}
29 Int_t Compare(const TObject * obj) const ;
30 Bool_t IsSortable() const { return kTRUE ; }
32 Float_t CrossingTime(Float_t threshold) const
33 //Calculates time, when rizing front of the signal crosses
34 {if(fB) return fTime + (threshold - fA)/fB ;
35 else return 1. ;} //return very big time
37 Float_t GetTime(void) const {return fTime ;}
39 void operator+=(AliEMCALTick const &rValue) ;
43 Float_t fTime ; //!time of the beginning of this tick
44 Float_t fA ; //!constant
47 ClassDef(AliEMCALTick,1) // description
51 #endif // AliEMCALTICK_H