]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIITSDIGITSDD_H | |
2 | #define ALIITSDIGITSDD_H | |
3 | /* Copyright(c) 2004-2006, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | //////////////////////////////////////////////////////// | |
6 | // Digit class for SDD // | |
7 | //////////////////////////////////////////////////////// | |
8 | #include <AliITSdigit.h> | |
9 | ||
10 | class AliITSCalibrationSDD; | |
11 | ||
12 | //______________________________________________________________________ | |
13 | class AliITSdigitSDD: public AliITSdigit { | |
14 | ||
15 | public: | |
16 | AliITSdigitSDD(); //default creator | |
17 | //standard c.tor with digits and "phys" | |
18 | AliITSdigitSDD(Float_t phys,const Int_t *digits); | |
19 | //standard c.tor with digits, tracls, hits, "phys", and charge | |
20 | AliITSdigitSDD( Float_t phys,const Int_t *digits,const Int_t *tracks, | |
21 | const Int_t *hits,const Float_t *charges); | |
22 | //constructor setting also fSignalExpanded | |
23 | AliITSdigitSDD( Float_t phys,const Int_t *digits,const Int_t *tracks, | |
24 | const Int_t *hits,const Float_t *charges, Int_t sige); | |
25 | //constructor setting fSignalExpanded through AliITSCalibrationSDD | |
26 | AliITSdigitSDD( Float_t phys,const Int_t *digits,const Int_t *tracks, | |
27 | const Int_t *hits,const Float_t *charges, | |
28 | AliITSCalibrationSDD *resp); | |
29 | virtual ~AliITSdigitSDD(){/* destructor*/} | |
30 | // returns the array size used to store Tracks and Hits | |
31 | virtual Int_t GetSignal() const {return fSignalExpanded;} | |
32 | virtual Int_t GetCompressedSignal() const {return fSignal;} | |
33 | // Return charge deposited by this track/hit | |
34 | virtual Float_t GetCharge(Int_t i) const {return fTcharges[i];} | |
35 | // returns TArrayI of unduplicated track numbers (summed over hits). | |
36 | virtual Int_t GetListOfTracks(TArrayI &t,TArrayF &c); | |
37 | void SetSignalExpanded(Int_t sig){fSignalExpanded = sig;} | |
38 | virtual void Print(ostream *os); // Class ascii print function | |
39 | virtual void Read(istream *os); // Class ascii read function | |
40 | virtual void Print(Option_t *option="") const {TObject::Print(option);} | |
41 | virtual Int_t Read(const char *name) {return TObject::Read(name);} | |
42 | ||
43 | protected: | |
44 | void InitObject(Float_t phys,const Int_t *tracks, | |
45 | const Int_t *hits,const Float_t *charges); | |
46 | ||
47 | // 3 hits temporarily - it will be only 1 | |
48 | Float_t fTcharges[fgkSize]; //[fgkSize] charge per track making this digit | |
49 | Float_t fPhysics; // signal particles contribution to signal | |
50 | Int_t fSignalExpanded; // 10 bit signal | |
51 | ClassDef(AliITSdigitSDD,4) // Simulated digit object for SDD | |
52 | ||
53 | }; | |
54 | // Input and output functions for standard C++ input/output. | |
55 | ostream &operator<<(ostream &os,AliITSdigitSDD &source); | |
56 | istream &operator>>(istream &os,AliITSdigitSDD &source); | |
57 | ||
58 | #endif |