]>
Commit | Line | Data |
---|---|---|
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 | ||
83d73500 | 12 | #include "TMath.h" |
006b5f7f | 13 | #include "AliCluster.h" |
14 | #include "AliITSrecoV2.h" | |
15 | ||
16 | //_____________________________________________________________________________ | |
17 | class AliITSclusterV2 : public AliCluster { | |
18 | public: | |
19 | AliITSclusterV2() : AliCluster() {fQ=0;} | |
20 | AliITSclusterV2(Int_t *lab,Float_t *hit) : AliCluster(lab,hit) { | |
21 | fIndex=lab[3]; | |
22 | fQ=hit[4]; | |
23 | } | |
83d73500 | 24 | void Use() {fQ=-fQ;} |
006b5f7f | 25 | void SetQ(Float_t q) {fQ=q;} |
dce76328 | 26 | void SetDetectorIndex(Int_t i) { fIndex=i; } |
006b5f7f | 27 | |
83d73500 | 28 | Int_t IsUsed() const {return (fQ<0) ? 1 : 0;} |
29 | Float_t GetQ() const {return TMath::Abs(fQ);} | |
dce76328 | 30 | Int_t GetDetectorIndex() const { return 0x3FF&fIndex; } |
31 | ||
32 | Int_t GetPindex() const { return 0xFFF00000&fIndex; } //SSD clusters only | |
33 | Int_t GetNindex() const { return 0xFFC00&fIndex; } //SSD clusters only | |
006b5f7f | 34 | |
35 | private: | |
36 | Int_t fIndex; // detector index | |
37 | Float_t fQ ; // Q of cluster (in ADC counts) | |
38 | ||
39 | ClassDef(AliITSclusterV2,1) // ITS clusters | |
40 | }; | |
41 | ||
42 | #endif | |
43 | ||
44 |