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():TObject()
48 //____________________________________________________________________________
49 AliEMCALTick::AliEMCALTick(Float_t time, Float_t a, Float_t slope):TObject()
59 //____________________________________________________________________________
60 Int_t AliEMCALTick::Compare(const TObject * obj) const
62 // compares time values
63 if(obj->InheritsFrom("AliEMCALTick")){
64 AliEMCALTick * tick = (AliEMCALTick *) obj ;
65 if(fTime < tick->fTime)
68 if(fTime == tick->fTime)
76 //____________________________________________________________________________
77 void AliEMCALTick::operator+=(AliEMCALTick const & tick)
79 // Adds the amplitude of digits and completes the list of primary particles
80 // if amplitude is larger than
82 fA = fA + fB*(tick.fTime - fTime) + tick.fA ;
84 if(tick.fTime > fTime)