1 /**************************************************************************
2 * Copyright(c) 2004-2006, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 ////////////////////////////////////////////////
19 // Digits classes for all ITS detectors //
22 ////////////////////////////////////////////////
24 #include "AliITSdigit.h"
27 //______________________________________________________________________
30 AliITSdigit::AliITSdigit():
34 //default constructor. zero all values.
35 for(Int_t i=0;i<fgkSize;i++) fTracks[i] = 0;
36 for(Int_t i=0;i<fgkSize;i++) fHits[i] = 0;
41 AliITSdigit::AliITSdigit(const Int_t *digits):
45 // Creates a real data digit object
46 for(Int_t i=0;i<fgkSize;i++) fTracks[i] = 0;
47 for(Int_t i=0;i<fgkSize;i++) fHits[i] = 0;
51 //______________________________________________________________________
52 void AliITSdigit::Print(ostream *os) {
53 //Standard output format for this class
55 *os << fCoord1 <<","<< fCoord2 <<","<< fSignal;
57 //______________________________________________________________________
58 void AliITSdigit::Read(istream *os) {
59 //Standard input for this class
61 *os >> fCoord1 >> fCoord2 >> fSignal;
63 //______________________________________________________________________
64 ostream &operator<<(ostream &os,AliITSdigit &source){
65 // Standard output streaming function.
70 //______________________________________________________________________
71 istream &operator>>(istream &os,AliITSdigit &source){
72 // Standard output streaming function.