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 //_________________________________________________________________________
22 // of the threshold by
23 // the front edge of the
26 //*-- Author : Dmitri Peressounko (SUBATECH)
27 //////////////////////////////////////////////////////////////////////////////
29 // --- ROOT system ---
31 // --- Standard library ---
33 // --- AliRoot header files ---
34 #include "AliEMCALTick.h"
36 ClassImp(AliEMCALTick)
39 //____________________________________________________________________________
40 AliEMCALTick::AliEMCALTick()
49 //____________________________________________________________________________
50 AliEMCALTick::AliEMCALTick(Float_t time, Float_t a, Float_t slope)
61 //____________________________________________________________________________
62 Int_t AliEMCALTick::Compare(const TObject * obj) const
64 // compares time values
65 if(obj->InheritsFrom("AliEMCALTick")){
66 AliEMCALTick * tick = (AliEMCALTick *) obj ;
67 if(fTime < tick->fTime)
70 if(fTime == tick->fTime)
78 //____________________________________________________________________________
79 void AliEMCALTick::operator+=(AliEMCALTick const & tick)
81 // Adds the amplitude of digits and completes the list of primary particles
82 // if amplitude is larger than
84 fA = fA + fB*(tick.fTime - fTime) + tick.fA ;
86 if(tick.fTime > fTime)