]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliCluster.h
Do not unload gAlice, it is needed until the end of the simulation run
[u/mrichter/AliRoot.git] / STEER / AliCluster.h
CommitLineData
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//_____________________________________________________________________________
17class AliCluster : public TObject {
18public:
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;}
bf3b3ce1 23
24 virtual void SetX(Float_t /*x*/){}
593e0707 25 virtual void SetY(Float_t y) {fY=y;}
26 virtual void SetZ(Float_t z) {fZ=z;}
bf3b3ce1 27 virtual void SetDetector(Int_t /*detector*/) {}
87594435 28 void SetSigmaY2(Float_t sy2) {fSigmaY2=sy2;}
29 void SetSigmaZ2(Float_t sz2) {fSigmaZ2=sz2;}
30
31 Int_t GetLabel(Int_t i) const {return fTracks[i];}
bf3b3ce1 32 virtual Float_t GetX() const {return 0;}
87594435 33 Float_t GetY() const {return fY;}
34 Float_t GetZ() const {return fZ;}
bf3b3ce1 35 virtual Int_t GetDetector() const {return 0;}
87594435 36 Float_t GetSigmaY2() const {return fSigmaY2;}
37 Float_t GetSigmaZ2() const {return fSigmaZ2;}
38
026b89ef 39 //PH virtual void Use() = 0;
40 //PH The pure virtual function has been temporarily replaced by
41 //PH virtual function with empty body. This correction somehow helps
42 //PH to write/read TClonesArray with AliITSclusterV2 objects, but obviously
43 //PH hides some more tricky problems (to be investigated)
b8f166bb 44 virtual void Use(Int_t = 0) {;}
be9c5115 45
87594435 46protected:
47 Int_t fTracks[3];//labels of overlapped tracks
48 Float_t fY ; //Y of cluster
49 Float_t fZ ; //Z of cluster
50 Float_t fSigmaY2; //Sigma Y square of cluster
51 Float_t fSigmaZ2; //Sigma Z square of cluster
52
bf3b3ce1 53 ClassDef(AliCluster,2) // Time Projection Chamber clusters
87594435 54};
55
56#endif
57
58