revert previous commit on this class
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliVCaloCells.h
CommitLineData
c8fe2783 1#ifndef ALIVCALOCELLS_H
2#define ALIVCALOCELLS_H
3/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//-------------------------------------------------------------------------
7//
8// Virtual class to access calorimeter cell data
9// Author: Gustavo Conesa Balbastre INFN-LNF
10//
11//-------------------------------------------------------------------------
12
13
14#include <TNamed.h>
15#include <TMath.h>
16
17class AliVCaloCells : public TNamed
18{
19 public:
20
21 enum VCells_t {kUndef = -1,
98a99800 22 kPHOSCell,
23 kEMCALCell};
c8fe2783 24
25 AliVCaloCells() : TNamed() {;}
26 AliVCaloCells(const char* name, const char* title) : TNamed(name, title) {;}
27 AliVCaloCells(const AliVCaloCells& cells) : TNamed(cells.GetName(), cells.GetTitle()) {;}
98a99800 28 AliVCaloCells & operator=(const AliVCaloCells& cells ) ;
c8fe2783 29 virtual ~AliVCaloCells(){;}
8dd6eba0 30 void Clear(const Option_t*) {;}
c8fe2783 31
32 virtual Bool_t IsEMCAL() const = 0;
33 virtual Bool_t IsPHOS() const = 0;
34 virtual Char_t GetType() const = 0;
35 virtual void SetType(Char_t ttype) = 0;
36
37 virtual void CreateContainer(Short_t nCells) = 0;
38 virtual void DeleteContainer() = 0;
39 virtual void Sort() = 0;
40
41 virtual Bool_t SetCell(Short_t pos, Short_t cellNumber, Double_t amplitude, Double_t time) = 0;
42 virtual Short_t GetNumberOfCells() const = 0;
43 virtual void SetNumberOfCells(Int_t n) = 0;
44
45 virtual Bool_t GetCell(Short_t pos, Short_t &cellNumber, Double_t &amplitude, Double_t &time) const = 0;
46 virtual Double_t GetCellAmplitude(Short_t cellNumber) = 0;
47 virtual Double_t GetCellTime(Short_t cellNumber) = 0;
48 virtual Double_t GetAmplitude(Short_t pos) const = 0;
49 virtual Double_t GetTime(Short_t pos) const = 0;
50 virtual Short_t GetCellNumber(Short_t pos) const = 0;
51
98a99800 52 virtual void Copy(TObject &obj) const = 0;
ecff8f07 53 virtual AliVCaloCells* CopyCaloCells(Bool_t all) const = 0;
54
c8fe2783 55 ClassDef(AliVCaloCells, 0);
56};
57
58#endif