]>
Commit | Line | Data |
---|---|---|
87594435 | 1 | #ifndef ALICLUSTER_H |
2 | #define ALICLUSTER_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
5f24ef64 | 6 | /* $Id$ */ |
7 | ||
87594435 | 8 | //------------------------------------------------------------------------- |
9 | // Class AliCluster | |
0742d588 | 10 | // Generic class for clusters |
87594435 | 11 | // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch |
12 | //------------------------------------------------------------------------- | |
13 | ||
14 | #include <TObject.h> | |
15 | ||
16 | //_____________________________________________________________________________ | |
17 | class AliCluster : public TObject { | |
18 | public: | |
19 | AliCluster(); | |
be9c5115 | 20 | virtual ~AliCluster() {;} |
87594435 | 21 | AliCluster(Int_t *lab, Float_t *hit); |
22 | void SetLabel(Int_t lab, Int_t i) {fTracks[i]=lab;} | |
23 | void SetY(Float_t y) {fY=y;} | |
24 | void SetZ(Float_t z) {fZ=z;} | |
25 | void SetSigmaY2(Float_t sy2) {fSigmaY2=sy2;} | |
26 | void SetSigmaZ2(Float_t sz2) {fSigmaZ2=sz2;} | |
27 | ||
28 | Int_t GetLabel(Int_t i) const {return fTracks[i];} | |
29 | Float_t GetY() const {return fY;} | |
30 | Float_t GetZ() const {return fZ;} | |
31 | Float_t GetSigmaY2() const {return fSigmaY2;} | |
32 | Float_t GetSigmaZ2() const {return fSigmaZ2;} | |
33 | ||
026b89ef | 34 | //PH virtual void Use() = 0; |
35 | //PH The pure virtual function has been temporarily replaced by | |
36 | //PH virtual function with empty body. This correction somehow helps | |
37 | //PH to write/read TClonesArray with AliITSclusterV2 objects, but obviously | |
38 | //PH hides some more tricky problems (to be investigated) | |
39 | virtual void Use() {;} | |
be9c5115 | 40 | |
87594435 | 41 | protected: |
42 | Int_t fTracks[3];//labels of overlapped tracks | |
43 | Float_t fY ; //Y of cluster | |
44 | Float_t fZ ; //Z of cluster | |
45 | Float_t fSigmaY2; //Sigma Y square of cluster | |
46 | Float_t fSigmaZ2; //Sigma Z square of cluster | |
47 | ||
48 | ClassDef(AliCluster,1) // Time Projection Chamber clusters | |
49 | }; | |
50 | ||
51 | #endif | |
52 | ||
53 |