]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSclusterV2.h
Removing obsolete macros
[u/mrichter/AliRoot.git] / ITS / AliITSclusterV2.h
CommitLineData
006b5f7f 1#ifndef ALIITSCLUSTERV2_H
2#define ALIITSCLUSTERV2_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//-------------------------------------------------------------------------
7// ITS Cluster Class
8//
9// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
10//-------------------------------------------------------------------------
11
12#include "AliCluster.h"
13#include "AliITSrecoV2.h"
14
15//_____________________________________________________________________________
16class AliITSclusterV2 : public AliCluster {
17public:
18 AliITSclusterV2() : AliCluster() {fQ=0;}
19 AliITSclusterV2(Int_t *lab,Float_t *hit) : AliCluster(lab,hit) {
20 fIndex=lab[3];
21 fQ=hit[4];
22 }
23 void Use() {fSigmaY2=-fSigmaY2;}
24 void SetQ(Float_t q) {fQ=q;}
dce76328 25 void SetDetectorIndex(Int_t i) { fIndex=i; }
006b5f7f 26
27 Int_t IsUsed() const {return (fSigmaY2<0) ? 1 : 0;}
28 Float_t GetQ() const {return fQ;}
dce76328 29 Int_t GetDetectorIndex() const { return 0x3FF&fIndex; }
30
31 Int_t GetPindex() const { return 0xFFF00000&fIndex; } //SSD clusters only
32 Int_t GetNindex() const { return 0xFFC00&fIndex; } //SSD clusters only
006b5f7f 33
34private:
35 Int_t fIndex; // detector index
36 Float_t fQ ; // Q of cluster (in ADC counts)
37
38 ClassDef(AliITSclusterV2,1) // ITS clusters
39};
40
41#endif
42
43