1 #ifndef ALIEMCALFIXEDWINDOWCLUSTERINFO_H
2 #define ALIEMCALFIXEDWINDOWCLUSTERINFO_H
10 class AliEMCALFixedWindowClusterInfo : public TNamed {
13 AliEMCALFixedWindowClusterInfo();
14 AliEMCALFixedWindowClusterInfo(const char* name, Int_t size = 1000);
15 AliEMCALFixedWindowClusterInfo(const TString& name, Int_t size = 1000);
16 virtual ~AliEMCALFixedWindowClusterInfo();
18 Bool_t GetInfoFromId(Int_t idclus, Int_t &index, Int_t &eta, Int_t &phi);
19 Bool_t GetInfoFromIndex(Int_t index, Int_t &idclus, Int_t &eta, Int_t &phi);
21 void Add(Int_t idclus, Int_t index, Int_t eta, Int_t phi);
22 Bool_t SetIndexFromId(Int_t idclus, Int_t index);
23 Bool_t RemoveId(Int_t idclus);
24 Bool_t RemoveIndex(Int_t index);
25 void Expand(Int_t size);
27 Bool_t ContainsId(Int_t idclus);
28 Bool_t ContainsIndex(Int_t index);
29 Int_t GetLastElementId();
31 virtual void Clear(Option_t* option = "");
34 Int_t GetPositionFromId(Int_t idclus);
35 Int_t GetPositionFromIndex(Int_t index);
45 ClassDef(AliEMCALFixedWindowClusterInfo, 1);
47 #endif //ALIEMCALFIXEDWINDOWCLUSTERINFO_H