]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALTick.h
Added static AliEMCALRecoUtils::ExtrapolateTrackToEMCalSurface function that operates...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTick.h
CommitLineData
51ecce10 1#ifndef ALIEMCALTICK_H
2#define ALIEMCALTICK_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//_________________________________________________________________________
9// Class for EMCAL time digitization
14ce0a6e 10// holds info on a single
11// digit time bucket
51ecce10 12//
13//*-- Author: Dmitri Peressounko (SUBATECH)
14
15
16// --- ROOT system ---
17#include "TObject.h"
18// --- Standard library ---
19
20// --- AliRoot header files ---
21
22class AliEMCALTick: public TObject {
23
24public:
25 AliEMCALTick() ;
26 AliEMCALTick(Float_t time, Float_t a, Float_t slope) ;
27 virtual ~AliEMCALTick(){}
28
29 Int_t Compare(const TObject * obj) const ;
30 Bool_t IsSortable() const { return kTRUE ; }
31
32 Float_t CrossingTime(Float_t threshold) const
33 //Calculates time, when rizing front of the signal crosses
34 {if(fB) return fTime + (threshold - fA)/fB ;
35 else return 1. ;} //return very big time
36
d64c959b 37 Float_t GetTime(void) const {return fTime ;}
51ecce10 38
39 void operator+=(AliEMCALTick const &rValue) ;
40
41
42private:
43 Float_t fTime ; //!time of the beginning of this tick
44 Float_t fA ; //!constant
45 Float_t fB ; //!slope
46
47 ClassDef(AliEMCALTick,1) // description
48
49};
50
51#endif // AliEMCALTICK_H