]>
Commit | Line | Data |
---|---|---|
7437a0f7 | 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 | class AliPHOSTick: public TObject { | |
21 | ||
22 | public: | |
23 | AliPHOSTick() ; | |
24 | AliPHOSTick(Float_t time, Float_t a, Float_t slope) ; | |
25 | virtual ~AliPHOSTick(){} | |
26 | ||
27 | Int_t Compare(const TObject * obj) const ; | |
28 | 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 | {if(fB) return fTime + (threshold - fA)/fB ; | |
33 | else return 1. ;} //return very big time | |
34 | ||
88cb7938 | 35 | Float_t GetTime(void){return fTime ;} |
7437a0f7 | 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 | ClassDef(AliPHOSTick,1) // description | |
46 | ||
47 | }; | |
48 | ||
49 | #endif // AliPHOSTICK_H |