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
22 //*-- Author : Dmitri Peressounko (SUBATECH)
23 //////////////////////////////////////////////////////////////////////////////
25 // --- ROOT system ---
27 // --- Standard library ---
29 // --- AliRoot header files ---
30 #include "AliPHOSTick.h"
35 //____________________________________________________________________________
36 AliPHOSTick::AliPHOSTick():TObject()
43 //____________________________________________________________________________
44 AliPHOSTick::AliPHOSTick(Float_t time, Float_t a, Float_t slope):TObject()
50 //____________________________________________________________________________
51 Int_t AliPHOSTick::Compare(const TObject * obj) const {
52 if(obj->InheritsFrom("AliPHOSTick")){
53 AliPHOSTick * tick = (AliPHOSTick *) obj ;
54 if(fTime < tick->fTime)
57 if(fTime == tick->fTime)
65 //____________________________________________________________________________
66 void AliPHOSTick::operator+=(AliPHOSTick const & tick)
68 // Adds the amplitude of digits and completes the list of primary particles
69 // if amplitude is larger than
71 fA = fA + fB*(tick.fTime - fTime) + tick.fA ;
73 if(tick.fTime > fTime)