]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSdigit.cxx
Removing warnings (alpha)
[u/mrichter/AliRoot.git] / ITS / AliITSdigit.cxx
1 /**************************************************************************
2  * Copyright(c) 2004-2006, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
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  **************************************************************************/
15
16 /* $Id$ */
17
18 ////////////////////////////////////////////////
19 //  Digits classes for all ITS detectors      //
20 ////////////////////////////////////////////////
21 #include <TObjArray.h>
22 #include <TArrayI.h>
23 #include <TArrayF.h>
24 #include <TMath.h>
25 #include "AliITSdigit.h"
26
27 //______________________________________________________________________
28 ClassImp(AliITSdigit)
29 AliITSdigit::AliITSdigit(const Int_t *digits) {
30   // Creates a real data digit object
31
32   fCoord1       = digits[0];
33   fCoord2       = digits[1];
34   fSignal       = digits[2];
35 }
36 //______________________________________________________________________
37 void AliITSdigit::Print(ostream *os){
38     //Standard output format for this class
39
40     *os << fCoord1 <<","<< fCoord2 <<","<< fSignal;
41 }
42 //______________________________________________________________________
43 void AliITSdigit::Read(istream *os){
44     //Standard input for this class
45
46     *os >> fCoord1 >> fCoord2 >> fSignal;
47 }
48 //______________________________________________________________________
49 ostream &operator<<(ostream &os,AliITSdigit &source){
50     // Standard output streaming function.
51
52     source.Print(&os);
53     return os;
54 }
55 //______________________________________________________________________
56 istream &operator>>(istream &os,AliITSdigit &source){
57     // Standard output streaming function.
58
59     source.Read(&os);
60     return os;
61 }
62
63