MUON + CheckCompiler
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALRawDigit.h
CommitLineData
916f1e76 1#ifndef ALIEMCALRAWDIGIT_H
2#define ALIEMCALRAWDIGIT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id: AliEMCALRawDigit.h 17335 2007-03-10 03:40:17Z mvl $ */
7
de39a0ff 8/*
9
10
11 Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
12*/
916f1e76 13
14#include "TObject.h"
15
916f1e76 16class AliEMCALRawDigit : public TObject
17{
916f1e76 18public:
19
20 AliEMCALRawDigit();
21 AliEMCALRawDigit(Int_t id, Int_t timeSamples[], Int_t nSamples);
916f1e76 22
23 virtual ~AliEMCALRawDigit();
de39a0ff 24 void Clear(Option_t *);
916f1e76 25
de39a0ff 26 Bool_t IsSortable() const { return kTRUE;}
916f1e76 27 Int_t Compare(const TObject* obj) const;
de39a0ff 28
916f1e76 29 void SetId(Int_t id) {fId = id;}
de39a0ff 30 void SetAmplitude(Float_t amp) {fAmplitude = amp;}
31 void SetTime(Float_t time) {fTime = time;}
32 void SetTimeSamples(const Int_t timeSamples[], const Int_t nSamples);
33
34 Int_t GetId() const {return fId;}
35 Float_t GetAmplitude() const {return fAmplitude;}
36 Float_t GetTime() const {return fTime;}
37 Int_t GetNSamples() const {return fNSamples;}
916f1e76 38 Bool_t GetTimeSample(const Int_t iSample, Int_t& timeBin, Int_t& amp) const;
de39a0ff 39 Bool_t GetMaximum(Int_t& amplitude, Int_t& time) const;
40
916f1e76 41 virtual void Print(const Option_t* opt) const;
42
de39a0ff 43protected:
916f1e76 44
de39a0ff 45 AliEMCALRawDigit(const AliEMCALRawDigit &cd); // Not implemented
46 AliEMCALRawDigit &operator=(const AliEMCALRawDigit &cd); // Not implemented
47
a520bcd0 48 Int_t fId; // Absolute id
49 Int_t fNSamples; // Number of time samples
50 Int_t* fSamples; //[fNSamples]
51 Float_t fAmplitude; // digit amplitude
52 Float_t fTime; // digit time
916f1e76 53
54 ClassDef(AliEMCALRawDigit,1) // Digit in EMCAL
55};
56#endif
57