]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALTick.h
New class to make V2 clusters starting from digits or hits (fast simulation). Origin...
[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
10//
11//*-- Author: Dmitri Peressounko (SUBATECH)
12
13
14// --- ROOT system ---
15#include "TObject.h"
16// --- Standard library ---
17
18// --- AliRoot header files ---
19
20class AliEMCALTick: public TObject {
21
22public:
23 AliEMCALTick() ;
24 AliEMCALTick(Float_t time, Float_t a, Float_t slope) ;
25 virtual ~AliEMCALTick(){}
26
27 Int_t Compare(const TObject * obj) const ;
28 Bool_t IsSortable() const { return kTRUE ; }
29
30 Float_t CrossingTime(Float_t threshold) const
31 //Calculates time, when rizing front of the signal crosses
32 {if(fB) return fTime + (threshold - fA)/fB ;
33 else return 1. ;} //return very big time
34
35 Float_t GetTime(void){return fTime ;}
36
37 void operator+=(AliEMCALTick const &rValue) ;
38
39
40private:
41 Float_t fTime ; //!time of the beginning of this tick
42 Float_t fA ; //!constant
43 Float_t fB ; //!slope
44
45 ClassDef(AliEMCALTick,1) // description
46
47};
48
49#endif // AliEMCALTICK_H