]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDMuonCluster.h
Movin AliQA from STEER to STEERBase
[u/mrichter/AliRoot.git] / STEER / AliESDMuonCluster.h
CommitLineData
d5efea33 1#ifndef ALIESDMUONCLUSTER_H
2#define ALIESDMUONCLUSTER_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5* See cxx source for full Copyright notice */
6
7// $Id$
8
9/// \class AliESDMuonCluster
10/// \brief Class to describe the MUON clusters in the Event Summary Data
11// Author Philippe Pillot, Subatech
12
13
14#include <TObject.h>
15
16class AliESDMuonCluster : public TObject {
17public:
18 AliESDMuonCluster(); // Constructor
19 virtual ~AliESDMuonCluster() {} ///< Destructor
20 AliESDMuonCluster(const AliESDMuonCluster& cluster);
21 AliESDMuonCluster& operator=(const AliESDMuonCluster& cluster);
22
23 /// Clear method (used by TClonesArray)
24 void Clear(Option_t*) {}
25
26 /// Set coordinates (cm)
27 void SetXYZ(Double_t x, Double_t y, Double_t z) {fXYZ[0] = x; fXYZ[1] = y; fXYZ[2] = z;}
28 /// Return X-position (cm)
29 Double_t GetX() const {return fXYZ[0];}
30 /// Return Y-position (cm)
31 Double_t GetY() const {return fXYZ[1];}
32 /// Return Z-position (cm)
33 Double_t GetZ() const {return fXYZ[2];}
34
35 /// Set (X,Y) resolution (cm)
36 void SetErrXY(Double_t errX, Double_t errY) {fErrXY[0] = errX; fErrXY[1] = errY;}
37 /// Return X-resolution (cm)
38 Double_t GetErrX() const {return fErrXY[0];}
39 /// Return X-resolution**2 (cm**2)
40 Double_t GetErrX2() const {return fErrXY[0]*fErrXY[0];}
41 /// Return Y-resolution (cm)
42 Double_t GetErrY() const {return fErrXY[1];}
43 /// Return Y-resolution**2 (cm**2)
44 Double_t GetErrY2() const {return fErrXY[1]*fErrXY[1];}
45
46 /// Return chamber id (0..), part of the uniqueID
47 Int_t GetChamberId() const {return (GetUniqueID() & 0xF0000000) >> 28;}
48 /// Return detection element id, part of the uniqueID
49 Int_t GetDetElemId() const {return (GetUniqueID() & 0x0FFE0000) >> 17;}
50 /// Returnt the index of this cluster (0..), part of the uniqueID
51 Int_t GetClusterIndex() const {return (GetUniqueID() & 0x0001FFFF);}
52
53 void Print(Option_t */*option*/ = "") const;
54
55
56protected:
57 Double32_t fXYZ[3]; ///< cluster position
58 Double32_t fErrXY[2]; ///< transverse position errors
59
60
61 ClassDef(AliESDMuonCluster, 1) // MUON ESD cluster class
62};
63
64#endif