Typo
[u/mrichter/AliRoot.git] / ITS / AliITSdigitSDD.h
CommitLineData
e869281d 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#include <AliITSdigit.h>
7
8//______________________________________________________________________
9class AliITSdigitSDD: public AliITSdigit {
10
11 public:
12 AliITSdigitSDD(); //default creator
13 //standard creator with digits and "phys"
14 AliITSdigitSDD(Float_t phys,const Int_t *digits);
15 //standard creator with digits, tracls, hits, "phys", and charge
16 AliITSdigitSDD( Float_t phys,const Int_t *digits,const Int_t *tracks,
17 const Int_t *hits,const Float_t *charges);
18 virtual ~AliITSdigitSDD(){/* destructor*/}
19 // returns the array size used to store Tracks and Hits
20 static Int_t GetNTracks() {return fgkSsdd;}
21 // returns pointer to the array of tracks which make this digit
22 virtual Int_t *GetTracks() {return &fTracks[0];}
23 // returns the pointer to the array of hits which made this digit
24 virtual Int_t *GetHits() {return &fHits[0];}
25 // returns track number kept in the array element i of fTracks
26 virtual Int_t GetTrack(Int_t i) const {return fTracks[i];}
27 // returns hit number kept in the array element i of fHits
28 virtual Int_t GetHit(Int_t i) const {return fHits[i];}
29 // Return charge deposited by this track/hit
30 virtual Float_t GetCharge(Int_t i) const {return fTcharges[i];}
31 // returns TArrayI of unduplicated track numbers (summed over hits).
32 virtual Int_t GetListOfTracks(TArrayI &t,TArrayF &c);
33 //copy the array trks[fgkSsdd] into fTracks
34 virtual void SetTracks(const Int_t *trks){
35 for(Int_t i=0;i<fgkSsdd;i++) fTracks[i]=trks[i];}
36 //copy the array hits[fgkSsdd] into fHits
37 virtual void SetHits(const Int_t *hits){
38 for(Int_t i=0;i<fgkSsdd;i++) fHits[i]=hits[i];}
39 //set array element i of fTracks to trk.
40 virtual void SetTrack(Int_t i,Int_t trk){fTracks[i]=trk;}
41 //set array element i of fHits to hit.
42 virtual void SetHit(Int_t i,Int_t hit){fHits[i]=hit;}
43 void Print(ostream *os); // Class ascii print function
44 void Read(istream *os); // Class ascii read function
45
46 protected:
47 static const Int_t fgkSsdd = 10; // size of fTracks and fHits arrays
48
49 // debugging -- goes to the dictionary
50 Int_t fTracks[fgkSsdd]; //[fgkSsdd] tracks making this digit
51 Int_t fHits[fgkSsdd]; //[fgkSsdd] hits associated to the tracks
52 // 3 hits temporarily - it will be only 1
53 Float_t fTcharges[fgkSsdd]; //[fgkSsdd] charge per track making this digit
54 Float_t fPhysics; // signal particles contribution to signal
55
56 ClassDef(AliITSdigitSDD,2) // Simulated digit object for SDD
57
58};
59// Input and output functions for standard C++ input/output.
60ostream &operator<<(ostream &os,AliITSdigitSDD &source);
61istream &operator>>(istream &os,AliITSdigitSDD &source);
62
63#endif