e869281d |
1 | #ifndef ALIITSDIGITSSD_H |
2 | #define ALIITSDIGITSSD_H |
3 | /* Copyright(c) 2004-2006, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ |
7d62fb64 |
5 | //////////////////////////////////////////////////////// |
6 | // Digit class for SSD // |
7 | //////////////////////////////////////////////////////// |
e869281d |
8 | |
9 | #include <AliITSdigit.h> |
10 | |
11 | //______________________________________________________________________ |
12 | class AliITSdigitSSD: public AliITSdigit { |
13 | |
14 | public: |
15 | AliITSdigitSSD(); //default constructor |
16 | //Standard constructor with digits |
17 | AliITSdigitSSD(const Int_t *digits); |
18 | //Standard constructor with digits, tracks, and hits |
19 | AliITSdigitSSD(const Int_t *digits,const Int_t *tracks,const Int_t *hits); |
20 | virtual ~AliITSdigitSSD(){/* destructor */} |
21 | // returns the array size used to store Tracks and Hits |
0599a018 |
22 | // static Int_t GetNTracks() {return fgkSssd;} |
e869281d |
23 | Int_t GetSignal() const {/* returns signal*/return fSignal;} |
24 | Int_t GetStripNumber() const {/* returns strip number*/return fCoord2;} |
25 | //returns 1 when side P and 0 when side N |
14a74335 |
26 | Int_t IsSideP() const {if(fCoord1==0) return 1; else return 0; } |
e869281d |
27 | // returns the pointer to the array of hits which made this digit |
e869281d |
28 | // returns TArrayI of unduplicated track numbers (summed over hits). |
29 | virtual Int_t GetListOfTracks(TArrayI &t); |
e869281d |
30 | void Print(ostream *os); // Class ascii print function |
31 | void Read(istream *os); // Class ascii read function |
d2f55a22 |
32 | virtual void Print(Option_t *option="") const {TObject::Print(option);} |
33 | virtual Int_t Read(const char *name) {return TObject::Read(name);} |
34 | |
e869281d |
35 | |
36 | protected: |
e869281d |
37 | |
e869281d |
38 | |
0599a018 |
39 | ClassDef(AliITSdigitSSD,3) // Simulated digit object for SSD |
e869281d |
40 | |
41 | }; |
42 | // Input and output functions for standard C++ input/output. |
43 | ostream &operator<<(ostream &os,AliITSdigitSSD &source); |
44 | istream &operator>>(istream &os,AliITSdigitSSD &source); |
45 | |
46 | #endif |