1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //_________________________________________________________________________
19 // Auxiliary class to help calculate the time of crossing
20 // of the threshold by the front edge of the time signal
23 //*-- Author : Dmitri Peressounko (SUBATECH)
24 //////////////////////////////////////////////////////////////////////////////
26 // --- ROOT system ---
28 // --- Standard library ---
30 // --- AliRoot header files ---
31 #include "AliPHOSTick.h"
36 //____________________________________________________________________________
37 AliPHOSTick::AliPHOSTick():TObject()
45 //____________________________________________________________________________
46 AliPHOSTick::AliPHOSTick(Float_t time, Float_t a, Float_t slope):TObject()
53 //____________________________________________________________________________
54 Int_t AliPHOSTick::Compare(const TObject * obj) const
56 // compare the times of two tick objects
57 // return = -1 if smaller
61 if(obj->InheritsFrom("AliPHOSTick")){
62 AliPHOSTick * tick = (AliPHOSTick *) obj ;
63 if(fTime < tick->fTime)
66 if(fTime == tick->fTime)
74 //____________________________________________________________________________
75 void AliPHOSTick::operator+=(AliPHOSTick const & tick)
77 // Adds the amplitude of digits and completes the list of primary particles
78 // if amplitude is larger than
80 fA = fA + fB*(tick.fTime - fTime) + tick.fA ;
82 if(tick.fTime > fTime)