-AliITSdigit::AliITSdigit(Int_t *tracks, Int_t *digits):
- AliDigit(tracks){
- //
- // Create ITS digit
- // The creator for the AliITSdigit class. This routine fills the
- // AliITSdigit data members from the array digits. The array of track
- // numbers are passed to the AliDigit creator. The order of the elements
- // in the digits array are fEvent = digits[0], fLayer = digits[1],
- // fLadder = digits[2], fDet = digits[3], and fNoverl = digits[4].
- // Therefore the array digits is expected to be at least 5 elements long.
- //
- fEvent = digits[0];
- fLayer = digits[1];
- fLadder = digits[2];
- fDet = digits[3];
- fNoverl = digits[4];
+AliITSdigit::AliITSdigit():
+fCoord1(0),
+fCoord2(0),
+fSignal(0){
+ //default constructor. zero all values.
+ for(Int_t i=0;i<fgkSize;i++) fTracks[i] = 0;
+ for(Int_t i=0;i<fgkSize;i++) fHits[i] = 0;
+
+}
+
+
+AliITSdigit::AliITSdigit(const Int_t *digits):
+fCoord1(digits[0]),
+fCoord2(digits[1]),
+fSignal(digits[2]){
+ // Creates a real data digit object
+ for(Int_t i=0;i<fgkSize;i++) fTracks[i] = 0;
+ for(Int_t i=0;i<fgkSize;i++) fHits[i] = 0;
+
+
+}
+//______________________________________________________________________
+void AliITSdigit::Print(ostream *os) {
+ //Standard output format for this class
+
+ *os << fCoord1 <<","<< fCoord2 <<","<< fSignal;
+}
+//______________________________________________________________________
+void AliITSdigit::Read(istream *os) {
+ //Standard input for this class
+
+ *os >> fCoord1 >> fCoord2 >> fSignal;
+}
+//______________________________________________________________________
+ostream &operator<<(ostream &os,AliITSdigit &source){
+ // Standard output streaming function.
+
+ source.Print(&os);
+ return os;