//_________________________________________________________________________
// Auxiliary class to help calculate the time of crossing
// of the threshold by the front edge of the time signal
-//..
-//..
+//
//*-- Author : Dmitri Peressounko (SUBATECH)
//////////////////////////////////////////////////////////////////////////////
//____________________________________________________________________________
- AliPHOSTick::AliPHOSTick():TObject()
+AliPHOSTick::AliPHOSTick():
+ fTime(0),
+ fA(0),
+ fB(0)
{
- // default ctor
- fTime = 0;
- fA = 0;
- fB = 0 ;
}
//____________________________________________________________________________
-AliPHOSTick::AliPHOSTick(Float_t time, Float_t a, Float_t slope):TObject()
+AliPHOSTick::AliPHOSTick(Float_t time, Float_t a, Float_t slope):
+ fTime(time),
+ fA(a),
+ fB(slope)
{
- //ctor
- fTime = time;
- fA = a;
- fB = slope ;
}
-//____________________________________________________________________________
-Int_t AliPHOSTick::Compare(const TObject * obj) const
-{
- // compare the times of two tick objects
- // return = -1 if smaller
- // 0 if equal
- // 1 id larger
+//____________________________________________________________________________
+Int_t AliPHOSTick::Compare(const TObject * obj) const {
if(obj->InheritsFrom("AliPHOSTick")){
AliPHOSTick * tick = (AliPHOSTick *) obj ;
if(fTime < tick->fTime)